- added target "antville" to create the antville-distribution (app only)
- changed target antclick (added zipping db_support directory)
This commit is contained in:
parent
9fdcecd9ff
commit
9d73c836ed
1 changed files with 43 additions and 10 deletions
|
@ -28,7 +28,8 @@
|
|||
|
||||
<property name="jar.name" value="${project}"/>
|
||||
<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="optimize" value="on"/>
|
||||
|
@ -67,6 +68,8 @@
|
|||
<echo message=" docs --> tries to retrieve the HTML documentation "/>
|
||||
<echo message=" (may need proxy settings in startscript)"/>
|
||||
<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=" with antville preconfigured"/>
|
||||
<echo message=" app [name] --> gets an application from the cvs and zips it"/>
|
||||
|
@ -357,16 +360,14 @@ manage
|
|||
|
||||
<!-- unzip images -->
|
||||
<mkdir dir="${build.work}/static/images"/>
|
||||
<unzip src="${build.work}/apps/antville/images.zip" dest="${build.work}/static/images">
|
||||
<patternset>
|
||||
<include name="**"/>
|
||||
</patternset>
|
||||
</unzip>
|
||||
<unzip src="${build.work}/apps/antville/images.zip" dest="${build.work}/static/images" />
|
||||
|
||||
<!-- delete antville's mysql-scripts, image-zip etc -->
|
||||
<delete>
|
||||
<fileset dir="${build.work}/apps/antville" includes="images.zip,*.sql" />
|
||||
</delete>
|
||||
<!-- zip db_support directory and remove it afterwards -->
|
||||
<zip zipfile="${build.work}/apps/antville/db_support.zip">
|
||||
<zipfileset dir="${build.work}/apps/antville/db_support" prefix="db_support" includes="**" />
|
||||
</zip>
|
||||
<delete dir="${build.work}/apps/antville/db_support" />
|
||||
<delete file="${build.work}/apps/antville/images.zip" />
|
||||
|
||||
<!-- get and zip manage-app -->
|
||||
<antcall target="package-manage" />
|
||||
|
@ -410,4 +411,36 @@ manage
|
|||
<delete dir="${build.work}" />
|
||||
</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>
|
||||
|
|
Loading…
Add table
Reference in a new issue