Ticket #21: build.xml

File build.xml, 2.0 kB (added by fisherman, 2 years ago)

build.xml

Line 
1 <?xml version="1.0" ?>
2 <project name="ocean portal" basedir="." default="targets">
3    <!--
4    -->
5    <property name="appname" value="ocean" />
6    <property name="apachedir" value="C:/Programme/Apache Group/Apache2/htdocs" />
7    <property name="srcdir"   value="${project.basedir}/src" />
8
9    <!--
10    <svnlastrevision svnpath="C:/Develop/Subversion/bin" workingcopy="C:/Develop/web_projects/ocean_portal/" propertyname="svn.lastrevision"/>
11    -->
12    <!--
13    -->
14    <fileset dir="${srcdir}" id="application">
15       <exclude name="test/**" />
16       <include name="**/*.php" />
17       <include name="**/*.xsl" />
18       <include name="**/*.xml" />
19    </fileset>
20
21    <!--
22    -->
23    <target name="targets" description="Shows a list with all targets">
24       <echo>Last revision of project: ${svn.lastrevision}</echo>
25    </target>
26
27    <!--
28    -->
29    <target name="makedir" description="Creates the application directories for the apache server">
30       <mkdir dir="${apachedir}/${appname}" />
31    </target>
32
33    <!--
34    -->
35    <target name="makezip" description="Creates a zip file of the application">
36       <zip destfile="${project.basedir}/${appname}.zip">
37          <fileset refid="application" />
38       </zip>
39    </target>
40
41    <!--
42    -->
43    <target name="clean" if="apachedir,appname"
44             description="Deletes all application directories and files on the apache server">
45       <delete dir="${apachedir}/${appname}" verbose="true" includeemptydirs="true" />
46    </target>
47
48    <!--
49    -->
50    <target name="deploy" if="srcdir,apachedir,appname" depends="makedir"
51             description="Installs the source files on the apache server">
52
53       <svnexport svnpath="C:/Develop/Subversion/bin"
54       repositoryurl="file:///C:/Develop/Subversion/repositories/ocean_portal/"
55       todir="${apachedir}/${appname}"/>
56       <!--
57       <copy todir="${apachedir}/${appname}" includeemptydirs="true">
58          <fileset refid="application" />
59       </copy>
60       -->
61    </target>
62
63
64 </project>