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) git-svn-id: https://svn.apache.org/repos/asf/xml/commons/trunk@225931 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
a2a37eb4cf
commit
dd667592a1
23
java/external/build.xml
vendored
23
java/external/build.xml
vendored
@ -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" />
|
||||
@ -50,6 +54,25 @@
|
||||
</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">
|
||||
<delete file="${api.jar}"/>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user