From d3d86061ae98b9e6ba612d3962d5a648c1384f8b Mon Sep 17 00:00:00 2001 From: Robert Burrell Donkin Date: Tue, 24 Jan 2006 21:09:51 +0000 Subject: [PATCH] Updated dist method to reflect modern practice. Added optional isolated compilation for releases (requires a pre-1.4 JVM to run the ant tasks and the executable.javac1.4 build property to be set). Artifacts are built in new subdirectory with file ending standardisation. Ant lacks a svn task so will consider whether the source artifacts should also be created by dist. git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@372020 13f79535-47bb-0310-9956-ffa450edef68 --- build.properties.sample | 5 +++ build.xml | 76 +++++++++++++++++++++++++++++++++++++---- 2 files changed, 75 insertions(+), 6 deletions(-) diff --git a/build.properties.sample b/build.properties.sample index 9ddcd07..94d45c0 100644 --- a/build.properties.sample +++ b/build.properties.sample @@ -38,3 +38,8 @@ junit.jar=lib/junit-3.8.1.jar # Those committers using agents may like to use #maven.username=rdonkin #logging.cvs=lserver:rdonkin@cvs.apache.org:/home/cvs + + +# The path to a 1.4 JSDK javac +# Optional - used when building with a 1.2 JVM for releases +# executable.javac1.4=/opt/java/jdks/j2sdk1.4.2_10/bin/javac diff --git a/build.xml b/build.xml index 8297d7d..4c4f1d9 100644 --- a/build.xml +++ b/build.xml @@ -33,6 +33,11 @@ - * run ant as "ant -lib path-to-junit-jar" - * put the junit jar in $CLASSPATH - + - Note when building JCL for release it is strongly recommended that a 1.2 JVM + - is used for the main compile and the home.jdk4 property used to specify + - the path to a 1.4 J2SDK. This will be used to compile those classes + - which require the 1.4 API. + - - $Id$ --> @@ -97,6 +102,9 @@ + + + @@ -104,11 +112,14 @@ - + + + + @@ -236,8 +247,6 @@ - - @@ -313,7 +322,7 @@ + depends='log4j12-warning,log4j13-warning,logkit-warning,jdk1.4-warning,avalon-framework-warning,compile-1.4'/> @@ -350,6 +359,38 @@ unless="avalon-framework.present"/> + + + + + + + + + + + + + + + + @@ -523,8 +564,11 @@ - + + + + @@ -532,7 +576,7 @@ description="Clean and compile all components"/> -