Skip to content

Commit

Permalink
Merge pull request #6743 from Card-Forge/runScriptFix
Browse files Browse the repository at this point in the history
remove add-opens from mandatory.java.args, use MANIFEST.mf
  • Loading branch information
Hanmac authored Jan 4, 2025
2 parents 33e26c1 + 9ee2cfb commit 1209f39
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 25 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
.settings
.classpath
.project
.checkstyle

# Ignore VS Code config files

Expand All @@ -24,6 +25,8 @@

nbactions.xml

# Ignore flattened pom
.flattened-pom.xml

# Ignore binaries, temp files and test output, everywhere

Expand Down
23 changes: 1 addition & 22 deletions forge-gui-desktop/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,28 +18,7 @@
<parsedVersion.incrementalVersion>0</parsedVersion.incrementalVersion>
<timestamp>${maven.build.timestamp}</timestamp>
<maven.build.timestamp.format>yyyy-MM-dd HH:mm:ss</maven.build.timestamp.format>
<mandatory.java.args>--add-opens java.desktop/java.beans=ALL-UNNAMED
--add-opens java.desktop/javax.swing.border=ALL-UNNAMED
--add-opens java.desktop/javax.swing.event=ALL-UNNAMED
--add-opens java.desktop/sun.swing=ALL-UNNAMED
--add-opens java.desktop/java.awt.image=ALL-UNNAMED
--add-opens java.desktop/java.awt.color=ALL-UNNAMED
--add-opens java.desktop/sun.awt.image=ALL-UNNAMED
--add-opens java.desktop/javax.swing=ALL-UNNAMED
--add-opens java.desktop/java.awt=ALL-UNNAMED
--add-opens java.base/java.util=ALL-UNNAMED
--add-opens java.base/java.lang=ALL-UNNAMED
--add-opens java.base/java.lang.reflect=ALL-UNNAMED
--add-opens java.base/java.text=ALL-UNNAMED
--add-opens java.desktop/java.awt.font=ALL-UNNAMED
--add-opens java.base/jdk.internal.misc=ALL-UNNAMED
--add-opens java.base/sun.nio.ch=ALL-UNNAMED
--add-opens java.base/java.nio=ALL-UNNAMED
--add-opens java.base/java.math=ALL-UNNAMED
--add-opens java.base/java.util.concurrent=ALL-UNNAMED
--add-opens java.base/java.net=ALL-UNNAMED
-Dio.netty.tryReflectionSetAccessible=true -Dfile.encoding=UTF-8
</mandatory.java.args>
<mandatory.java.args>-Xmx4096m -Dio.netty.tryReflectionSetAccessible=true -Dfile.encoding=UTF-8</mandatory.java.args>
</properties>

<build>
Expand Down
2 changes: 1 addition & 1 deletion forge-gui-desktop/src/main/config/forge.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ if %jver% LEQ 16 (
)

if %jver% GEQ 17 (
java -Xmx4096m $mandatory.java.args$ -jar $project.build.finalName$
java $mandatory.java.args$ -jar $project.build.finalName$
popd
exit /b 0
)
Expand Down
2 changes: 1 addition & 1 deletion forge-gui-desktop/src/main/config/forge.command
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/sh
cd $(dirname "${0}")
java -Xmx4096m $mandatory.java.args$ -jar $project.build.finalName$
java $mandatory.java.args$ -jar $project.build.finalName$
2 changes: 1 addition & 1 deletion forge-gui-desktop/src/main/config/forge.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/sh
cd $(dirname "${0}")
java -Xmx4096m $mandatory.java.args$ -jar $project.build.finalName$
java $mandatory.java.args$ -jar $project.build.finalName$

0 comments on commit 1209f39

Please sign in to comment.