Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
documentRoot = public_html
source.directory = src
## SVN Configuration
svn.repositoryurl.tags = "https://example.com/svn/acme/tags"
<?xml version="1.0" encoding="UTF-8"?>
<project name="acme" default="default" basedir=".">
<property file="build.properties" />
<target name="clean">
<delete
dir="${project.basedir}/${source.directory}"
/>
</target>
<target name="zip">
<zip destfile="${project.basedir}/bin/acme-${version}.zip">
<fileset dir="${project.basedir}/${source.directory}">
<include name="**/**" />
</fileset>
</zip>
</target>
<target name="build-tag">
<input propertyname="svn.username" promptChar=":">SVN Username</input>
<input propertyname="svn.password" promptChar=":">SVN Password</input>
<input propertyname="tag" promptChar=":">Tag</input>
<echo>v${tag}</echo>
<phingcall target="clean" />
<svnexport
username="${svn.username}"
password="${svn.password}"
nocache="true"
repositoryurl="${svn.repositoryurl.tags}/${tag}"
todir="${project.basedir}/${source.directory}"
/>
<exec
command="mv ${project.basedir}/${source.directory}/content ${project.basedir}/${source.directory}/${documentRoot}"
/>
<phingcall target="zip">
<property name="version" value="${tag}" />
</phingcall>
<phingcall target="clean" />
</target>
</project>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.