This is an automated email from the ASF dual-hosted git repository.

joshtynjala pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-compiler.git

commit 8686b2963926fd74e6e9c69c3a63f517a129f860
Author: Josh Tynjala <[email protected]>
AuthorDate: Mon Apr 14 12:37:05 2025 -0700

    debugger: add and use javac.src, javac.deprecation, and javac.debug 
properties, like other Java modules
    
    In particular, we want to target JDK 11, instead of the version of the 
current JDK being used. A value wasn't being passed for the source and target 
values to Ant's <javac> task, which meant it used the current JDKs version by 
default. As a result, our previous release had fdb.jar require JDK 17, since 
that seems to have been the version used to build the release.
---
 debugger/build.properties | 6 ++++--
 debugger/build.xml        | 3 ++-
 2 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/debugger/build.properties b/debugger/build.properties
index ef4053dab..1a65b98f8 100644
--- a/debugger/build.properties
+++ b/debugger/build.properties
@@ -50,5 +50,7 @@ dist=${basedir}/../compiler/lib
 jar=fdb.jar
 jar.dependencies=compiler.jar compiler-common.jar swfutils.jar 
external/commons-lang-2.6.jar
 
-
-
+# Options for <javac> tasks
+javac.debug=true
+javac.deprecation=false
+javac.src=11
diff --git a/debugger/build.xml b/debugger/build.xml
index 7955bc1f1..7961d851f 100644
--- a/debugger/build.xml
+++ b/debugger/build.xml
@@ -48,7 +48,8 @@
 
     <target name="compile" depends="generate-burm" description="compile">
         <mkdir dir="${basedir.bin}" />
-        <javac includes="**/*.java" classpathref="classpath" 
destdir="${basedir.bin}">
+        <javac debug="${javac.debug}" deprecation="${javac.deprecation}" 
includes="**/*.java" classpathref="classpath" destdir="${basedir.bin}"
+            source="${javac.src}" target="${javac.src}">
             <src path="${basedir.generated.src}" />
             <src path="${basedir.src}" />
         </javac>

Reply via email to