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.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@138929 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
23
build.xml
23
build.xml
@@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
<!--
|
<!--
|
||||||
"Logging" component of the Jakarta Commons Subproject
|
"Logging" component of the Jakarta Commons Subproject
|
||||||
$Id: build.xml,v 1.20 2002/09/27 02:02:06 rsitze Exp $
|
$Id: build.xml,v 1.21 2002/10/24 18:26:21 costin Exp $
|
||||||
-->
|
-->
|
||||||
|
|
||||||
|
|
||||||
@@ -142,8 +142,10 @@
|
|||||||
</target>
|
</target>
|
||||||
|
|
||||||
|
|
||||||
<target name="compile" depends="static"
|
<target name="compile" depends="static,compile-only"
|
||||||
description="Compile shareable components">
|
description="Compile shareable components"/>
|
||||||
|
|
||||||
|
<target name="compile-only" depends="init" >
|
||||||
<available property="jdk.1.4.present"
|
<available property="jdk.1.4.present"
|
||||||
classname="java.util.logging.Logger"/>
|
classname="java.util.logging.Logger"/>
|
||||||
<available classname="org.apache.log4j.Category"
|
<available classname="org.apache.log4j.Category"
|
||||||
@@ -176,12 +178,19 @@
|
|||||||
<copy todir="${build.home}/classes" filtering="on">
|
<copy todir="${build.home}/classes" filtering="on">
|
||||||
<fileset dir="${source.home}" excludes="**/*.java"/>
|
<fileset dir="${source.home}" excludes="**/*.java"/>
|
||||||
</copy>
|
</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"
|
basedir="${build.home}/classes"
|
||||||
manifest="${build.home}/conf/MANIFEST.MF"/>
|
manifest="${conf.home}/MANIFEST.MF">
|
||||||
<jar jarfile="${build.home}/commons-${component.name}-api.jar"
|
<include name="org/apache/commons/logging/**" />
|
||||||
|
</jar>
|
||||||
|
|
||||||
|
<jar jarfile="${commons-logging-api.jar}"
|
||||||
basedir="${build.home}/classes"
|
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/*.class" />
|
||||||
<include name="org/apache/commons/logging/impl/LogFactoryImpl*.class" />
|
<include name="org/apache/commons/logging/impl/LogFactoryImpl*.class" />
|
||||||
<include name="org/apache/commons/logging/impl/Jdk14*.class" />
|
<include name="org/apache/commons/logging/impl/Jdk14*.class" />
|
||||||
|
|||||||
Reference in New Issue
Block a user