commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j..@apache.org
Subject cvs commit: jakarta-commons-sandbox/lang default.properties build.xml build.properties.sample
Date Sat, 23 Mar 2002 00:43:01 GMT
jon         02/03/22 16:43:01

  Modified:    lang     build.xml
  Added:       lang     default.properties
  Removed:     lang     build.properties.sample
  Log:
  fixing up build systems...
  
  -jon
  
  Revision  Changes    Path
  1.6       +10 -79    jakarta-commons-sandbox/lang/build.xml
  
  Index: build.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/lang/build.xml,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- build.xml	11 Mar 2002 08:05:20 -0000	1.5
  +++ build.xml	23 Mar 2002 00:43:00 -0000	1.6
  @@ -3,102 +3,33 @@
   
   <!--
           "Lang" component of the Jakarta Commons Subproject
  -        $Id: build.xml,v 1.5 2002/03/11 08:05:20 dlr Exp $
  +        $Id: build.xml,v 1.6 2002/03/23 00:43:00 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        -->
  +<!-- ========== Construct compile classpath =============================== -->
   
  -
  -<!-- ========== 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="lang"/>
  -
  -  <!-- The primary package name of this component -->
  -  <property name="component.package"       value="org.apache.commons.lang"/>
  -
  -  <!-- The title of this component -->
  -  <property name="component.title"         value="Core Language 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 -->
     <path id="compile.classpath">
       <pathelement location="${build.home}/classes"/>
     </path>
   
  +<!-- ========== Construct unit test classpath ============================= -->
   
  -<!-- ========== Test Execution Defaults =================================== -->
  -
  -
  -  <!-- Construct unit test classpath -->
     <path id="test.classpath">
       <pathelement location="${build.home}/classes"/>
       <pathelement location="${build.home}/tests"/>
       <pathelement location="${junit.jar}"/>
     </path>
   
  -  <!-- Should all tests fail if one does? -->
  -  <property name="test.failonerror"        value="true"/>
  -
  -  <!-- 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,17 +134,17 @@
       <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>
   
   
     <target name="install-jar" depends="jar"
  -   description="Installs jar file in ${lib.repo}">
  +   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/lang/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-lang
  
  # The primary package name of this component
  component.package = org.apache.commons.lang
  
  # The title of this component
  component.title = Core Language 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:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message