-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRUNME
executable file
·24 lines (19 loc) · 1.16 KB
/
RUNME
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/sh
# Classpath separator.
# Cygwin: ';' only (I think)
# Linux: ':' only (openjdk-8 at least)
# Darwin: ':' only
# Darwin and Linux both have uname, so that's a good differentior from Cygwin.
# XXX hmm according to Makefile, cygwin does have uname, and it outputs "Cygwin"? so I'm not sure this will work. should use logic in Makefile probably.
uname && sep=':' || sep=';'
# If everything including com is in SpiralApplet.jar,
# then can run it standalone with no classpath
#exec java -jar SpiralApplet.jar "$@"
# Have to do it this way if com is not in SpiralApplet.jar
#exec java -classpath "SpiralApplet.jar${sep}donhatchsw.jar" SpiralApplet "$@"
# This way doesn't require jar to be made at all, just the class files
echo java -classpath ".${sep}donhatchsw.jar" SpiralApplet "$@"
exec java -classpath ".${sep}donhatchsw.jar" SpiralApplet "$@"
# Requires neither jar nor donhatchsw to be made (note that we still *compile* out of donhatchsw.jar in current directory though... this is just useful for non-interface fixes or debugging in donhatchsw)
#echo java -classpath ".${sep}../donhatchsw" SpiralApplet "$@"
#exec java -classpath ".${sep}../donhatchsw" SpiralApplet "$@"