- added target "antville" to create the antville-distribution (app only)

- changed target antclick (added zipping db_support directory)
This commit is contained in:
grob 2003-02-23 15:41:13 +00:00
parent 9fdcecd9ff
commit 9d73c836ed

View file

@ -28,7 +28,8 @@
<property name="jar.name" value="${project}"/> <property name="jar.name" value="${project}"/>
<property name="package.name" value="${project}-${version}"/> <property name="package.name" value="${project}-${version}"/>
<property name="antclick.name" value="antclick-1.0pre3"/> <property name="antclick.name" value="antclick-1.0pre5"/>
<property name="antville.name" value="antville-1.0pre1"/>
<property name="debug" value="on"/> <property name="debug" value="on"/>
<property name="optimize" value="on"/> <property name="optimize" value="on"/>
@ -67,6 +68,8 @@
<echo message=" docs --> tries to retrieve the HTML documentation "/> <echo message=" docs --> tries to retrieve the HTML documentation "/>
<echo message=" (may need proxy settings in startscript)"/> <echo message=" (may need proxy settings in startscript)"/>
<echo message=" package --> generates the distribution (zip and tar.gz)"/> <echo message=" package --> generates the distribution (zip and tar.gz)"/>
<echo message=" antville --> generates the antville-distribution"/>
<echo message=" (zip and tar.gz)"/>
<echo message=" antclick --> generates the distribution (zip and tar.gz)"/> <echo message=" antclick --> generates the distribution (zip and tar.gz)"/>
<echo message=" with antville preconfigured"/> <echo message=" with antville preconfigured"/>
<echo message=" app [name] --> gets an application from the cvs and zips it"/> <echo message=" app [name] --> gets an application from the cvs and zips it"/>
@ -357,16 +360,14 @@ manage
<!-- unzip images --> <!-- unzip images -->
<mkdir dir="${build.work}/static/images"/> <mkdir dir="${build.work}/static/images"/>
<unzip src="${build.work}/apps/antville/images.zip" dest="${build.work}/static/images"> <unzip src="${build.work}/apps/antville/images.zip" dest="${build.work}/static/images" />
<patternset>
<include name="**"/>
</patternset>
</unzip>
<!-- delete antville's mysql-scripts, image-zip etc --> <!-- zip db_support directory and remove it afterwards -->
<delete> <zip zipfile="${build.work}/apps/antville/db_support.zip">
<fileset dir="${build.work}/apps/antville" includes="images.zip,*.sql" /> <zipfileset dir="${build.work}/apps/antville/db_support" prefix="db_support" includes="**" />
</delete> </zip>
<delete dir="${build.work}/apps/antville/db_support" />
<delete file="${build.work}/apps/antville/images.zip" />
<!-- get and zip manage-app --> <!-- get and zip manage-app -->
<antcall target="package-manage" /> <antcall target="package-manage" />
@ -410,4 +411,36 @@ manage
<delete dir="${build.work}" /> <delete dir="${build.work}" />
</target> </target>
<!-- =================================================================== -->
<!-- Gets antville from the cvs, cleans and zips/targzs it -->
<!-- =================================================================== -->
<target name="antville" depends="init">
<mkdir dir="${build.dist}" />
<mkdir dir="${build.work}" />
<!-- to retrieve special versions of an application insert
additional attributes: tag="TAGNAME" or date="1972-09-24 20:05" -->
<cvs cvsRoot="${cvs.root.apps}" command="export" tag="HEAD" package="antville" dest="${build.work}" />
<!-- zip db_support directory and remove it afterwards -->
<zip zipfile="${build.work}/antville/db_support.zip">
<zipfileset dir="${build.work}/antville/db_support" prefix="db_support" includes="**" />
</zip>
<delete dir="${build.work}/antville/db_support" />
<fixcrlf srcdir="${build.work}/antville/" eol="crlf" excludes="**/*.zip" />
<zip zipfile="${build.dist}/${antville.name}.zip" basedir="${build.work}" includes="**" />
<fixcrlf srcdir="${build.work}/antville/" eol="lf" eof="remove" excludes="**/*.zip" />
<tar tarfile="${build.dist}/${antville.name}.tar" basedir="${build.work}">
<tarfileset dir="${build.work}">
<include name="${build.work}/**"/>
</tarfileset>
</tar>
<gzip zipfile="${build.dist}/${antville.name}.tar.gz" src="${build.dist}/${antville.name}.tar" />
<delete file="${build.dist}/${antville.name}.tar"/>
<delete dir="${build.work}" />
</target>
</project> </project>