cziegeler 01/11/22 01:21:34
Modified: . Tag: cocoon_20_branch build.xml
Log:
Added source distribution
Revision Changes Path
No revision
No revision
1.8.2.58 +105 -1 xml-cocoon2/build.xml
Index: build.xml
===================================================================
RCS file: /home/cvs/xml-cocoon2/build.xml,v
retrieving revision 1.8.2.57
retrieving revision 1.8.2.58
diff -u -r1.8.2.57 -r1.8.2.58
--- build.xml 2001/11/16 06:27:15 1.8.2.57
+++ build.xml 2001/11/22 09:21:34 1.8.2.58
@@ -204,6 +204,8 @@
<property name="dist.root" value="./dist"/>
<property name="dist.name" value="${name}-${version}"/>
<property name="dist.dir" value="${dist.root}/${dist.name}"/>
+ <property name="dist.src.dir" value="${dist.root}/source/${dist.name}"/>
+ <property name="dist.bin.dir" value="${dist.root}/bin/${dist.name}"/>
<property name="dist.target" value="${dist.root}"/>
<property name="site" value="../xml-site/targets/${name}2"/>
@@ -822,7 +824,6 @@
</copy>
</target>
-
<!-- =================================================================== -->
<!-- Set a variable if javadoc is already up-to-date. -->
<!-- =================================================================== -->
@@ -863,6 +864,109 @@
stylesheetfile="${resource.dir}/javadoc.css">
<classpath refid="classpath"/>
</javadoc>
+ </target>
+
+ <!-- =================================================================== -->
+ <!-- Creates the source distribution -->
+ <!-- =================================================================== -->
+ <target name="dist-src" depends="package, webapp, docs, javadocs"
+ description="Prepares the source distribution">
+ <!-- Simply copy all and add the html docs -->
+ <mkdir dir="${dist.root}"/>
+ <mkdir dir="${dist.src.dir}"/>
+ <mkdir dir="${dist.src.dir}/bin"/>
+ <mkdir dir="${dist.src.dir}/documentation"/>
+ <mkdir dir="${dist.src.dir}/lib"/>
+ <mkdir dir="${dist.src.dir}/resources"/>
+ <mkdir dir="${dist.src.dir}/src"/>
+ <mkdir dir="${dist.src.dir}/webapp"/>
+ <mkdir dir="${dist.src.dir}/docs"/>
+ <mkdir dir="${dist.src.dir}/docs/apidocs"/>
+
+ <copy todir="${dist.src.dir}/bin">
+ <fileset dir="${bin.dir}"/>
+ </copy>
+
+ <copy todir="${dist.src.dir}/documentation" filtering="on">
+ <fileset dir="${context.dir}"/>
+ </copy>
+
+ <copy todir="${dist.src.dir}/lib">
+ <fileset dir="${lib.dir}"/>
+ </copy>
+
+ <copy todir="${dist.src.dir}/resources" filtering="on">
+ <fileset dir="${resource.dir}"/>
+ </copy>
+
+ <copy todir="${dist.src.dir}/src" filtering="on">
+ <fileset dir="${src.dir}"/>
+ </copy>
+
+ <copy todir="${dist.src.dir}/webapp" filtering="on">
+ <fileset dir="${webapp.dir}"/>
+ </copy>
+
+ <!-- Fix for web.xml, cocoon.xconf and sitemap.xmap -->
+ <copy file="${webapp.dir}/cocoon.xconf"
tofile="${dist.src.dir}/webapp/cocoon.xconf" filtering="off" overwrite="yes"/>
+ <copy file="${webapp.dir}/sitemap.xmap"
tofile="${dist.src.dir}/webapp/sitemap.xmap" filtering="off" overwrite="yes"/>
+ <copy file="${webapp.dir}/WEB-INF/web.xml"
tofile="${dist.src.dir}/webapp/WEB-INF/web.xml" filtering="off" overwrite="yes"/>
+
+ <copy todir="${dist.src.dir}/docs">
+ <fileset dir="${build.docs}"/>
+ </copy>
+ <copy todir="${dist.src.dir}/docs/apidocs">
+ <fileset dir="${build.javadocs}"/>
+ </copy>
+
+ <copy todir="${dist.src.dir}">
+ <fileset dir="${docs.dir}">
+ <include name="changes.xml, todo.xml"/>
+ </fileset>
+ </copy>
+
+ <copy todir="${dist.src.dir}" filtering="on">
+ <fileset dir=".">
+ <include name="README"/>
+ <include name="LICENSE*"/>
+ <include name="INSTALL"/>
+ <include name="WARNING"/>
+ <include name="*.bat"/>
+ <include name="*.sh"/>
+ <include name="KEYS"/>
+ <include name="*.xml"/>
+ <include name="*.properties"/>
+ </fileset>
+ </copy>
+
+ <chmod perm="+x" file="${dist.src.dir}/run.sh"/>
+ <chmod perm="+x" file="${dist.src.dir}/build.sh"/>
+ <chmod perm="+x" file="${dist.src.dir}/bin/antRun"/>
+ <fixcrlf srcdir="${dist.src.dir}" includes="run.sh" eol="lf"/>
+ <fixcrlf srcdir="${dist.src.dir}" includes="run.bat" eol="crlf"/>
+ <fixcrlf srcdir="${dist.src.dir}" includes="build.sh" eol="lf"/>
+ <fixcrlf srcdir="${dist.src.dir}" includes="build.bat" eol="crlf"/>
+ </target>
+
+ <!-- =================================================================== -->
+ <!-- Packages the source distribution as .zip -->
+ <!-- =================================================================== -->
+ <target name="dist-src-zip" depends="dist-src"
+ description="* Generates the source distribution as a .zip file">
+ <zip zipfile="${dist.target}/${dist.name}-src.zip"
+ basedir="${dist.root}/source"/>
+ </target>
+
+ <!-- =================================================================== -->
+ <!-- Packages the source distribution with .tar.gzip -->
+ <!-- =================================================================== -->
+ <target name="dist-src-tgz" depends="dist-src"
+ description="* Generates the source distribution as a .tar.gz file">
+ <tar tarfile="${dist.target}/${dist.name}-src.tar"
+ basedir="${dist.root}/source"
+ longfile="gnu"/>
+ <gzip zipfile="${dist.target}/${dist.name}-src.tar.gz"
+ src="${dist.target}/${dist.name}-src.tar"/>
</target>
<!-- =================================================================== -->
----------------------------------------------------------------------
In case of troubles, e-mail: [EMAIL PROTECTED]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]