aboutsummaryrefslogtreecommitdiffstats
path: root/build.xml
diff options
context:
space:
mode:
authorJeremias Maerki <jeremias@apache.org>2007-05-03 08:14:12 +0000
committerJeremias Maerki <jeremias@apache.org>2007-05-03 08:14:12 +0000
commitd7f5122dee622e601260c1f8f8993719ef4f8c45 (patch)
tree712bc2f10d70761f79a6177088e6e5c46a74ae02 /build.xml
parentabe5f3efc3df10b800aff0e7c4d1168fa1320071 (diff)
downloadxmlgraphics-fop-d7f5122dee622e601260c1f8f8993719ef4f8c45.tar.gz
xmlgraphics-fop-d7f5122dee622e601260c1f8f8993719ef4f8c45.zip
Added Maven artifact building following the same pattern as in XML Graphics Commons.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@534750 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'build.xml')
-rw-r--r--build.xml33
1 files changed, 32 insertions, 1 deletions
diff --git a/build.xml b/build.xml
index 3c4f21ab9..c49200d9d 100644
--- a/build.xml
+++ b/build.xml
@@ -554,7 +554,7 @@ list of possible build targets.
<patternset id="java-only">
<include name="**/*.java"/>
</patternset>
- <jar jarfile="${build.dir}/fop-sources.jar">
+ <jar jarfile="${build.dir}/${name}-${version}-sources.jar">
<fileset dir="${build.gensrc.dir}">
<patternset refid="java-only"/>
</fileset>
@@ -1084,6 +1084,16 @@ NOTE:
</javadoc>
</target>
+ <target name="jar-javadocs" depends="javadocs" description="Generates a jar file containing the Javadocs">
+ <jar jarfile="${build.dir}/${name}-${version}-javadoc.jar">
+ <manifest>
+ <attribute name="Build-Id" value="${ts} (${user.name} [${os.name} ${os.version} ${os.arch}, Java ${java.runtime.version}])"/>
+ </manifest>
+ <fileset dir="${build.javadocs.dir}"/>
+ <metainf dir="${basedir}" includes="LICENSE,NOTICE"/>
+ </jar>
+ </target>
+
<!-- =================================================================== -->
<!-- Checkstyle -->
<!-- =================================================================== -->
@@ -1281,6 +1291,27 @@ NOTE:
</target>
<!-- =================================================================== -->
+ <!-- Maven artifacts -->
+ <!-- =================================================================== -->
+ <target name="maven-artifacts" depends="jar-main, jar-sources, jar-javadocs" description="Builds a Maven artifact that can be uploaded to a Maven repository">
+ <filter token="version" value="${version}"/>
+ <mkdir dir="${build.dir}/maven"/>
+ <copy file="${basedir}/xmlgraphics-fop-pom-template.pom" tofile="${build.dir}/maven/pom.xml" filtering="true"/>
+ <copy file="${build.dir}/${name}.jar" tofile="${build.dir}/maven/${name}-${version}.jar"/>
+ <jar jarfile="${build.dir}/${name}-${version}-bundle.jar">
+ <manifest>
+ <attribute name="Build-Id" value="${ts} (${user.name} [${os.name} ${os.version} ${os.arch}, Java ${java.runtime.version}])"/>
+ </manifest>
+ <fileset dir="${build.dir}">
+ <include name="${name}-${version}-sources.jar"/>
+ <include name="${name}-${version}-javadoc.jar"/>
+ </fileset>
+ <fileset dir="${build.dir}/maven"/>
+ <metainf dir="${basedir}" includes="LICENSE,NOTICE"/>
+ </jar>
+ </target>
+
+ <!-- =================================================================== -->
<!-- Generate example PDFs -->
<!-- =================================================================== -->
<target name="examples" depends="package" description="Generates example PDF files">