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:
33
spring-build/aspect/artifact.xml
Normal file
33
spring-build/aspect/artifact.xml
Normal file
@@ -0,0 +1,33 @@
|
||||
<?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-aspect" xmlns:ivy="antlib:org.apache.ivy.ant">
|
||||
|
||||
<import file="common.xml"/>
|
||||
<import file="../common/artifact.xml"/>
|
||||
|
||||
<target name="jar" depends="ivy.init, resolve.aspects, artifact-common.jar"
|
||||
description="Creates a JAR file containing the output of a compilation of the source tree."/>
|
||||
|
||||
<!-- Other targets -->
|
||||
<target name="compile.init" depends="ivy.init">
|
||||
<ivy:cachepath resolveId="ajc.classpath" pathid="ajc.classpath" organisation="org.aspectj"
|
||||
module="com.springsource.org.aspectj.tools" revision="${org.aspectj.tools.version}" conf="runtime"
|
||||
type="jar" inline="true" log="download-only"/>
|
||||
<taskdef resource="org/aspectj/tools/ant/taskdefs/aspectjTaskdefs.properties" classpathref="ajc.classpath"/>
|
||||
</target>
|
||||
|
||||
</project>
|
||||
45
spring-build/aspect/common.xml
Normal file
45
spring-build/aspect/common.xml
Normal file
@@ -0,0 +1,45 @@
|
||||
<?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-aspect">
|
||||
|
||||
<import file="../common/common.xml"/>
|
||||
|
||||
<!-- Macros -->
|
||||
<macrodef name="do-compile">
|
||||
<attribute name="classpath.id"/>
|
||||
<attribute name="input.dir"/>
|
||||
<attribute name="output.dir"/>
|
||||
<attribute name="resources.dir"/>
|
||||
<sequential>
|
||||
<iajc sourceroots="@{input.dir}" destDir="@{output.dir}" classpathRef="@{classpath.id}" source="${source.version}"
|
||||
debug="${compile.debug}" debugLevel="${compile.debug.level}" checkRuntimeVersion="false"
|
||||
aspectPathRef="aspects.classpath" X="${aspectj.x}"/>
|
||||
<copy todir="@{output.dir}">
|
||||
<fileset dir="@{input.dir}" erroronmissingdir="false">
|
||||
<exclude name="**/*.aj"/>
|
||||
<exclude name="**/*.java"/>
|
||||
<exclude name="*.aj"/>
|
||||
<exclude name="*.java"/>
|
||||
</fileset>
|
||||
</copy>
|
||||
<copy todir="@{output.dir}">
|
||||
<fileset dir="@{resources.dir}" erroronmissingdir="false"/>
|
||||
</copy>
|
||||
</sequential>
|
||||
</macrodef>
|
||||
|
||||
</project>
|
||||
25
spring-build/aspect/default.xml
Normal file
25
spring-build/aspect/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-aspect">
|
||||
|
||||
<import file="common.xml"/>
|
||||
<import file="artifact.xml"/>
|
||||
<import file="quality.xml"/>
|
||||
<import file="package.xml"/>
|
||||
<import file="publish.xml"/>
|
||||
|
||||
</project>
|
||||
22
spring-build/aspect/package.xml
Normal file
22
spring-build/aspect/package.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="package-aspect">
|
||||
|
||||
<import file="common.xml"/>
|
||||
<import file="../common/package.xml"/>
|
||||
|
||||
</project>
|
||||
22
spring-build/aspect/publish.xml
Normal file
22
spring-build/aspect/publish.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="publish-aspect">
|
||||
|
||||
<import file="common.xml"/>
|
||||
<import file="../common/publish.xml"/>
|
||||
|
||||
</project>
|
||||
74
spring-build/aspect/quality.xml
Normal file
74
spring-build/aspect/quality.xml
Normal file
@@ -0,0 +1,74 @@
|
||||
<?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-aspect" xmlns:ivy="antlib:org.apache.ivy.ant">
|
||||
|
||||
<import file="common.xml"/>
|
||||
<import file="../common/quality.xml"/>
|
||||
|
||||
<target name="test.do" depends="ivy.init, resolve.test, resolve.aspects, compile.init, test.init" if="test.exists">
|
||||
<path id="test.compile.classpath">
|
||||
<pathelement location="${jar.output.file}"/>
|
||||
<path refid="compile.classpath"/>
|
||||
<path refid="test.classpath"/>
|
||||
</path>
|
||||
<path id="test.aspect.path">
|
||||
<pathelement location="${jar.output.file}"/>
|
||||
<path refid="aspects.classpath"/>
|
||||
</path>
|
||||
<test-compile classpath.id="test.compile.classpath" input.dir="${test.java.dir}" output.dir="${test.output.dir}"
|
||||
resources.dir="${test.resources.dir}"/>
|
||||
<iajc inPath="${test.output.dir}" aspectPathRef="test.aspect.path" classpathRef="test.compile.classpath"
|
||||
destDir="${test.output.dir}" source="${source.version}" checkRuntimeVersion="false" X="${aspectj.x}"/>
|
||||
|
||||
<path id="test.run.classpath">
|
||||
<pathelement location="${jar.output.file}"/>
|
||||
<pathelement location="${test.output.dir}"/>
|
||||
<path refid="compile.classpath"/>
|
||||
<path refid="test.classpath"/>
|
||||
<path refid="runtime.classpath"/>
|
||||
</path>
|
||||
<test-run classpath.id="test.run.classpath"/>
|
||||
</target>
|
||||
|
||||
<target name="clover.instrument" depends="ivy.init, resolve.aspects, resolve.test, compile.init, clover.init">
|
||||
<instrument input.dir="${main.java.dir}" output.dir="${main.clover.dir}"/>
|
||||
<path id="clover.compile.classpath">
|
||||
<path refid="clover.classpath"/>
|
||||
<path refid="compile.classpath"/>
|
||||
</path>
|
||||
<compile classpath.id="clover.compile.classpath" input.dir="${main.clover.dir}" output.dir="${main.output.dir}"
|
||||
resources.dir="${main.resources.dir}"/>
|
||||
|
||||
<instrument input.dir="${test.java.dir}" output.dir="${test.clover.dir}"/>
|
||||
<path id="test.compile.classpath">
|
||||
<pathelement location="${main.output.dir}"/>
|
||||
<path refid="clover.classpath"/>
|
||||
<path refid="compile.classpath"/>
|
||||
<path refid="test.classpath"/>
|
||||
</path>
|
||||
<path id="test.aspect.path">
|
||||
<pathelement location="${main.output.dir}"/>
|
||||
<path refid="aspects.classpath"/>
|
||||
</path>
|
||||
<test-compile classpath.id="test.compile.classpath" input.dir="${test.clover.dir}" output.dir="${test.output.dir}"
|
||||
resources.dir="${test.resources.dir}"/>
|
||||
<iajc inPath="${test.output.dir}" aspectPathRef="test.aspect.path" classpathRef="test.compile.classpath"
|
||||
destDir="${test.output.dir}" source="${source.version}" checkRuntimeVersion="false" X="${aspectj.x}"/>
|
||||
<delete dir="${clover.staging.dir}" quiet="true"/>
|
||||
</target>
|
||||
|
||||
</project>
|
||||
Reference in New Issue
Block a user