>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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]