poi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kl...@apache.org
Subject cvs commit: jakarta-poi build.xml
Date Wed, 13 Jul 2005 20:52:10 GMT
klute       2005/07/13 13:52:10

  Modified:    .        build.xml
  Log:
  - Added the "source" and "target" options to the javac targets in order to place restrictions
on the Java source code and the generated byte code with respect to the JDK version supported
by POI. I set the latter to 1.3.
  
  Revision  Changes    Path
  1.76      +38 -29    jakarta-poi/build.xml
  
  Index: build.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-poi/build.xml,v
  retrieving revision 1.75
  retrieving revision 1.76
  diff -u -r1.75 -r1.76
  --- build.xml	4 Jul 2005 09:59:03 -0000	1.75
  +++ build.xml	13 Jul 2005 20:52:10 -0000	1.76
  @@ -100,19 +100,24 @@
     <property name="examples.jar3.url" value="${repository}/commons-lang/jars/commons-lang-1.0-b1.jar"/>
     <property name="examples.testokfile" location="build/examples-testokfile.txt"/>
   
  -    <property name="junit.jar1.dir" location="${main.lib}/junit-3.8.1.jar"/>
  -    <property name="junit.jar1.url" value="${repository}/junit/jars/junit-3.8.1.jar"/>
  -    <property name="build.site" location="build/tmp/site/build/site"/>
  -    <property name="build.site.src" location="build/tmp/site"/>
  -    <property name="junit.report.dir" location="${build.site}/junit"/>
  -    <property name="jdepend.report.dir" location="${build.site}/jdepend"/>
  -    <property name="jdepend.report.out.dir" location="${build.site.src}/src/documentation/content/jdepend"/>
  -    <property name="apidocs.report.dir" location="${build.site}/apidocs"/>
  -    <property name="changelog.file" location="${build.site}/changelog.html"/>
  -    <property name="dist.dir" location="build/dist"/>
  -    <property name="jar.name" value="poi"/>
  -    <property name="version.id" value="3.0-alpha1"/>
  -    <property name="halt.on.test.failure" value="true"/>
  +  <property name="junit.jar1.dir" location="${main.lib}/junit-3.8.1.jar"/>
  +  <property name="junit.jar1.url" value="${repository}/junit/jars/junit-3.8.1.jar"/>
  +  <property name="build.site" location="build/tmp/site/build/site"/>
  +  <property name="build.site.src" location="build/tmp/site"/>
  +  <property name="junit.report.dir" location="${build.site}/junit"/>
  +  <property name="jdepend.report.dir" location="${build.site}/jdepend"/>
  +  <property name="jdepend.report.out.dir" location="${build.site.src}/src/documentation/content/jdepend"/>
  +  <property name="apidocs.report.dir" location="${build.site}/apidocs"/>
  +  <property name="changelog.file" location="${build.site}/changelog.html"/>
  +  <property name="dist.dir" location="build/dist"/>
  +  <property name="jar.name" value="poi"/>
  +  <property name="version.id" value="3.0-alpha1"/>
  +  <property name="halt.on.test.failure" value="true"/>
  +  <property name="jdk.version.source" value="1.3"
  +    description="JDK version of source code"/>
  +  <property name="jdk.version.class" value="1.3"
  +    description="JDK version of generated class files"/>  
  + 
   
       <path id="main.classpath">
           <pathelement location="${main.jar1.dir}"/>
  @@ -258,12 +263,14 @@
       <copy todir="${main.output.dir}">
         <fileset dir="${main.resource1.dir}"/>
       </copy>
  -    <javac srcdir="${main.src}" destdir="${main.output.dir}" debug="on"
  -      fork="yes" includeAntRuntime="no" failonerror="true">
  +    <javac target="${jdk.version.class}" source="${jdk.version.source}"
  +      failonerror="true" destdir="${main.output.dir}" debug="on" fork="yes"
  +      srcdir="${main.src}">
         <classpath refid="main.classpath"/>
       </javac>
  -    <javac srcdir="${main.src.test}" destdir="${main.output.test.dir}"
  -      debug="on" fork="yes" includeAntRuntime="no" failonerror="true">
  +    <javac target="${jdk.version.class}" source="${jdk.version.source}"
  +      failonerror="true" destdir="${main.output.test.dir}" debug="on"
  +      fork="yes" srcdir="${main.src.test}">
         <classpath>
           <path refid="main.classpath"/>
           <pathelement location="${main.output.dir}"/>
  @@ -273,13 +280,14 @@
     </target>
   
     <target name="compile-scratchpad" depends="init">
  -    <javac srcdir="${scratchpad.src}" destdir="${scratchpad.output.dir}"
  -      debug="on" fork="yes" includeAntRuntime="no" failonerror="true">
  +    <javac target="${jdk.version.class}" source="${jdk.version.source}"
  +      failonerror="true" destdir="${scratchpad.output.dir}" debug="on"
  +      fork="yes" srcdir="${scratchpad.src}">
         <classpath refid="scratchpad.classpath"/>
       </javac>
  -    <javac srcdir="${scratchpad.src.test}"
  -      destdir="${scratchpad.output.test.dir}" debug="on" fork="yes"
  -      includeAntRuntime="no" failonerror="true">
  +    <javac target="${jdk.version.class}" source="${jdk.version.source}"
  +      failonerror="true" destdir="${scratchpad.output.test.dir}" debug="on"
  +      fork="yes" srcdir="${scratchpad.src.test}">
         <classpath>
           <path refid="scratchpad.classpath"/>
           <pathelement location="${scratchpad.output.dir}"/>
  @@ -289,13 +297,14 @@
     </target>
   
     <target name="compile-contrib" depends="init">
  -    <javac srcdir="${contrib.src}" destdir="${contrib.output.dir}"
  -      debug="on" fork="yes" includeAntRuntime="no" failonerror="true">
  +    <javac target="${jdk.version.class}" source="${jdk.version.source}"
  +      failonerror="true" destdir="${contrib.output.dir}" debug="on" fork="yes"
  +      srcdir="${contrib.src}">
         <classpath refid="contrib.classpath"/>
       </javac>
  -    <javac srcdir="${contrib.src.test}"
  -      destdir="${contrib.output.test.dir}" debug="on" fork="yes"
  -      includeAntRuntime="no" failonerror="true">
  +    <javac target="${jdk.version.class}" source="${jdk.version.source}"
  +      failonerror="true" destdir="${contrib.output.test.dir}" debug="on"
  +      fork="yes" srcdir="${contrib.src.test}">
         <classpath>
           <path refid="contrib.classpath"/>
           <pathelement location="${contrib.output.dir}"/>
  @@ -305,8 +314,8 @@
     </target>
   
     <target name="compile-examples" depends="init">
  -    <javac srcdir="${examples.src}" destdir="${examples.output.dir}"
  -      debug="on">
  +    <javac target="${jdk.version.class}" source="${jdk.version.source}"
  +      destdir="${examples.output.dir}" debug="on" srcdir="${examples.src}">
         <classpath refid="examples.classpath"/>
       </javac>
     </target>
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: poi-dev-unsubscribe@jakarta.apache.org
Mailing List:    http://jakarta.apache.org/site/mail2.html#poi
The Apache Jakarta POI Project: http://jakarta.apache.org/poi/


Mime
View raw message