Files
spring-webflow/spring-build/par/artifact.xml
Rossen Stoyanchev b13da5fa0e Add spring-build 2.2.3 and ensure build succeeds.
spring-build was previously included via an svn:external. Adding
directly to the source tree under Git to avoid the need for a git
submodule.

In order to build from any earlier commit, it is recommended to
export spring-build or symlink an existing copy into the root
of the spring-framework project and then build normally.

$ svn export https://src.springsource.org/svn/spring-build/tags/project-build-2.2.3 spring-build
2011-12-29 10:36:00 -05:00

51 lines
1.9 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<project name="artifact-par" xmlns:ivy="antlib:org.apache.ivy.ant">
<import file="common.xml"/>
<import file="../multi-bundle/artifact.xml"/>
<!-- Main targets -->
<target name="jar" depends="ivy.init"
description="Creates a PAR file containing the output of the list of bundles.">
<delete dir="${par.staging.dir}" quiet="true"/>
<mkdir dir="${par.staging.dir}"/>
<delete dir="${par.output.file}" quiet="true"/>
<mkdir dir="${jar.output.dir}"/>
<all-bundles target="jar"/>
<all-bundles target="copy-dist-jar">
<property name="copy.to.dir" value="${par.staging.dir}"/>
</all-bundles>
<all-bundles target="copy-ext-jars">
<property name="copy.to.dir" value="${par.staging.dir}"/>
</all-bundles>
<antcall target="collect-additional"/>
<jar destfile="${par.output.file}" basedir="${par.staging.dir}" index="true" filesetmanifest="merge">
<manifest>
<attribute name="Application-SymbolicName" value="${ant.project.name}"/>
<attribute name="Application-Version" value="${bundle.version}"/>
<attribute name="Application-Name" value="${application.name}"/>
<attribute name="Application-Description" value="${application.description}"/>
<attribute name="Application-Creator" value="${user.name}"/>
</manifest>
</jar>
</target>
<target name="collect-additional" depends="ivy.file.exists" if="ivy.file.exists">
<add-jars output.dir="${par.staging.dir}"/>
</target>
<target name="collect-provided"
description="Collects all the JARs expected to be provided for a PAR file.">
<delete dir="${par.provided.dir}" quiet="true"/>
<mkdir dir="${par.provided.dir}"/>
<all-bundles target="copy-provided-jars">
<property name="copy.to.dir" value="${par.provided.bundles.dir}"/>
</all-bundles>
<all-bundles target="copy-provided-libs">
<property name="copy.to.dir" value="${par.provided.libraries.dir}"/>
</all-bundles>
</target>
</project>