mirror of
https://github.com/processing/processing4.git
synced 2026-02-13 10:30:44 +01:00
add command line args to exported sketch on Linux (issue #1359)
This commit is contained in:
@@ -1458,8 +1458,8 @@ public class JavaBuild {
|
||||
File shellScript = new File(destFolder, sketch.getName());
|
||||
PrintWriter pw = PApplet.createWriter(shellScript);
|
||||
|
||||
// do the newlines explicitly so that windows CRLF
|
||||
// isn't used when exporting for unix
|
||||
// Do the newlines explicitly so that Windows CRLF
|
||||
// isn't used when exporting for Unix.
|
||||
pw.print("#!/bin/sh\n\n");
|
||||
//ps.print("APPDIR=`dirname $0`\n");
|
||||
pw.print("APPDIR=$(dirname \"$0\")\n"); // more posix compliant
|
||||
@@ -1468,7 +1468,7 @@ public class JavaBuild {
|
||||
pw.print("java " + Preferences.get("run.options") +
|
||||
" -Djava.library.path=\"$APPDIR:$APPDIR/lib\"" +
|
||||
" -cp \"" + exportClassPath + "\"" +
|
||||
" " + sketch.getName() + "\n");
|
||||
" " + sketch.getName() + " \"$@\"\n");
|
||||
|
||||
pw.flush();
|
||||
pw.close();
|
||||
|
||||
Reference in New Issue
Block a user