You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commons-cvs@xml.apache.org by cu...@apache.org on 2001/11/07 21:42:59 UTC
cvs commit: xml-commons/java/external build.xml
curcuru 01/11/07 12:42:59
Modified: java/external build.xml
Log:
Add new exportsrc target for other projects who want to pick up just an
xml-commons-src.tar.gz of sources (like xml-xalan's 2.2 D12 release)
Revision Changes Path
1.3 +23 -0 xml-commons/java/external/build.xml
Index: build.xml
===================================================================
RCS file: /home/cvs/xml-commons/java/external/build.xml,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- build.xml 2001/08/14 01:08:03 1.2
+++ build.xml 2001/11/07 20:42:59 1.3
@@ -6,6 +6,10 @@
-->
<project name="xml-commons" default="jar" basedir=".">
+ <property name="name" value="xml-commons"/>
+ <property name="version" value="1.0"/>
+ <property name="project.name" value="${name}-${version}"/>
+
<property name="external-module" value="JAXP 1.1, DOM2, SAX2, SAX2-ext 1.0" />
<property name="src.dir" value="src" />
<property name="docs.dir" value="xdocs" />
@@ -49,6 +53,25 @@
<fileset dir="${docs.dir}"/>
</copy>
</target>
+
+ <target name="exportsrc" depends="prepare"
+ description="Create a simple distribution of sources">
+ <!-- Note: this not a complete public distro layout yet! -sc -->
+
+ <patternset id="external-srcs" >
+ <!-- Relative to external/src, which is ${src.dir} -->
+ <include name="org/"/>
+ <include name="javax/"/>
+ </patternset>
+
+ <tar tarfile="${build.dir}/${project.name}-src.tar" >
+ <tarfileset dir="${src.dir}">
+ <patternset refid="external-srcs"/>
+ </tarfileset>
+ </tar>
+ <gzip src="${build.dir}/${project.name}-src.tar" zipfile="${build.dir}/${project.name}-src.tar.gz"/>
+ <delete file="${build.dir}/${project.name}-src.tar" />
+ </target>
<target name="clean"
description="Clean the output build area">