Hey Matthias,

You really got me thinking with this comment.. 8-)

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 ide//editor/build.xml:

<project name="ide/editor" default="build" basedir=".">
    <import file="../../nbbuild/templates/projectized.xml"/>
</project>

and 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>

Is this what you are referring to?

And if so, why the difference as I'm trying to understand this.

-brad w.

Reply via email to