-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
34 lines (24 loc) · 1.41 KB
/
build.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<project name="Script for pakcaging Ant4Cf" default="Package">
<target name="Package">
<input message="Please enter SVN server username:" addproperty="SVNUSERNAME" />
<input message="Please enter SVN server password:" addproperty="SVNPASSWORD" />
<property name="cfmlSvnUrl" value="http://svn.alagad.com/ant4cf/trunk/ant4cf-cfml"/>
<property name="jarSvnUrl" value="http://svn.alagad.com/ant4cf/trunk/ant4cf-java/target/ant4cf-java-2.0-SNAPSHOT-jar-with-dependencies.jar"/>
<property name="docsSvnUrl" value="http://svn.alagad.com/ant4cf/trunk/documentation/"/>
<!-- delete the build directory -->
<delete dir="build" failonerror="false" />
<!-- export the ant4cf-cfml directory into the build directory -->
<exec executable="svn">
<arg line="export ${cfmlSvnUrl} --force build/ant4cf --username ${SVNUSERNAME} --password ${SVNPASSWORD}"/>
</exec>
<!-- export the jar file into the build directory as well -->
<exec executable="svn">
<arg line="export ${jarSvnUrl} --force build/ant4cf-java-2.0-SNAPSHOT-jar-with-dependencies.jar --username ${SVNUSERNAME} --password ${SVNPASSWORD}"/>
</exec>
<!-- export the docs into the build directory as well -->
<exec executable="svn">
<arg line="export ${docsSvnUrl} --force build/documentation --username ${SVNUSERNAME} --password ${SVNPASSWORD}"/>
</exec>
<zip basedir="build" destfile="ant4cf.zip" />
</target>
</project>