Skip to content

Commit 564db46

Browse files
committed
more cleanups, and add JNA switch for Linux launcher and cmd
1 parent 03790e9 commit 564db46

File tree

3 files changed

+8
-55
lines changed

3 files changed

+8
-55
lines changed

build/build.xml

Lines changed: 4 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -78,14 +78,14 @@
7878
<include name="lib/cmm/PYCC.pf" />
7979
</fileset>
8080

81-
<!-- There might be others, based on what was in the Java 6 docs,
82-
but that info isn't part of the Java 7 instructions.
83-
http://www.oracle.com/technetwork/java/javase/jrereadme-182762.html -->
84-
8581
<!-- Unused JavaFX files that can be removed from the JRE on Windows
8682
and Linux. On Mac OS X, this is removed by the appbundler task.
8783
www.oracle.com/technetwork/java/javase/jdk-7-readme-429198.html -->
8884

85+
<!-- There might be others, based on what was in the Java 6 docs,
86+
but that info isn't part of the Java 7 instructions.
87+
http://www.oracle.com/technetwork/java/javase/jrereadme-182762.html -->
88+
8989
<fileset dir="${platform}/work/java" id="javafx-basics">
9090
<include name="THIRDPARTYLICENSEREADME-JAVAFX.txt" />
9191
<include name="lib/javafx.properties" />
@@ -801,68 +801,21 @@
801801
</condition>
802802
<delete dir="${target.path}/modes/java/libraries/video/library/windows${video.delete}" />
803803

804-
805-
<!-- TODO It would be better to not copy these, but use them in place.
806-
I believe it's handled this way b/c launch4j was finicky about paths.
807-
(i.e. it needed the lib/pde.jar to be present during build) -->
808-
<!--
809-
<copy todir="windows/work">
810-
<fileset dir="windows"
811-
includes="about.bmp, application.ico, config.xml, config-cmd.xml"/>
812-
</copy>
813-
-->
814804
<taskdef name="launch4j"
815805
classname="net.sf.launch4j.ant.Launch4jTask"
816806
classpath="${launch4j.dir}/launch4j.jar; ${launch4j.dir}/lib/xstream.jar" />
817807

818808
<!-- not all launch4j options are available when embedded inside this
819809
file (i.e. the icon param doesn't work), so use a config file -->
820-
821-
<!--
822-
<launch4j configFile="windows/work/config.xml" />
823-
<launch4j configFile="windows/work/config-cmd.xml" />
824-
-->
825-
826810
<launch4j configFile="windows/config.xml" />
827811
<launch4j configFile="windows/config-cmd.xml" />
828812

829-
<!--
830-
<delete dir="windows/work"
831-
includes="about.bmp, application.ico, config.xml, config-cmd.xml" />
832-
-->
833-
834-
<!--
835-
<launch4j>
836-
<config headerType="gui"
837-
outfile="windows/work/processing-java.exe"
838-
dontWrapJar="false"
839-
jarPath="../app/pde.jar">
840-
<classPath mainClass="processing.mode.java.Commander">
841-
<cp>lib/pde.jar</cp>
842-
<cp>lib/antlr.jar</cp>
843-
<cp>lib/jdt-core.jar</cp>
844-
<cp>lib/jna.jar</cp>
845-
<cp>lib/ant.jar</cp>
846-
<cp>lib/ant-launcher.jar</cp>
847-
<cp>core/library/core.jar</cp>
848-
<cp>%JAVA_HOME%/lib/tools.jar</cp>
849-
</classPath>
850-
<jre minVersion="1.6.0" jdkPreference="jdkOnly">
851-
</jre>
852-
</config>
853-
</launch4j>
854-
-->
855-
856813
<!-- cygwin requires html, dll, and exe to have the +x flag -->
857814
<chmod perm="ugo+x">
858815
<fileset dir="windows/work" includes="**/*.html, **/*.dll, **/*.exe" />
859816
</chmod>
860817

861818
<!-- starting with 2.0a7, require the local JRE + tools.jar -->
862-
<!--
863-
<property name="jre.file"
864-
value="jre-tools-6u37-windows${sun.arch.data.model}.zip" />
865-
-->
866819
<get src="http://processing.googlecode.com/files/${jre.file}"
867820
dest="windows/jre.tgz"
868821
usetimestamp="true" />

build/linux/processing

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ cmd_name='processing-java'
103103

104104
if [ $current_name = $cmd_name ]
105105
then
106-
java processing.mode.java.Commander "$@"
106+
java -Djna.nosys=true processing.mode.java.Commander "$@"
107107
exit $?
108108
else
109109
# Start Processing in the same directory as this script
@@ -114,5 +114,5 @@ else
114114
fi
115115
cd "$APPDIR"
116116

117-
java processing.app.Base "$SKETCH" &
117+
java -Djna.nosys=true processing.app.Base "$SKETCH" &
118118
fi

todo.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ X fix for Windows launchers
4343
X fix for Windows export
4444
X fix for Windows export 64-bit
4545
X fix for Windows command line
46-
_ fix for Linux launcher
46+
X fix for Linux launcher
4747
_ fix for Linux export
48-
_ fix for Linux command line
48+
X fix for Linux command line
4949
X fix for OS X launcher
5050
X fix for OS X export
5151
X fix for OS X command line

0 commit comments

Comments
 (0)