Add spring-build 2.5.2
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.5.2 spring-build
This commit is contained in:
66
spring-build/par/artifact.xml
Normal file
66
spring-build/par/artifact.xml
Normal file
@@ -0,0 +1,66 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
Copyright 2010 SpringSource
|
||||
|
||||
Licensed 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.
|
||||
-->
|
||||
<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>
|
||||
21
spring-build/par/common.xml
Normal file
21
spring-build/par/common.xml
Normal file
@@ -0,0 +1,21 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
Copyright 2010 SpringSource
|
||||
|
||||
Licensed 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.
|
||||
-->
|
||||
<project name="common-par">
|
||||
|
||||
<import file="../multi-bundle/common.xml"/>
|
||||
|
||||
</project>
|
||||
25
spring-build/par/default.xml
Normal file
25
spring-build/par/default.xml
Normal file
@@ -0,0 +1,25 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
Copyright 2010 SpringSource
|
||||
|
||||
Licensed 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.
|
||||
-->
|
||||
<project name="default-par">
|
||||
|
||||
<import file="common.xml"/>
|
||||
<import file="artifact.xml"/>
|
||||
<import file="quality.xml"/>
|
||||
<import file="package.xml"/>
|
||||
<import file="publish.xml"/>
|
||||
|
||||
</project>
|
||||
31
spring-build/par/package.xml
Normal file
31
spring-build/par/package.xml
Normal file
@@ -0,0 +1,31 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
Copyright 2010 SpringSource
|
||||
|
||||
Licensed 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.
|
||||
-->
|
||||
<project name="package-par">
|
||||
|
||||
<import file="common.xml"/>
|
||||
<import file="../common/package.xml"/>
|
||||
|
||||
<!-- Macros -->
|
||||
<macrodef name="dist-jar">
|
||||
<attribute name="output.dir" default="${package.dist.dir}"/>
|
||||
<sequential>
|
||||
<mkdir dir="@{output.dir}"/>
|
||||
<copy file="${par.output.file}" tofile="@{output.dir}/${package.par.output.file}"/>
|
||||
</sequential>
|
||||
</macrodef>
|
||||
|
||||
</project>
|
||||
66
spring-build/par/publish.xml
Normal file
66
spring-build/par/publish.xml
Normal file
@@ -0,0 +1,66 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
Copyright 2010 SpringSource
|
||||
|
||||
Licensed 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.
|
||||
-->
|
||||
<project name="publish-par" xmlns:ivy="antlib:org.apache.ivy.ant" xmlns:maven="antlib:org.apache.maven.artifact.ant">
|
||||
|
||||
<import file="common.xml"/>
|
||||
<import file="../common/publish.xml"/>
|
||||
|
||||
<target name="publish-ivy" depends="ivy.init, resolve">
|
||||
<delete quiet="true" file="${ivy.output.file}"/>
|
||||
<mkdir dir="${ivy.output.dir}" />
|
||||
|
||||
<ivy:publish resolver="${publication.resolver.prefix}-bundle-publish" pubdate="${timestamp}"
|
||||
status="${release.type}">
|
||||
<artifacts pattern="${par.output.dir}/[artifact].[ext]"/>
|
||||
<artifacts pattern="${source-jar.output.dir}/[artifact].[ext]"/>
|
||||
<artifacts pattern="${ivy.output.dir}/[artifact].[ext]"/>
|
||||
<artifacts pattern="${license.dir}/[artifact].[ext]"/>
|
||||
</ivy:publish>
|
||||
</target>
|
||||
|
||||
<target name="publish-maven" depends="create.pom, ivy.init, maven.init, resolve" unless="local.build">
|
||||
<maven:deploy file="${par.output.file}">
|
||||
<remoteRepository url="s3://${publish.bucket}/maven/bundles/${adjusted.release.type}">
|
||||
<authentication username="${accessKey}" passphrase="${secretKey}"/>
|
||||
</remoteRepository>
|
||||
<pom file="${pom.output.file}"/>
|
||||
</maven:deploy>
|
||||
</target>
|
||||
|
||||
<target name="publish-maven-central" depends="maven.init">
|
||||
<property name="maven.central.repository" value="s3://maven.springframework.org/${adjusted.release.type}"/>
|
||||
<maven:deploy file="${par.output.file}">
|
||||
<remoteRepository url="${maven.central.repository}">
|
||||
<authentication username="${accessKey}" passphrase="${secretKey}"/>
|
||||
</remoteRepository>
|
||||
<pom file="${local.pom.output.file}"/>
|
||||
</maven:deploy>
|
||||
</target>
|
||||
|
||||
<target name="install-maven" depends="create.pom, snapshot.pom, maven.init">
|
||||
<maven:install file="${par.output.file}">
|
||||
<pom file="${pom.output.file}"/>
|
||||
</maven:install>
|
||||
</target>
|
||||
|
||||
<target name="install-maven-central" depends="maven.init">
|
||||
<maven:install file="${par.output.file}">
|
||||
<pom file="${local.pom.output.file}"/>
|
||||
</maven:install>
|
||||
</target>
|
||||
|
||||
</project>
|
||||
22
spring-build/par/quality.xml
Normal file
22
spring-build/par/quality.xml
Normal file
@@ -0,0 +1,22 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
Copyright 2010 SpringSource
|
||||
|
||||
Licensed 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.
|
||||
-->
|
||||
<project name="quality-par">
|
||||
|
||||
<import file="common.xml"/>
|
||||
<import file="../multi-bundle/quality.xml"/>
|
||||
|
||||
</project>
|
||||
Reference in New Issue
Block a user