This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
[dev-200406151800, JDK 1.5.0 Beta3 b55] I've added platform JDK 1.3.1_07 and set this platform for already created project. The project cannot be built, error message says: ... Compiling 1 source file to /usr/local/space/testing/projects/TestPlatform/build/classes javac: invalid flag: -source ...
Chaning subcomponents to project
Jesse, when explicit platform is set we start <javac> task with fork=true and executable=path_to_javac. The problem is that if platform is JDK 1.3 there is no "source" parameter and <javac> task does not filter it out because it does not know of what version the executed javac is. So the solution could be: * modify j2se-project.xsd to allow <explicit-platform> element to have value which would be specification version of JDK. * use the value in build-impl.xsl to generate "source" attribute of javac/javadoc tasks only for explicit-platform > 1.3 I'm not expert in XSL but I guess it should be easy to do. Do you agree? Any better solution?
Or add an attribute to <explicit-platform> saying whether or not -source is supported, so the options would be 1. (nothing) 2. <explicit-platform explicit-source-supported="true"/> (1.4+) 3. <explicit-platform explicit-source-supported="false"/> (1.3-) Unfortunately I don't see any better solution, since <javac> does not handle it for you.
Partially fixed in: src/org/netbeans/modules/java/j2seproject/resources/j2se-project.xsd; new revision: 1.6; previous revision: 1.5 src/org/netbeans/modules/java/j2seproject/ui/customizer/J2SEProjectP new revision: 1.17; previous revision: 1.16 Tomas, please update build-impl.xsl to use new attribute. DO NOT FORGET that it must be done both for <javac> and <javadoc>.
Checking in j2seproject/src/org/netbeans/modules/java/j2seproject/resources/build-impl.xsl; /cvs/java/j2seproject/src/org/netbeans/modules/java/j2seproject/resources/build-impl.xsl,v <-- build-impl.xsl new revision: 1.23; previous revision: 1.22 done
Did someone check existing projects in nb.org to see if they need updating? (nbbuild/validate-project-xmls.xml) And notify nbdev?
Verified in 20040723.