Skip to content

Commit cbae2c9

Browse files
committed
Merge remote-tracking branch 'upstream/master' into imeenable
2 parents 8369507 + d0011b2 commit cbae2c9

File tree

2,321 files changed

+72646
-45194
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

2,321 files changed

+72646
-45194
lines changed

.github/workflows/submit.yml

+28-31
Original file line numberDiff line numberDiff line change
@@ -73,12 +73,12 @@ jobs:
7373
# BOOT_JDK_FILENAME: "${{ fromJson(needs.prerequisites.outputs.dependencies).LINUX_X64_BOOT_JDK_FILENAME }}"
7474
# BOOT_JDK_URL: "${{ fromJson(needs.prerequisites.outputs.dependencies).LINUX_X64_BOOT_JDK_URL }}"
7575
# BOOT_JDK_SHA256: "${{ fromJson(needs.prerequisites.outputs.dependencies).LINUX_X64_BOOT_JDK_SHA256 }}"
76-
BOOT_JDK_VERSION: "21.0.2"
77-
BOOT_JDK_FILENAME: "jdk-21.0.2_linux-x64_bin.tar.gz"
78-
BOOT_JDK_URL: "https://download.oracle.com/java/21/archive/jdk-21.0.2_linux-x64_bin.tar.gz"
79-
ANT_DIR: "apache-ant-1.10.5"
80-
ANT_FILENAME: "apache-ant-1.10.5.tar.gz"
81-
ANT_URL: "https://archive.apache.org/dist/ant/binaries/apache-ant-1.10.5-bin.tar.gz"
76+
BOOT_JDK_VERSION: "23"
77+
BOOT_JDK_FILENAME: "jdk-23_linux-x64_bin.tar.gz"
78+
BOOT_JDK_URL: "https://download.oracle.com/java/23/archive/jdk-23_linux-x64_bin.tar.gz"
79+
# ANT_DIR: "apache-ant-1.10.5"
80+
# ANT_FILENAME: "apache-ant-1.10.5.tar.gz"
81+
# ANT_URL: "https://archive.apache.org/dist/ant/binaries/apache-ant-1.10.5-bin.tar.gz"
8282

8383
steps:
8484
- name: Checkout the source
@@ -90,11 +90,11 @@ jobs:
9090
run: |
9191
set -x
9292
sudo apt-get update
93-
sudo apt-get install libgl1-mesa-dev libx11-dev libxxf86vm-dev libxt-dev pkg-config libgtk2.0-dev libgtk-3-dev libxtst-dev gcc-13 g++-13
93+
sudo apt-get install ant libgl1-mesa-dev libx11-dev libxxf86vm-dev libxt-dev pkg-config libgtk2.0-dev libgtk-3-dev libxtst-dev gcc-13 g++-13
9494
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-13 100 --slave /usr/bin/g++ g++ /usr/bin/g++-13
9595
mkdir -p "${HOME}/build-tools"
96-
wget -O "${HOME}/build-tools/${ANT_FILENAME}" "${ANT_URL}"
97-
tar -zxf "${HOME}/build-tools/${ANT_FILENAME}" -C "${HOME}/build-tools"
96+
# wget -O "${HOME}/build-tools/${ANT_FILENAME}" "${ANT_URL}"
97+
# tar -zxf "${HOME}/build-tools/${ANT_FILENAME}" -C "${HOME}/build-tools"
9898
9999
# FIXME: enable cache for boot JDK
100100
# - name: Restore boot JDK from cache
@@ -118,9 +118,10 @@ jobs:
118118
set -x
119119
export JAVA_HOME="${HOME}/bootjdk/jdk-${BOOT_JDK_VERSION}"
120120
echo "JAVA_HOME=${JAVA_HOME}" >> "${GITHUB_ENV}"
121-
export ANT_HOME="${HOME}/build-tools/${ANT_DIR}"
122-
echo "ANT_HOME=${ANT_HOME}" >> "${GITHUB_ENV}"
123-
export PATH="$JAVA_HOME/bin:$ANT_HOME/bin:$PATH"
121+
# export ANT_HOME="${HOME}/build-tools/${ANT_DIR}"
122+
# echo "ANT_HOME=${ANT_HOME}" >> "${GITHUB_ENV}"
123+
# export PATH="$JAVA_HOME/bin:$ANT_HOME/bin:$PATH"
124+
export PATH="$JAVA_HOME/bin:$PATH"
124125
env | sort
125126
which java
126127
java -version
@@ -132,15 +133,17 @@ jobs:
132133
working-directory: jfx
133134
run: |
134135
set -x
135-
export PATH="$JAVA_HOME/bin:$ANT_HOME/bin:$PATH"
136+
# export PATH="$JAVA_HOME/bin:$ANT_HOME/bin:$PATH"
137+
export PATH="$JAVA_HOME/bin:$PATH"
136138
bash gradlew -version
137139
bash gradlew --info all
138140
139141
- name: Run JavaFX headless tests
140142
working-directory: jfx
141143
run: |
142144
set -x
143-
export PATH="$JAVA_HOME/bin:$ANT_HOME/bin:$PATH"
145+
# export PATH="$JAVA_HOME/bin:$ANT_HOME/bin:$PATH"
146+
export PATH="$JAVA_HOME/bin:$PATH"
144147
bash gradlew --info --continue -PTEST_ONLY=true test -x :web:test
145148
146149
@@ -155,9 +158,9 @@ jobs:
155158
# BOOT_JDK_FILENAME: "${{ fromJson(needs.prerequisites.outputs.dependencies).LINUX_X64_BOOT_JDK_FILENAME }}"
156159
# BOOT_JDK_URL: "${{ fromJson(needs.prerequisites.outputs.dependencies).LINUX_X64_BOOT_JDK_URL }}"
157160
# BOOT_JDK_SHA256: "${{ fromJson(needs.prerequisites.outputs.dependencies).LINUX_X64_BOOT_JDK_SHA256 }}"
158-
BOOT_JDK_VERSION: "21.0.2"
159-
BOOT_JDK_FILENAME: "jdk-21.0.2_macos-x64_bin.tar.gz"
160-
BOOT_JDK_URL: "https://download.oracle.com/java/21/archive/jdk-21.0.2_macos-x64_bin.tar.gz"
161+
BOOT_JDK_VERSION: "23"
162+
BOOT_JDK_FILENAME: "jdk-23_macos-x64_bin.tar.gz"
163+
BOOT_JDK_URL: "https://download.oracle.com/java/23/archive/jdk-23_macos-x64_bin.tar.gz"
161164
# Disabled due to timeout downloading ant; use ant installed on system
162165
#ANT_DIR: "apache-ant-1.10.5"
163166
#ANT_FILENAME: "apache-ant-1.10.5.tar.gz"
@@ -241,9 +244,9 @@ jobs:
241244
# BOOT_JDK_FILENAME: "${{ fromJson(needs.prerequisites.outputs.dependencies).LINUX_X64_BOOT_JDK_FILENAME }}"
242245
# BOOT_JDK_URL: "${{ fromJson(needs.prerequisites.outputs.dependencies).LINUX_X64_BOOT_JDK_URL }}"
243246
# BOOT_JDK_SHA256: "${{ fromJson(needs.prerequisites.outputs.dependencies).LINUX_X64_BOOT_JDK_SHA256 }}"
244-
BOOT_JDK_VERSION: "21.0.2"
245-
BOOT_JDK_FILENAME: "jdk-21.0.2_macos-aarch64_bin.tar.gz"
246-
BOOT_JDK_URL: "https://download.oracle.com/java/21/archive/jdk-21.0.2_macos-aarch64_bin.tar.gz"
247+
BOOT_JDK_VERSION: "23"
248+
BOOT_JDK_FILENAME: "jdk-23_macos-aarch64_bin.tar.gz"
249+
BOOT_JDK_URL: "https://download.oracle.com/java/23/archive/jdk-23_macos-aarch64_bin.tar.gz"
247250
# Disabled due to timeout downloading ant; use ant installed on system
248251
#ANT_DIR: "apache-ant-1.10.5"
249252
#ANT_FILENAME: "apache-ant-1.10.5.tar.gz"
@@ -295,7 +298,8 @@ jobs:
295298
java -version
296299
which ant
297300
ant -version
298-
sudo xcode-select --switch /Applications/Xcode_14.3.1.app/Contents/Developer
301+
# We want to use Xcode 14, but GHA removed it from the macOS 14 runners
302+
# sudo xcode-select --switch /Applications/Xcode_14.3.1.app/Contents/Developer
299303
xcodebuild -version
300304
301305
- name: Build JavaFX artifacts
@@ -327,14 +331,12 @@ jobs:
327331
# BOOT_JDK_FILENAME: "${{ fromJson(needs.prerequisites.outputs.dependencies).LINUX_X64_BOOT_JDK_FILENAME }}"
328332
# BOOT_JDK_URL: "${{ fromJson(needs.prerequisites.outputs.dependencies).LINUX_X64_BOOT_JDK_URL }}"
329333
# BOOT_JDK_SHA256: "${{ fromJson(needs.prerequisites.outputs.dependencies).LINUX_X64_BOOT_JDK_SHA256 }}"
330-
BOOT_JDK_VERSION: "21.0.2"
331-
BOOT_JDK_FILENAME: "jdk-21.0.2_windows-x64_bin.zip"
332-
BOOT_JDK_URL: "https://download.oracle.com/java/21/archive/jdk-21.0.2_windows-x64_bin.zip"
334+
BOOT_JDK_VERSION: "23"
335+
BOOT_JDK_FILENAME: "jdk-23_windows-x64_bin.zip"
336+
BOOT_JDK_URL: "https://download.oracle.com/java/23/archive/jdk-23_windows-x64_bin.zip"
333337
ANT_DIR: "apache-ant-1.10.5"
334338
ANT_FILENAME: "apache-ant-1.10.5.tar.gz"
335339
ANT_URL: "https://archive.apache.org/dist/ant/binaries/apache-ant-1.10.5-bin.tar.gz"
336-
# FIXME: hard-code the location of VS 2022 for now
337-
VS150COMNTOOLS: "C:\\Program Files\\Microsoft Visual Studio\\2022\\Enterprise\\VC\\Auxiliary\\Build"
338340

339341
steps:
340342
- name: Checkout the source
@@ -379,15 +381,10 @@ jobs:
379381
380382
- name: Setup environment
381383
run: |
382-
echo "VS150COMNTOOLS=$env:VS150COMNTOOLS"
383384
echo "dir ...\VC\Tools\MSVC"
384385
dir "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC"
385-
echo "dir VS150COMNTOOLS"
386-
dir "$env:VS150COMNTOOLS"
387386
# echo "dir ...\VC\Tools\MSVC"
388387
# dir "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC"
389-
# echo "dir VS150COMNTOOLS"
390-
# dir "$env:VS150COMNTOOLS"
391388
392389
$env:Path = "$HOME\cygwin\cygwin64\bin;$HOME\cygwin\cygwin64\bin;$env:Path" ;
393390
$env:JAVA_HOME = "$HOME\bootjdk\jdk-$env:BOOT_JDK_VERSION" ;

CONTRIBUTING.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ New code should be formatted consistently in accordance with the above guideline
234234
235235
### Building and testing
236236
237-
JDK 21 (at a minimum) is required to build OpenJFX. You must have the JDK
237+
JDK 22 (at a minimum) is required to build OpenJFX. You must have the JDK
238238
installed on your system
239239
with the environment variable `JAVA_HOME` referencing the path to Java home for
240240
your JDK installation. By default, tests use the same runtime as `JAVA_HOME`.

SECURITY.md

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# JavaFX Vulnerabilities
2+
3+
Please follow the process outlined in the [OpenJDK Vulnerability Policy](https://openjdk.org/groups/vulnerability/report) to disclose vulnerabilities in JavaFX.

UPDATING-VERSION.md

-2
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@ feature version number from `N` to `N+1`:
1818

1919
```
2020
jfx.release.major.version
21-
javadoc.title
22-
javadoc.header
2321
```
2422

2523
* In

apps/toys/EmbeddedSwing/build.xml

+76
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!-- You may freely edit this file. See commented blocks below for -->
3+
<!-- some examples of how to customize the build. -->
4+
<!-- (If you delete it and reopen the project it will be recreated.) -->
5+
<!-- By default, only the Clean and Build commands use this build script. -->
6+
<!-- Commands such as Run, Debug, and Test only use this build script if -->
7+
<!-- the Compile on Save feature is turned off for the project. -->
8+
<!-- You can turn off the Compile on Save (or Deploy on Save) setting -->
9+
<!-- in the project's Project Properties dialog box.-->
10+
<project name="EmbeddedSwing" default="default" basedir=".">
11+
<description>Builds, tests, and runs the project EmbeddedSwing.</description>
12+
<import file="nbproject/build-impl.xml"/>
13+
<!--
14+
15+
There exist several targets which are by default empty and which can be
16+
used for execution of your tasks. These targets are usually executed
17+
before and after some main targets. They are:
18+
19+
-pre-init: called before initialization of project properties
20+
-post-init: called after initialization of project properties
21+
-pre-compile: called before javac compilation
22+
-post-compile: called after javac compilation
23+
-pre-compile-single: called before javac compilation of single file
24+
-post-compile-single: called after javac compilation of single file
25+
-pre-compile-test: called before javac compilation of JUnit tests
26+
-post-compile-test: called after javac compilation of JUnit tests
27+
-pre-compile-test-single: called before javac compilation of single JUnit test
28+
-post-compile-test-single: called after javac compilation of single JUunit test
29+
-pre-jar: called before JAR building
30+
-post-jar: called after JAR building
31+
-post-clean: called after cleaning build products
32+
33+
(Targets beginning with '-' are not intended to be called on their own.)
34+
35+
Example of inserting an obfuscator after compilation could look like this:
36+
37+
<target name="-post-compile">
38+
<obfuscate>
39+
<fileset dir="${build.classes.dir}"/>
40+
</obfuscate>
41+
</target>
42+
43+
For list of available properties check the imported
44+
nbproject/build-impl.xml file.
45+
46+
47+
Another way to customize the build is by overriding existing main targets.
48+
The targets of interest are:
49+
50+
-init-macrodef-javac: defines macro for javac compilation
51+
-init-macrodef-junit: defines macro for junit execution
52+
-init-macrodef-debug: defines macro for class debugging
53+
-init-macrodef-java: defines macro for class execution
54+
-do-jar-with-manifest: JAR building (if you are using a manifest)
55+
-do-jar-without-manifest: JAR building (if you are not using a manifest)
56+
run: execution of project
57+
-javadoc-build: Javadoc generation
58+
test-report: JUnit report generation
59+
60+
An example of overriding the target for project execution could look like this:
61+
62+
<target name="run" depends="EmbeddedSwing-impl.jar">
63+
<exec dir="bin" executable="launcher.exe">
64+
<arg file="${dist.jar}"/>
65+
</exec>
66+
</target>
67+
68+
Notice that the overridden target depends on the jar target and not only on
69+
the compile target as the regular run target does. Again, for a list of available
70+
properties which you can use, check the target you are overriding in the
71+
nbproject/build-impl.xml file.
72+
73+
-->
74+
<target name="-pre-compile">
75+
</target>
76+
</project>

apps/toys/EmbeddedSwing/manifest.mf

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Manifest-Version: 1.0
2+
X-COMMENT: Main-Class will be added automatically by build
3+

0 commit comments

Comments
 (0)