aboutsummaryrefslogtreecommitdiffstats
path: root/build.xml
diff options
context:
space:
mode:
authorJeremias Maerki <jeremias@apache.org>2006-10-11 09:07:19 +0000
committerJeremias Maerki <jeremias@apache.org>2006-10-11 09:07:19 +0000
commit39c0d00f684d689f6b3a3c2ecac9f2ecf3477b99 (patch)
treee6838fc903662a379140f25ba7bfcfc5b426a2bb /build.xml
parent9a8cca06a4e21a810addbb70e18ef1d5cccd45c2 (diff)
downloadxmlgraphics-fop-39c0d00f684d689f6b3a3c2ecac9f2ecf3477b99.tar.gz
xmlgraphics-fop-39c0d00f684d689f6b3a3c2ecac9f2ecf3477b99.zip
Added a task for a source JAR (for Maven and Eclipse users)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@462742 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'build.xml')
-rw-r--r--build.xml38
1 files changed, 38 insertions, 0 deletions
diff --git a/build.xml b/build.xml
index e32fba407..746752c9a 100644
--- a/build.xml
+++ b/build.xml
@@ -293,6 +293,7 @@ list of possible build targets.
<path id="graphics-configuration-adapter">
<pathelement location="src/java-1.3"/>
</path>
+ <property name="src.java.version.dir" value="${basedir}/src/java-1.3"/>
</target>
<target name="init-filters-jdk14" depends="init-avail" if="jdk14.present">
@@ -300,6 +301,7 @@ list of possible build targets.
<path id="graphics-configuration-adapter">
<pathelement location="src/java-1.4"/>
</path>
+ <property name="src.java.version.dir" value="${basedir}/src/java-1.4"/>
</target>
<!-- =================================================================== -->
@@ -476,6 +478,10 @@ list of possible build targets.
</jar>
</target>
+ <!-- =================================================================== -->
+ <!-- main FOP JARs -->
+ <!-- =================================================================== -->
+
<target name="uptodate-jar-main" depends="compile-java">
<uptodate property="jar.main.uptodate" targetfile="${build.dir}/fop.jar">
<srcfiles dir= "${build.classes.dir}"/>
@@ -528,6 +534,38 @@ list of possible build targets.
</jar>
</target>
+ <target name="uptodate-jar-sources" depends="codegen">
+ <uptodate property="jar.sources.uptodate" targetfile="${build.dir}/fop-sources.jar">
+ <srcfiles dir="${build.gensrc.dir}"/>
+ <srcfiles dir="${src.java.dir}"/>
+ <srcfiles refid="graphics-configuration-adapter"/>
+ </uptodate>
+ </target>
+
+ <target name="jar-sources" depends="codegen" description="Generates a jar file with all the sources" unless="jar.sources.uptodate">
+ <tstamp>
+ <format property="ts" pattern="yyyyMMdd-HHmmss-z"/>
+ </tstamp>
+ <patternset id="java-only">
+ <include name="**/*.java"/>
+ </patternset>
+ <jar jarfile="${build.dir}/fop-sources.jar">
+ <fileset dir="${build.gensrc.dir}">
+ <patternset refid="java-only"/>
+ </fileset>
+ <fileset dir="${src.java.dir}">
+ <patternset refid="java-only"/>
+ </fileset>
+ <fileset dir="${src.java.version.dir}">
+ <patternset refid="java-only"/>
+ </fileset>
+ <fileset dir="${basedir}">
+ <include name="LICENSE"/>
+ <include name="NOTICE"/>
+ </fileset>
+ </jar>
+ </target>
+
<!-- =================================================================== -->
<!-- Creates the class package -->
<!-- =================================================================== -->