commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nicola...@apache.org
Subject cvs commit: jakarta-commons-sandbox/io build.xml
Date Tue, 09 Jul 2002 14:58:35 GMT
nicolaken    2002/07/09 07:58:35

  Modified:    io       build.xml
  Log:
  Added compile.examples to build and the examples jar to "jar"
  
  Revision  Changes    Path
  1.3       +28 -4     jakarta-commons-sandbox/io/build.xml
  
  Index: build.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/io/build.xml,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- build.xml	28 Jan 2002 04:44:49 -0000	1.2
  +++ build.xml	9 Jul 2002 14:58:35 -0000	1.3
  @@ -60,7 +60,9 @@
     <!-- The base directory for unit test sources -->
     <property name="test.home"               value="src/test"/>
   
  -
  +  <!-- The base directory for unit test sources -->
  +  <property name="examples.home"           value="src/examples"/>
  +  
   <!-- ========== Compiler Defaults ========================================= -->
   
   
  @@ -114,6 +116,7 @@
       <mkdir dir="${build.home}/classes"/>
       <mkdir dir="${build.home}/conf"/>
       <mkdir dir="${build.home}/tests"/>
  +    <mkdir dir="${build.home}/examples"/>
     </target>
   
   
  @@ -155,6 +158,20 @@
       </copy>
     </target>
   
  +  <target name="compile.examples" depends="compile"
  +   description="Compile examples">
  +    <javac  srcdir="${examples.home}"
  +           destdir="${build.home}/examples"
  +             debug="${compile.debug}"
  +       deprecation="${compile.deprecation}"
  +          optimize="${compile.optimize}">
  +      <classpath refid="compile.classpath"/>
  +    </javac>
  +    <copy    todir="${build.home}/examples" filtering="on">
  +      <fileset dir="${examples.home}" excludes="**/*.java"/>
  +    </copy>
  +  </target>
  +  
   
     <target name="clean"
      description="Clean build and distribution directories">
  @@ -163,7 +180,7 @@
     </target>
   
   
  -  <target name="all" depends="clean,compile"
  +  <target name="all" depends="clean,compile, compile.examples"
      description="Clean and compile all components"/>
   
   
  @@ -197,7 +214,7 @@
     </target>
   
   
  -  <target name="jar" depends="compile"
  +  <target name="jar" depends="compile, compile.examples"
      description="Create jar">
       <mkdir      dir="${dist.home}"/>
       <mkdir      dir="${build.home}/classes/META-INF"/>
  @@ -206,6 +223,13 @@
       <jar    jarfile="${dist.home}/commons-${component.name}.jar"
               basedir="${build.home}/classes"
              manifest="${build.home}/conf/MANIFEST.MF"/>
  +    <mkdir      dir="${dist.home}/examples"/>
  +    <mkdir      dir="${build.home}/examples/classes/META-INF"/>
  +    <copy      file="../LICENSE"
  +             tofile="${build.home}/examples/classes/META-INF/LICENSE.txt"/>
  +    <jar    jarfile="${dist.home}/commons-${component.name}-examples.jar"
  +            basedir="${build.home}/examples/classes"
  +           manifest="${build.home}/conf/MANIFEST.MF"/>           
     </target>
   
   
  
  
  

--
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