added access permission for execution of hop.sh in tar action;

added prefix parameter in tar actions
This commit is contained in:
Tobi Schäfer 2002-06-28 16:28:56 +00:00
parent 2c7bef0c8e
commit 02c20371b0

View file

@ -241,15 +241,15 @@ manage
<!-- =================================================================== --> <!-- =================================================================== -->
<!-- Checkout and zip manage application --> <!-- Checkout and zip manage application -->
<!-- =================================================================== --> <!-- =================================================================== -->
<target name="package-manage" depends="init"> <target name="package-manage" depends="init">
<cvs cvsRoot="${cvs.root.apps}" command="export" tag="HEAD" package="manage" dest="${build.work}" /> <cvs cvsRoot="${cvs.root.apps}" command="export" tag="HEAD" package="manage" dest="${build.work}" />
<mkdir dir="${build.work}/apps/manage"/> <mkdir dir="${build.work}/apps/manage"/>
<zip zipfile="${build.work}/apps/manage/manage.zip" basedir="${build.work}/manage/" includes="**" excludes="**/properties,readme/**" /> <zip zipfile="${build.work}/apps/manage/manage.zip" basedir="${build.work}/manage/" includes="**" excludes="**/properties,readme/**" />
<copy todir="${build.work}/apps/manage"> <copy todir="${build.work}/apps/manage">
<fileset dir="${build.work}/manage" includes="app.properties,class.properties,readme.txt"/> <fileset dir="${build.work}/manage" includes="app.properties,class.properties,readme.txt"/>
</copy> </copy>
<delete dir="${build.work}/manage" /> <delete dir="${build.work}/manage" />
</target> </target>
<!-- =================================================================== --> <!-- =================================================================== -->
@ -259,13 +259,13 @@ manage
<target name="package-tgz" depends="init"> <target name="package-tgz" depends="init">
<mkdir dir="${build.dist}" /> <mkdir dir="${build.dist}" />
<fixcrlf srcdir="${build.work}" eol="lf" eof="remove" includes="**/*.txt, **/*.properties, **/*.hac, **/*.js, **/*.skin" /> <fixcrlf srcdir="${build.work}" eol="lf" eof="remove" includes="**/*.txt, **/*.properties, **/*.hac, **/*.js, **/*.skin" />
<tar tarfile="${build.dist}/${filename}.tar" basedir="${build.work}"> <tar tarfile="${build.dist}/${filename}.tar" basedir="${build.work}" excludes="**">
<tarfileset dir="${build.work}" mode="755"> <tarfileset prefix="${filename}" dir="${build.work}" mode="755">
<include name="${build.work}/hop.sh"/> <include name="hop.sh"/>
</tarfileset> </tarfileset>
<tarfileset dir="${build.work}"> <tarfileset prefix="${filename}" dir="${build.work}">
<include name="${build.work}/**"/> <include name="**"/>
<exclude name="${build.work}/hop.sh"/> <exclude name="hop.sh"/>
</tarfileset> </tarfileset>
</tar> </tar>
<gzip zipfile="${build.dist}/${filename}.tar.gz" src="${build.dist}/${filename}.tar"/> <gzip zipfile="${build.dist}/${filename}.tar.gz" src="${build.dist}/${filename}.tar"/>
@ -280,9 +280,9 @@ manage
<target name="package-zip" depends="init"> <target name="package-zip" depends="init">
<mkdir dir="${build.dist}" /> <mkdir dir="${build.dist}" />
<fixcrlf srcdir="${build.work}" eol="crlf" includes="**/*.txt, **/*.properties, **/*.hac, **/*.js, **/*.skin, **/*.xml" /> <fixcrlf srcdir="${build.work}" eol="crlf" includes="**/*.txt, **/*.properties, **/*.hac, **/*.js, **/*.skin, **/*.xml" />
<zip zipfile="${build.dist}/${filename}.zip"> <zip zipfile="${build.dist}/${filename}.zip">
<zipfileset dir="${build.work}" prefix="${filename}" includes="**" /> <zipfileset dir="${build.work}" prefix="${filename}" includes="**" />
</zip> </zip>
</target> </target>
@ -297,33 +297,33 @@ manage
<param name="distribution" value="antclick" /> <param name="distribution" value="antclick" />
</antcall> </antcall>
<!-- get antville --> <!-- get antville -->
<mkdir dir="${build.work}/apps" /> <mkdir dir="${build.work}/apps" />
<!-- to retrieve special versions of antville insert additional attributes: <!-- to retrieve special versions of antville insert additional attributes:
tag="TAGNAME", date="1972-09-24" or date="1972-09-24 20:05" --> tag="TAGNAME", date="1972-09-24" or date="1972-09-24 20:05" -->
<cvs cvsRoot="${cvs.root.apps}" command="export" tag="HEAD" package="antville" dest="${build.work}/apps" /> <cvs cvsRoot="${cvs.root.apps}" command="export" tag="HEAD" package="antville" dest="${build.work}/apps" />
<!-- unzip images --> <!-- unzip images -->
<mkdir dir="${build.work}/static/antville"/> <mkdir dir="${build.work}/static/antville"/>
<unzip src="${build.work}/apps/antville/images.zip" dest="${build.work}/static/antville"> <unzip src="${build.work}/apps/antville/images.zip" dest="${build.work}/static/antville">
<patternset> <patternset>
<include name="**"/> <include name="**"/>
</patternset> </patternset>
</unzip> </unzip>
<!-- delete antville's mysql-scripts, image-zip etc --> <!-- delete antville's mysql-scripts, image-zip etc -->
<delete> <delete>
<fileset dir="${build.work}/apps/antville" includes="images.zip,*.sql" /> <fileset dir="${build.work}/apps/antville" includes="images.zip,*.sql" />
</delete> </delete>
<!-- get and zip manage-app --> <!-- get and zip manage-app -->
<antcall target="package-manage" /> <antcall target="package-manage" />
<!-- zip up the whole thing --> <!-- zip up the whole thing -->
<antcall target="package-zip"> <antcall target="package-zip">
<param name="filename" value="${antclick.name}"/> <param name="filename" value="${antclick.name}"/>
</antcall> </antcall>
<antcall target="package-tgz"> <antcall target="package-tgz">
<param name="filename" value="${antclick.name}"/> <param name="filename" value="${antclick.name}"/>
</antcall> </antcall>
@ -339,8 +339,8 @@ manage
<mkdir dir="${build.dist}" /> <mkdir dir="${build.dist}" />
<mkdir dir="${build.work}" /> <mkdir dir="${build.work}" />
<!-- to retrieve special versions of an application insert <!-- to retrieve special versions of an application insert
additional attributes: tag="TAGNAME" or date="1972-09-24 20:05" --> additional attributes: tag="TAGNAME" or date="1972-09-24 20:05" -->
<cvs cvsRoot="${cvs.root.apps}" command="export" tag="HEAD" package="${application}" dest="${build.work}" /> <cvs cvsRoot="${cvs.root.apps}" command="export" tag="HEAD" package="${application}" dest="${build.work}" />
<fixcrlf srcdir="${build.work}" eol="crlf" eof="add" includes="**/*.txt, **/*.properties, **/*.hac, **/*.js, **/*.skin, **/*.xml" /> <fixcrlf srcdir="${build.work}" eol="crlf" eof="add" includes="**/*.txt, **/*.properties, **/*.hac, **/*.js, **/*.skin, **/*.xml" />