You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by jo...@apache.org on 2025/04/14 20:53:29 UTC

(royale-compiler) branch develop updated (35eed62f1 -> 80e8afd90)

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

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


    from 35eed62f1 FunctionScope: fix exception where a FunctionNode has been garbage collected, and a new FunctionNode gets re-attached to the existing FunctionScope scope
     new 8686b2963 debugger: add and use javac.src, javac.deprecation, and javac.debug properties, like other Java modules
     new 1dd498ea5 debugger: some formatting in build.xml
     new bb621902f debugger: consistent build.number/env.BUILD_NUMBER usage in Ant build with other Java modules
     new 86c6b582a DebugCLI: fix localized messages appearing like !copyright!
     new 80e8afd90 debugger: generate build.number.date before version.properties is written so that it isn't empty

The 5 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 debugger/build.properties                          |  6 ++-
 debugger/build.xml                                 | 43 +++++++++++++---------
 .../java/flex/tools/debugger/cli/DebugCLI.java     |  2 +-
 3 files changed, 30 insertions(+), 21 deletions(-)


(royale-compiler) 02/05: debugger: some formatting in build.xml

Posted by jo...@apache.org.
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 1dd498ea5ebfa3589cbf1ec6b268487eae6083d7
Author: Josh Tynjala <jo...@apache.org>
AuthorDate: Mon Apr 14 12:43:11 2025 -0700

    debugger: some formatting in build.xml
---
 debugger/build.xml | 34 ++++++++++++++++++----------------
 1 file changed, 18 insertions(+), 16 deletions(-)

diff --git a/debugger/build.xml b/debugger/build.xml
index 7961d851f..bdfb834fa 100644
--- a/debugger/build.xml
+++ b/debugger/build.xml
@@ -20,14 +20,29 @@
 <project basedir="." default="jar" name="org.apache.royale.fdb" >
 	<property file="build.properties" />
     <property file="../build.properties" />
+
 	<!-- label is set by CruiseControl script based on P4 label incrementer -->
 	<condition property="build.number" value="${label}" else="0">
 	     <isset property="label" />
 	</condition>
+
 	<path id="classpath">
-			<fileset dir="${compiler.generated.lib}" includes="${jar.dependencies}" />
+        <fileset dir="${compiler.generated.lib}" includes="${jar.dependencies}" />
     </path>
 
+    <target name="compile" depends="generate-burm" description="compile">
+        <mkdir dir="${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>
+        <echo file="${basedir.bin}/flex/tools/debugger/cli/version.properties" append="false">build=${build.number.date}</echo>
+        <copy todir="${basedir.bin}">
+            <fileset dir="${basedir.src}/../resources" includes="**/*.txt, **/*.properties" />
+        </copy>
+    </target>
+
     <target name="jar" depends="compile">
         <mkdir dir="${dist}" />
         <copy file="${basedir}/../LICENSE.base" tofile="${basedir.bin}/META-INF/LICENSE"/>
@@ -45,23 +60,10 @@
             </manifest>
         </jar>
     </target>
-
-    <target name="compile" depends="generate-burm" description="compile">
-        <mkdir dir="${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>
-        <echo file="${basedir.bin}/flex/tools/debugger/cli/version.properties" append="false">build=${build.number.date}</echo>
-        <copy todir="${basedir.bin}">
-            <fileset dir="${basedir.src}/../resources" includes="**/*.txt, **/*.properties" />
-        </copy>
-    </target>
     
     <target name="generate-burm">
-                <ant antfile="jburg-gen.xml" target="main" />
-            </target>
+        <ant antfile="jburg-gen.xml" target="main" />
+    </target>
 
     <target name="clean" description="clean">
         <echo message="Cleaning out dist dir: ${dist}" />


(royale-compiler) 01/05: debugger: add and use javac.src, javac.deprecation, and javac.debug properties, like other Java modules

Posted by jo...@apache.org.
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 <jo...@apache.org>
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>


(royale-compiler) 05/05: debugger: generate build.number.date before version.properties is written so that it isn't empty

Posted by jo...@apache.org.
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 80e8afd90a821b0fa48943b7fe42fee1f803e6fd
Author: Josh Tynjala <jo...@apache.org>
AuthorDate: Mon Apr 14 13:52:56 2025 -0700

    debugger: generate build.number.date before version.properties is written so that it isn't empty
    
    If it was already written, that's fine. Ant won't overwrite it in that case.
---
 debugger/build.xml | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/debugger/build.xml b/debugger/build.xml
index e0a6acafe..62ef235de 100644
--- a/debugger/build.xml
+++ b/debugger/build.xml
@@ -37,6 +37,10 @@
             <src path="${basedir.generated.src}" />
             <src path="${basedir.src}" />
         </javac>
+        <tstamp>
+            <!-- if this property hasn't been set yet, do it now -->
+            <format property="build.number.date" pattern="yyyyMMdd" />
+        </tstamp>
         <echo file="${basedir.bin}/flex/tools/debugger/cli/version.properties" append="false">build=${build.number.date}</echo>
         <copy todir="${basedir.bin}">
             <fileset dir="${basedir.src}/../resources" includes="**/*.txt, **/*.properties" />


(royale-compiler) 04/05: DebugCLI: fix localized messages appearing like !copyright!

Posted by jo...@apache.org.
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 86c6b582a36f166306ab1f70c8d85a6c53a0d6f2
Author: Josh Tynjala <jo...@apache.org>
AuthorDate: Mon Apr 14 13:51:42 2025 -0700

    DebugCLI: fix localized messages appearing like !copyright!
---
 debugger/src/main/java/flex/tools/debugger/cli/DebugCLI.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/debugger/src/main/java/flex/tools/debugger/cli/DebugCLI.java b/debugger/src/main/java/flex/tools/debugger/cli/DebugCLI.java
index 877182ac1..f1a942daf 100644
--- a/debugger/src/main/java/flex/tools/debugger/cli/DebugCLI.java
+++ b/debugger/src/main/java/flex/tools/debugger/cli/DebugCLI.java
@@ -342,7 +342,7 @@ public class DebugCLI implements Runnable, SourceLocator {
 	/* class's static init */
 	static {
 		// set up for localizing messages
-		m_localizationManager.addLocalizer(new DebuggerLocalizer("flex.tools.debugger.cli.fdb.")); //$NON-NLS-1$
+		m_localizationManager.addLocalizer(new DebuggerLocalizer("royale.tools.debugger.cli.fdb.")); //$NON-NLS-1$
 	}
 
 	public static void main(String[] args) {


(royale-compiler) 03/05: debugger: consistent build.number/env.BUILD_NUMBER usage in Ant build with other Java modules

Posted by jo...@apache.org.
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 bb621902f0787c10fd1c6e90aa8041f02db6d30e
Author: Josh Tynjala <jo...@apache.org>
AuthorDate: Mon Apr 14 13:41:06 2025 -0700

    debugger: consistent build.number/env.BUILD_NUMBER usage in Ant build with other Java modules
---
 debugger/build.xml | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/debugger/build.xml b/debugger/build.xml
index bdfb834fa..e0a6acafe 100644
--- a/debugger/build.xml
+++ b/debugger/build.xml
@@ -22,9 +22,9 @@
     <property file="../build.properties" />
 
 	<!-- label is set by CruiseControl script based on P4 label incrementer -->
-	<condition property="build.number" value="${label}" else="0">
-	     <isset property="label" />
-	</condition>
+    <condition property="build.number" value="${env.BUILD_NUMBER}">
+        <isset property="env.BUILD_NUMBER"/>
+    </condition>
 
 	<path id="classpath">
         <fileset dir="${compiler.generated.lib}" includes="${jar.dependencies}" />