You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by jo...@apache.org on 2002/03/23 01:13:05 UTC
cvs commit: jakarta-commons-sandbox/codec default.properties build.xml build.properties.sample
jon 02/03/22 16:13:05
Modified: codec build.xml
Added: codec default.properties
Removed: codec build.properties.sample
Log:
fixed up the build system to be more like other build systems. :-)
-jon
Revision Changes Path
1.4 +8 -69 jakarta-commons-sandbox/codec/build.xml
Index: build.xml
===================================================================
RCS file: /home/cvs/jakarta-commons-sandbox/codec/build.xml,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- build.xml 28 Jan 2002 04:58:50 -0000 1.3
+++ build.xml 23 Mar 2002 00:13:05 -0000 1.4
@@ -3,85 +3,26 @@
<!--
"Codec" component of the Jakarta Commons Subproject
- $Id: build.xml,v 1.3 2002/01/28 04:58:50 sanders Exp $
+ $Id: build.xml,v 1.4 2002/03/23 00:13:05 jon Exp $
-->
<!-- ========== Initialize Properties ===================================== -->
+ <property file="${user.home}/${component.name}.build.properties" />
+ <property file="${user.home}/build.properties" />
+ <property file="${basedir}/build.properties" />
+ <property file="${basedir}/default.properties" />
- <property file="build.properties"/> <!-- Component local -->
- <property file="../build.properties"/> <!-- Commons local -->
- <property file="${user.home}/build.properties"/> <!-- User local -->
-
-
-<!-- ========== External Dependencies ===================================== -->
-
-
- <!-- The directory containing your binary distribution of JUnit,
- version 3.7 or later -->
- <property name="junit.home" value="/usr/local/junit3.7"/>
-
-
-<!-- ========== Derived Values ============================================ -->
-
-
- <!-- The pathname of the "junit.jar" JAR file -->
- <property name="junit.jar" value="${junit.home}/junit.jar"/>
-
-
-<!-- ========== Component Declarations ==================================== -->
-
-
- <!-- The name of this component -->
- <property name="component.name" value="codec"/>
-
- <!-- The primary package name of this component -->
- <property name="component.package" value="org.apache.commons.codec"/>
-
- <!-- The title of this component -->
- <property name="component.title" value="Encode/Decode Utilities"/>
-
- <!-- The current version number of this component -->
- <property name="component.version" value="1.0-dev"/>
-
- <!-- The base directory for compilation targets -->
- <property name="build.home" value="target"/>
-
- <!-- The base directory for component configuration files -->
- <property name="conf.home" value="src/conf"/>
-
- <!-- The base directory for distribution targets -->
- <property name="dist.home" value="dist"/>
-
- <!-- The base directory for component sources -->
- <property name="source.home" value="src/java"/>
-
- <!-- The base directory for unit test sources -->
- <property name="test.home" value="src/test"/>
-
-
-<!-- ========== Compiler Defaults ========================================= -->
-
-
- <!-- Should Java compilations set the 'debug' compiler option? -->
- <property name="compile.debug" value="true"/>
-
- <!-- Should Java compilations set the 'deprecation' compiler option? -->
- <property name="compile.deprecation" value="true"/>
-
- <!-- Should Java compilations set the 'optimize' compiler option? -->
- <property name="compile.optimize" value="true"/>
+<!-- ========== Construct compile classpath =============================== -->
<!-- Construct compile classpath -->
<path id="compile.classpath">
<pathelement location="${build.home}/classes"/>
</path>
-
<!-- ========== Test Execution Defaults =================================== -->
-
<!-- Construct unit test classpath -->
<path id="test.classpath">
<pathelement location="${build.home}/classes"/>
@@ -95,10 +36,8 @@
<!-- The test runner to execute -->
<property name="test.runner" value="junit.textui.TestRunner"/>
-
<!-- ========== Executable Targets ======================================== -->
-
<target name="init"
description="Initialize and evaluate conditionals">
<echo message="-------- ${component.name} ${component.version} --------"/>
@@ -203,7 +142,7 @@
<mkdir dir="${build.home}/classes/META-INF"/>
<copy file="../LICENSE"
tofile="${build.home}/classes/META-INF/LICENSE.txt"/>
- <jar jarfile="${dist.home}/commons-${component.name}.jar"
+ <jar jarfile="${dist.home}/${final.name}.jar"
basedir="${build.home}/classes"
manifest="${build.home}/conf/MANIFEST.MF"/>
</target>
@@ -213,7 +152,7 @@
description="--> Installs jar file in ${lib.repo}">
<copy todir="${lib.repo}" filtering="no">
<fileset dir="${dist.home}">
- <include name="commons-${component.name}.jar"/>
+ <include name="${final.name}.jar"/>
</fileset>
</copy>
</target>
1.1 jakarta-commons-sandbox/codec/default.properties
Index: default.properties
===================================================================
# The pathname of the "junit.jar" JAR file
junit.jar = ${junit.home}/junit-3.7.jar
# The name of this component
component.name = commons-codec
# The primary package name of this component
component.package = org.apache.commons.codec
# The title of this component
component.title = Encode/Decode Utilities
# The current version number of this component
component.version = 1.0-dev
# 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 distribution targets
dist.home = dist
# The base directory for component sources
source.home = src/java
# The base directory for unit test sources
test.home = src/test
# 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
# Should all tests fail if one does?
test.failonerror = true
# The test runner to execute
test.runner = junit.textui.TestRunner
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>