Hi Brad, Am Samstag, dem 04.02.2023 um 18:02 -0600 schrieb Brad Walker: > On Sat, Feb 4, 2023 at 4:43 PM Matthias Bläsing > <mblaes...@doppel-helix.eu.invalid> wrote: > > > > 1 - Does compiling Netbeans out of the box continue to Java 8 as the > > > compiler? > > > > You'll need JDK 11. Most modules still build for 8, but they use the > > javac release flag to do that. I don't remember when that change was > > made, but it was some time ago. > > > I see the following in platform/o.n.bootstrap/build.xml: > > <project name="platform/o.n.bootstrap" default="build" basedir="."> > <import file="../../nbbuild/templates/projectized.xml"/> > <target name="compile" > depends="check-main-status,projectized-common.compile,rebuild-main"/> > > <target name="check-main-status"> > <uptodate property="main.up.to.date" > srcfile="${src.dir}/org/netbeans/Main.java" > targetfile="${build.classes.dir}/org/netbeans/Main.class"/> > </target> > > <target name="rebuild-main" unless="main.up.to.date"> > <mkdir dir="${build.classes.dir}"/> > <delete file="${build.classes.dir}/org/netbeans/Main.class"/> > <javac srcdir="${src.dir}" destdir="${build.classes.dir}" > debug="${build.compiler.debug}" debuglevel="${build.compiler.debuglevel}" > deprecation="${build.compiler.deprecation}" > optimize="${build.compiler.optimize}" source="1.8" target="1.8" > includeantruntime="false"> > <classpath refid="cp"/> > <include name="org/netbeans/Main.java"/> > <compilerarg line="${javac.compilerargs}"/> > </javac> > </target> > </project>
No, that is just a hook into the "compile" ant task. What I mean is: Default values for javac.source and javac.target: https://github.com/apache/netbeans/blob/master/nbbuild/templates/common.xml#L68-L70 Definition of javac: https://github.com/apache/netbeans/blob/master/nbbuild/templates/projectized.xml#L84-L87 Logic that maps target to release: https://github.com/apache/netbeans/blob/master/nbbuild/antsrc/org/netbeans/nbbuild/CustomJavac.java#L68-L100 The overriding of the javac.source and target is actively used in the java.disco module: https://github.com/apache/netbeans/tree/master/java/java.disco https://github.com/apache/netbeans/blob/master/java/java.disco/nbproject/project.properties#L22-L23 HTH Matthias --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@netbeans.apache.org For additional commands, e-mail: dev-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists