ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Jan.Mate...@rzf.fin-nrw.de>
Subject AW: AW: AW: please update the next release of Ant 1.7 to Xerces 2.9.0
Date Tue, 05 Dec 2006 10:18:08 GMT
>OK, going with the empirical approach rather than theorising about it!
>
><?xml version="1.0" encoding="UTF-8"?>
><project name="xerces-jdk-version" default="compile">
>
>     <target name="compile">
>         <mkdir dir="classes" />
>         <javac source="1.2" target="1.2" srcdir="." destdir="classes"
>             classpath="xercesImpl.jar" />
>     </target>
>
></project>
>
>public class X {
>  org.apache.xerces.parsers.XIncludeAwareParserConfiguration 
>    conf = new
org.apache.xerces.parsers.XIncludeAwareParserConfiguration();
>}
>
>That works for me, 


Then chances for including into Ant 1.7 increase ;-)
But the final word is spoken by the build manager.



>although I noticed something slightly 
>surprising when I compiled using a 1.4 and 1.5 JDK.
>
>     [javac] '-source'
>     [javac] '1.3'
>
>?


Funny - maybe hidden needs?

<project>
  <delete file="HelloWorld.class"/>
  <javac source="1.2" target="1.2" srcdir="."/>
</project>

public class HelloWorld {}



JDK-1.2.1_004:
  [javac] '-target'
  [javac] '1.2'
  (no -source)
JDK 1.3.0-C
  [javac] '-target'
  [javac] '1.2'
  (no -source)
JDK 1.4.2_05-b04
  [javac] '-target'
  [javac] '1.2'
  [javac] '-source'
  [javac] '1.3'
JDK 1.5.0_06-b05
  [javac] '-target'
  [javac] '1.2'
  [javac] '-source'
  [javac] '1.3'
JDK 1.6.0-rc-b102
  [javac] '-target'
  [javac] '1.2'
  [javac] '-source'
  [javac] '1.3'



The DefaultCompilerAdapter does the source-handling. Most of it in
setupModernJavacCommandlineSwitches().




Jan

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message