dev@jaxb.java.net

proposed <javac/> hook

From: Ed Mooney <Ed.Mooney_at_Sun.COM>
Date: Tue, 18 Oct 2005 10:16:01 -0400

I need a hook to pass <compilerarg/> to <javac/>. I propose these changes:

* build.properties:

     @@ -59,6 +59,7 @@
      runtime.test=${runtime.root}/test
      runtime.classes=${runtime.root}/build/classes
      runtime.test.classes=${runtime.root}/build/test
     +runtime.compilerarg=

      # runtime FI
      runtime-fi.root=${jaxb.root}/runtime-fi

* runtime/build.xml:

     @@ -156,6 +156,7 @@
                  debug="${compile.debug}" optimize="${compile.optimize}"
                  deprecation="${compile.deprecation}" >
                  <classpath refid="javac.classpath" />
     + <compilerarg line="${runtime.compilerarg}"/>
              </javac>

              <copy toDir="${runtime.classes}">

This change is neutral with respect to the "dist" target, but would
allow me to build the RI from my test harness like this:

   <ant target="dist" dir="${java.io.tmpdir}/jaxb2-sources/jaxb-ri">
     <property name="runtime.compilerarg" value="-Xjcov"/>
   </ant>

Any objections to my committing these changes?

   -- Ed