Created
January 10, 2010 15:09
-
-
Save bradley-holt/273555 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
documentRoot = public_html | |
source.directory = src | |
## SVN Configuration | |
svn.repositoryurl.tags = "https://example.com/svn/acme/tags" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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