ggregory    2004/10/20 17:21:39

  Modified:    lang     default.properties build.xml
  Log:
  Two items:
  
  (1) Allow the Java 1.5 to be used to build by adding:
  
  # 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.3
  
  (2) Refactor the multiple use of the javac/target="1.1" into a build property:
  
  # 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.1
  
  Revision  Changes    Path
  1.18      +13 -1     jakarta-commons/lang/default.properties
  
  Index: default.properties
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/lang/default.properties,v
  retrieving revision 1.17
  retrieving revision 1.18
  diff -u -r1.17 -r1.18
  --- default.properties        18 Feb 2004 23:13:37 -0000      1.17
  +++ default.properties        21 Oct 2004 00:21:39 -0000      1.18
  @@ -58,6 +58,18 @@
   # 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.1
  +
  +# 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.3
  +
   # Should all tests fail if one does?
   test.failonerror = true
   
  
  
  
  1.31      +5 -3      jakarta-commons/lang/build.xml
  
  Index: build.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/lang/build.xml,v
  retrieving revision 1.30
  retrieving revision 1.31
  diff -u -r1.30 -r1.31
  --- build.xml 1 Oct 2004 22:45:51 -0000       1.30
  +++ build.xml 21 Oct 2004 00:21:39 -0000      1.31
  @@ -59,7 +59,8 @@
                  destdir="${build.home}/classes"
                  debug="${compile.debug}"
                  deprecation="${compile.deprecation}"
  -               target="1.1"
  +               target="${compile.target}"
  +               source="${compile.source}"
                  optimize="${compile.optimize}">
               <classpath refid="compile.classpath"/>
           </javac>
  @@ -72,7 +73,8 @@
                  destdir="${build.home}/tests"
                  debug="${compile.debug}"
                  deprecation="off"
  -               target="1.1"
  +               target="${compile.target}"
  +               source="${compile.source}"
                  optimize="${compile.optimize}">
               <classpath refid="test.classpath"/>
           </javac>
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to