You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by co...@apache.org on 2002/10/24 20:26:21 UTC

cvs commit: jakarta-commons/logging build.xml

costin      2002/10/24 11:26:21

  Modified:    logging  build.xml
  Log:
  A small change that allows the quick build of commons-logging jars.
  
  The way I use it is:
     <ant dir="${cvs.base}/jakarta-commons/logging" target="compile-only" >
         <property name="commons-logging-api.jar" location="${build.dir}/lib/commons-logging-api.jar" />
          <property name="commons-logging.jar" location="${build.dir}/lib/commons-logging.jar" />
          <property name="build.home" value="${build.dir}" />
      </ant>
  
  If it brakes something or any other problem - please let me know.
  
  Revision  Changes    Path
  1.21      +16 -7     jakarta-commons/logging/build.xml
  
  Index: build.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/logging/build.xml,v
  retrieving revision 1.20
  retrieving revision 1.21
  diff -u -r1.20 -r1.21
  --- build.xml	27 Sep 2002 02:02:06 -0000	1.20
  +++ build.xml	24 Oct 2002 18:26:21 -0000	1.21
  @@ -142,8 +142,10 @@
     </target>
   
   
  -  <target name="compile" depends="static"
  -          description="Compile shareable components">
  +  <target name="compile" depends="static,compile-only"
  +          description="Compile shareable components"/>
  +
  +  <target name="compile-only" depends="init" >
       <available property="jdk.1.4.present"
                  classname="java.util.logging.Logger"/>
       <available classname="org.apache.log4j.Category" 
  @@ -176,12 +178,19 @@
       <copy  todir="${build.home}/classes" filtering="on">
         <fileset dir="${source.home}" excludes="**/*.java"/>
       </copy>
  -    <jar jarfile="${build.home}/commons-${component.name}.jar"
  +
  +    <property name="commons-logging-api.jar" value="${build.home}/commons-${component.name}-api.jar" />
  +    <property name="commons-logging.jar" value="${build.home}/commons-${component.name}.jar" />
  +
  +    <jar jarfile="${commons-logging.jar}"
            basedir="${build.home}/classes"
  -         manifest="${build.home}/conf/MANIFEST.MF"/>
  -    <jar jarfile="${build.home}/commons-${component.name}-api.jar"
  +         manifest="${conf.home}/MANIFEST.MF">
  +      <include name="org/apache/commons/logging/**" />
  +    </jar>
  +
  +    <jar jarfile="${commons-logging-api.jar}"
            basedir="${build.home}/classes"
  -         manifest="${build.home}/conf/MANIFEST.MF">
  +         manifest="${conf.home}/MANIFEST.MF">
         <include name="org/apache/commons/logging/*.class" />
         <include name="org/apache/commons/logging/impl/LogFactoryImpl*.class" />
         <include name="org/apache/commons/logging/impl/Jdk14*.class" />
  
  
  

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>