DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=35437>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ· INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=35437 Summary: Ant 1.6.3 adds unusable -source 1.3 when specifying target="1.3" and extjavac JDK 1.3 when running under JDK 1.5 Product: Ant Version: 1.6.3 Platform: All OS/Version: All Status: NEW Severity: major Priority: P2 Component: Core tasks AssignedTo: dev@ant.apache.org ReportedBy: [EMAIL PROTECTED] For example (JAVA_HOME set to JDK 1.5): tmp$ cat foo.xml <project default="x"> <target name="x"> <echo file="X.java">public class X {}</echo> <javac executable="/space/jdk1.3/bin/javac" fork="yes" target="1.3" includes="X.java" srcdir="."/> </target> </project> tmp$ /space/ant162/bin/ant -f foo.xml Buildfile: foo.xml x: [javac] Compiling 1 source file BUILD SUCCESSFUL Total time: 2 seconds tmp$ /space/ant163/bin/ant -f foo.xml Buildfile: foo.xml x: [javac] Compiling 1 source file [javac] WARNING [javac] The -source switch defaults to 1.5 in JDK 1.5. [javac] If you specify -target 1.3 you now must also specify -source 1.3. [javac] Ant will implicitly add -source 1.3 for you. Please change your build file. [javac] javac: invalid flag: -source [javac] Usage: javac <options> <source files> [javac] where possible options include: [javac] -g Generate all debugging info [javac] -g:none Generate no debugging info [javac] -g:{lines,vars,source} Generate only some debugging info [javac] -O Optimize; may hinder debugging or enlarge class file [javac] -nowarn Generate no warnings [javac] -verbose Output messages about what the compiler is doing [javac] -deprecation Output source locations where deprecated APIs are used [javac] -classpath <path> Specify where to find user class files [javac] -sourcepath <path> Specify where to find input source files [javac] -bootclasspath <path> Override location of bootstrap class files [javac] -extdirs <dirs> Override location of installed extensions [javac] -d <directory> Specify where to place generated class files [javac] -encoding <encoding> Specify character encoding used by source files [javac] -target <release> Generate class files for specific VM version BUILD FAILED /tmp/foo.xml:4: Compile failed; see the compiler error output for details. Total time: 1 second (It works if JAVA_HOME is JDK 1.4.) This breaks usage of JDK 1.3 for NetBeans projects (when running the IDE in JDK 1.5): http://www.netbeans.org/issues/show_bug.cgi?id=60218 DefaultCompilerAdapter.java 1.54 is responsible: assumeJava15 returns true when "extjavac" is the compiler and the JDK running Ant is 1.5. This may be wrong if you are using 'executable'. -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]