From f0702988692298d7199d62cb4ab562e87136cb2f Mon Sep 17 00:00:00 2001 From: Phil Steitz Date: Mon, 11 Apr 2011 05:00:19 +0000 Subject: [PATCH] Restored Ant build. git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1090934 13f79535-47bb-0310-9956-ffa450edef68 --- build.properties.sample | 26 ++++ build.xml | 259 ++++++++++++++++++++++++++++++++++++++++ default.properties | 81 +++++++++++++ src/assembly/src.xml | 3 + 4 files changed, 369 insertions(+) create mode 100644 build.properties.sample create mode 100644 build.xml create mode 100644 default.properties diff --git a/build.properties.sample b/build.properties.sample new file mode 100644 index 000000000..41bee9a45 --- /dev/null +++ b/build.properties.sample @@ -0,0 +1,26 @@ +# 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. +########################################################################## +# Sample Ant build.properties file +# +# This setup assumes dependent jars are in a local maven 2 repository. +# However the jars are located, the properties ending in ".jar" need +# expand to full paths to the jars. +########################################################################## + +# Repository base path - unnecessary if full jar paths are provided below +repository=${user.home}/.m2/repository +junit.home=${repository}/junit/junit/4.7/ +easymock.home=${repository}/org/easymock/easymock/2.5.2/ diff --git a/build.xml b/build.xml new file mode 100644 index 000000000..2e1181f28 --- /dev/null +++ b/build.xml @@ -0,0 +1,259 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/default.properties b/default.properties new file mode 100644 index 000000000..42813d47b --- /dev/null +++ b/default.properties @@ -0,0 +1,81 @@ +# +# 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$ + +# The location of the "junit.jar" JAR file +junit.jar = ${junit.home}/junit-4.7.jar + +# The location of the Easymock jar +easymock.jar = ${easymock.home}/easymock-2.5.2.jar + +# Whether or not to fork tests +junit.fork = true + +# The name of this component +component.name = commons-lang + +# The primary package name of this component +component.package = org.apache.commons.lang3 + +# The title of this component +component.title = Core Language Utilities + +# The current version number of this component +component.version = 3.0 + +# The name that is used to create the jar file +final.name = ${component.name}-${component.version} + +# The base directory for compilation targets +build.home = target + +# The base directory for component configuration files +conf.home = src/conf + +# The base directory for component sources +source.home = src/main/java + +# The base directory for unit test sources +test.home = src/test/java + +# Should Java compilations set the 'debug' compiler option? +compile.debug = true + +# Should Java compilations set the 'deprecation' compiler option? +compile.deprecation = true + +# Should Java compilations set the 'optimize' compiler option? +compile.optimize = true + +# Generate class files for specific VM version (e.g., 1.1 or 1.2). +# Note that the default value depends on the JVM that is running Ant. +# In particular, if you use JDK 1.4+ the generated classes will not be usable +# for a 1.1 Java VM unless you explicitly set this attribute to the value 1.1 +# (which is the default value for JDK 1.1 to 1.3). +compile.target = 1.5 + +# Specifies the source version for the Java compiler. +# Corresponds to the source attribute for the ant javac task. +# Valid values are 1.3, 1.4, 1.5. +compile.source = 1.5 + +# Should all tests fail if one does? +test.failonerror = true + +# The test runner to execute +test.runner = junit.textui.TestRunner diff --git a/src/assembly/src.xml b/src/assembly/src.xml index 5a8d1fb8e..bc53e598a 100644 --- a/src/assembly/src.xml +++ b/src/assembly/src.xml @@ -31,6 +31,9 @@ pom.xml PROPOSAL.html RELEASE-NOTES.txt + build.xml + default.properties + build.properties.sample