[slf4j-dev] [Bug 6] New: build.xml, target: jcl-over-slf4j.jar; 3 build problems

bugzilla-daemon at gil.qos.ch bugzilla-daemon at gil.qos.ch
Sun Dec 4 15:41:38 CET 2005


http://bugzilla.slf4j.org/show_bug.cgi?id=6

           Summary: build.xml, target: jcl-over-slf4j.jar; 3 build problems
           Product: SLF4J
           Version: 1.0rc1
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Core API
        AssignedTo: dev at slf4j.org
        ReportedBy: jjfraney at verizon.net


1) javac task uses uninitialized '${debug}'. (no default).
  Note: slf4j-IMPL target's javac task hardwires debug="on".
2) target does not copy in JCLSTEM java code into temp directory
3) slf4j-nop jar builds twice: as 'depends' and as first antcall task

fix as 'svn diff build.xml':

Index: build.xml
===================================================================
--- build.xml   (revision 444)
+++ build.xml   (working copy)
@@ -6,6 +6,7 @@

        <property file="local.properties" />

+
        <property name="tmp.java.source.dir" value="./tmp/src" />
        <property name="tmp.javac.dest" value="./tmp/classes" />

@@ -19,6 +20,8 @@
        <property name="SLF4J_STEM" value="org/slf4j" />
        <property name="JCL_STEM" value="org/apache/commons/logging" />

+       <property name="javac-debug-flag" value="off" />
+
        <!-- =================================================================
-->        <!-- Default target                                                 
  -->        <!--
================================================================= -->@@ -169,7
+172,7 @@
                     ${SLF4J_STEM}/impl/MessageFormatter.java,
                     ${SLF4J_STEM}/impl/Util.java
                      ${SLF4J_STEM}/impl/${IMPL}*.java
-                    ${SLF4J_STEM}/spi/*.java" debug="on">
+                    ${SLF4J_STEM}/spi/*.java" debug="${javac-debug-flag}">
                        <classpath refid="${IMPL.CLASSPATH}" />
                </javac>

@@ -282,16 +285,17 @@

        <target name="jcl-over-slf4j.jar" depends="slf4j-nop.jar">

-               <antcall target="compile-IMPL">
-                       <param name="IMPL" value="NOP" />
-                       <param name="IMPL.CLASSPATH" value="regular.classpath" />
-               </antcall>
+               <copy todir="${tmp.java.source.dir}/${JCL_STEM}">
+                       <fileset dir="./src/java/${JCL_STEM}">
+                               <include name="**/*.java" />
+                       </fileset>
+               </copy>

                <javac srcdir="${tmp.java.source.dir}" destdir="${tmp.javac.dest}"
                           deprecation="on"
                           target="${target}"
                           source="${source}"
-                          includes="${JCL_STEM}/**/*.java" debug="${debug}">
+                          includes="${JCL_STEM}/**/*.java"
debug="${javac-debug-flag}">
                </javac>

                <jar jarfile="${jcl.jar}" basedir="${tmp.javac.dest}"
includes="${JCL_STEM}/**/*.class">

-- 
Configure bugmail: http://bugzilla.slf4j.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the slf4j-dev mailing list