diff options
-rw-r--r-- | build.xml | 33 | ||||
-rw-r--r-- | xmlgraphics-fop-pom-template.pom | 138 |
2 files changed, 170 insertions, 1 deletions
@@ -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"> diff --git a/xmlgraphics-fop-pom-template.pom b/xmlgraphics-fop-pom-template.pom new file mode 100644 index 000000000..1bfbc49db --- /dev/null +++ b/xmlgraphics-fop-pom-template.pom @@ -0,0 +1,138 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<!-- $Id$ -->
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
+http://maven.apache.org/maven-v4_0_0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.apache.xmlgraphics</groupId>
+ <artifactId>xmlgraphics-fop</artifactId>
+ <packaging>jar</packaging>
+ <name>Apache FOP</name>
+ <version>@version@</version>
+ <url>http://xmlgraphics.apache.org/fop/</url>
+ <description>Apache FOP (Formatting Objects Processor) is the world's first print formatter driven by XSL formatting objects (XSL-FO) and the world's first output independent formatter. It is a Java application that reads a formatting object (FO) tree and renders the resulting pages to a specified output. Output formats currently supported include PDF, PCL, PS, AFP, TIFF, PNG, SVG, XML (area tree representation), Print, AWT and TXT. The primary output target is PDF.</description>
+ <inceptionYear>1999</inceptionYear>
+ <mailingLists>
+ <mailingList>
+ <name>FOP Users List</name>
+ <subscribe>fop-users-subscribe@xmlgraphics.apache.org</subscribe>
+ <unsubscribe>fop-users-unsubscribe@xmlgraphics.apache.org</unsubscribe>
+ <archive>http://mail-archives.apache.org/mod_mbox/xmlgraphics-fop-users/</archive>
+ </mailingList>
+ <mailingList>
+ <name>FOP Developer List</name>
+ <subscribe>fop-dev-subscribe@xmlgraphics.apache.org</subscribe>
+ <unsubscribe>fop-dev-unsubscribe@xmlgraphics.apache.org</unsubscribe>
+ <archive>http://mail-archives.apache.org/mod_mbox/xmlgraphics-fop-dev/</archive>
+ </mailingList>
+ <mailingList>
+ <name>FOP Commit List</name>
+ <subscribe>fop-commits-subscribe@xmlgraphics.apache.org</subscribe>
+ <unsubscribe>fop-commits-unsubscribe@xmlgraphics.apache.org</unsubscribe>
+ <archive>http://mail-archives.apache.org/mod_mbox/xmlgraphics-fop-commits/</archive>
+ </mailingList>
+ </mailingLists>
+ <licenses>
+ <license>
+ <name>The Apache Software License, Version 2.0</name>
+ <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
+ <distribution>repo</distribution>
+ </license>
+ </licenses>
+ <scm>
+ <connection>scm:svn:http://svn.apache.org/repos/asf/xmlgraphics/fop/trunk</connection>
+ <developerConnection>scm:svn:https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk</developerConnection>
+ <url>http://svn.apache.org/viewcvs.cgi/xmlgraphics/fop/trunk/?root=Apache-SVN</url>
+ </scm>
+ <organization>
+ <name>Apache Software Foundation</name>
+ <url>http://www.apache.org/</url>
+ </organization>
+ <dependencies>
+ <!-- XML Graphics -->
+ <dependency>
+ <groupId>org.apache.xmlgraphics</groupId>
+ <artifactId>xmlgraphics-commons</artifactId>
+ <version>1.1</version>
+ </dependency>
+ <dependency>
+ <groupId>batik</groupId>
+ <artifactId>batik-svg-dom</artifactId>
+ <version>1.6-1</version>
+ </dependency>
+ <dependency>
+ <groupId>batik</groupId>
+ <artifactId>batik-bridge</artifactId>
+ <version>1.6-1</version>
+ </dependency>
+ <dependency>
+ <groupId>batik</groupId>
+ <artifactId>batik-awt-util</artifactId>
+ <version>1.6-1</version>
+ </dependency>
+ <dependency>
+ <groupId>batik</groupId>
+ <artifactId>batik-gvt</artifactId>
+ <version>1.6-1</version>
+ </dependency>
+ <dependency>
+ <groupId>batik</groupId>
+ <artifactId>batik-transcoder</artifactId>
+ <version>1.6-1</version>
+ </dependency>
+ <dependency>
+ <groupId>batik</groupId>
+ <artifactId>batik-extension</artifactId>
+ <version>1.6-1</version>
+ </dependency>
+ <dependency>
+ <groupId>batik</groupId>
+ <artifactId>batik-ext</artifactId>
+ <version>1.6-1</version>
+ </dependency>
+ <!-- other dependencies -->
+ <dependency>
+ <groupId>commons-logging</groupId>
+ <artifactId>commons-logging</artifactId>
+ <version>1.0.4</version>
+ </dependency>
+ <dependency>
+ <groupId>commons-io</groupId>
+ <artifactId>commons-io</artifactId>
+ <version>1.1</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.avalon.framework</groupId>
+ <artifactId>avalon-framework-api</artifactId>
+ <version>4.3</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.avalon.framework</groupId>
+ <artifactId>avalon-framework-impl</artifactId>
+ <version>4.3</version>
+ </dependency>
+ <dependency>
+ <groupId>javax.servlet</groupId>
+ <artifactId>servlet-api</artifactId>
+ <version>2.3</version>
+ <scope>provided</scope>
+ </dependency>
+ </dependencies>
+</project>
|