rlm@2
|
1 #!/usr/bin/perl
|
rlm@2
|
2
|
rlm@2
|
3 @JVM_options =
|
rlm@2
|
4 ("-verbose:gc",
|
rlm@2
|
5 "-Xmn500M",
|
rlm@2
|
6 "-Xms3000M",
|
rlm@2
|
7 "-Xmx3000M",
|
rlm@2
|
8 "-server");
|
rlm@2
|
9
|
rlm@2
|
10 @classpath_projects =
|
rlm@2
|
11 ("/home/r/proj/rlm/src",
|
rlm@2
|
12 "/home/r/proj/curry/src",
|
rlm@2
|
13 "/home/r/java/lib/*",
|
rlm@2
|
14 "/home/r/proj/aurellem/src",
|
rlm@2
|
15 "/home/r/proj/pokemon-types/src",
|
rlm@2
|
16 "/home/r/proj/cortex/src",
|
rlm@2
|
17 "/home/r/proj/cortex/assets",
|
rlm@2
|
18 "/home/r/proj/abomination/src",
|
rlm@2
|
19 "/home/r/proj/abomination/classes",
|
rlm@2
|
20 "/home/r/proj/coderloop/src",
|
rlm@2
|
21 "/home/r/proj/audio-send/java/dist/audio-send.jar",
|
rlm@2
|
22 "/home/r/proj/audio-send/java/dist/audio-send-natives.jar",
|
rlm@2
|
23 "/home/r/proj/jmeCapture/dist/jmeCapture.jar"
|
rlm@2
|
24 );
|
rlm@2
|
25
|
rlm@2
|
26 @classpath_libs =
|
rlm@2
|
27 ("/home/r/java/incanter/*",
|
rlm@2
|
28 "/home/r/java/enlive/src",
|
rlm@2
|
29 "/home/r/java/lp_solve-5.5/lib/lpsolve55j.jar",
|
rlm@2
|
30 "/home/r/proj/jMonkeyEngine3/dist/lib/jME3-core.jar",
|
rlm@2
|
31 "/home/r/proj/jMonkeyEngine3/dist/lib/jME3-desktop.jar",
|
rlm@2
|
32 "/home/r/proj/jMonkeyEngine3/dist/lib/jME3-jbullet.jar",
|
rlm@2
|
33 "/home/r/proj/jMonkeyEngine3/dist/lib/jME3-lwjgl-natives.jar",
|
rlm@2
|
34 "/home/r/proj/jMonkeyEngine3/dist/lib/jME3-lwjgl.jar",
|
rlm@2
|
35 "/home/r/proj/jMonkeyEngine3/dist/lib/jME3-testdata.jar",
|
rlm@2
|
36 "/home/r/proj/jMonkeyEngine3/dist/opt/jME3-tests.jar",
|
rlm@2
|
37 "/home/r/proj/jMonkeyEngine3/dist/lib/jME3-jogg.jar",
|
rlm@2
|
38 "/home/r/proj/jMonkeyEngine3/dist/lib/jME3-blender.jar",
|
rlm@2
|
39 "/home/r/proj/jMonkeyEngine3/dist/lib/jME3-plugins.jar",
|
rlm@2
|
40 "/home/r/proj/jMonkeyEngine3/dist/lib/jbullet.jar",
|
rlm@2
|
41 "/home/r/proj/jMonkeyEngine3/dist/lib/lwjgl.jar",
|
rlm@2
|
42 "/home/r/proj/jMonkeyEngine3/dist/lib/vecmath.jar",
|
rlm@2
|
43 "/home/r/proj/jMonkeyEngine3/dist/lib/j-ogg-oggd.jar",
|
rlm@2
|
44 "/home/r/proj/jMonkeyEngine3/dist/lib/j-ogg-vorbisd.jar",
|
rlm@2
|
45
|
rlm@2
|
46 );
|
rlm@2
|
47
|
rlm@2
|
48 @C_libs =
|
rlm@2
|
49 ("/home/r/java/lp_solve-5.5/lpsolve55/bin/ux64",
|
rlm@2
|
50 "/home/r/java/lp_solve-5.5-java/lib/ux64");
|
rlm@2
|
51
|
rlm@2
|
52
|
rlm@2
|
53 $JVM_options = join " ", @JVM_options;
|
rlm@2
|
54 $classpath_projects = join ":", @classpath_projects;
|
rlm@2
|
55 $classpath_libs = join ":", @classpath_libs;
|
rlm@2
|
56 $C_libs = join ":", @C_libs;
|
rlm@2
|
57
|
rlm@2
|
58 $clojure_launch ="clojure.main";
|
rlm@2
|
59 $clojure_launch .= " -e ";
|
rlm@2
|
60 $clojure_launch .= '"';
|
rlm@2
|
61 $clojure_launch .= "(do (require 'swank.swank)";
|
rlm@2
|
62 $clojure_launch .= "(require 'rlm.rlm-commands)";
|
rlm@2
|
63 $clojure_launch .= "(swank.swank/start-repl 4005))";
|
rlm@2
|
64 $clojure_launch .= '"';
|
rlm@2
|
65
|
rlm@2
|
66 $command = "java ".$JVM_options." -cp ".$classpath_projects.":".$classpath_libs
|
rlm@2
|
67 ." -Djava.library.path=".$C_libs." ".$clojure_launch;
|
rlm@2
|
68
|
rlm@2
|
69 print "$command\n";
|
rlm@2
|
70
|
rlm@2
|
71 system($command);
|
rlm@2
|
72
|