view rlm/swank-all.pl @ 10:d60460cbcf4b tip

integrated genesis.
author Robert McIntyre <rlm@mit.edu>
date Mon, 08 Jul 2013 12:30:50 -0400
parents ea8bd9af7576
children
line wrap: on
line source
1 #!/usr/bin/perl
3 $replP = $ARGV[0];
5 @JVM_options =
6 ("-verbose:gc",
7 "-Xmn300M",
8 "-Xms2000M",
9 "-Xmx2000M",
10 "-server");
12 @classpath_projects =
13 (
14 "/home/r/proj/rlm/src",
15 "/home/r/proj/genesis/src",
16 # "/home/r/proj/dylan/src",
17 "/home/r/proj/pony-stories/src",
18 # "/home/r/proj/data.json/src/main/clojure",
19 # "/home/r/proj/curry/src",
20 "/home/r/java/lib/*",
21 "/home/r/proj/aurellem/src",
22 "/home/r/proj/pokemon-types/src",
23 "/home/r/proj/cortex/src",
24 "/home/r/proj/cortex/assets",
25 # "/home/r/proj/", #########################ocsenave
26 # "/home/r/proj/abomination/src",
27 # "/home/r/proj/abomination/classes",
28 # "/home/r/proj/pony/src",
29 # "/home/r/proj/coderloop/src",
30 "/home/r/proj/audio-send/java/dist/audio-send.jar",
31 "/home/r/proj/audio-send/java/dist/audio-send-natives.jar",
32 "/home/r/proj/jmeCapture/dist/jmeCapture.jar",
33 "/home/r/proj/vba-clojure/java/dist/gb-bindings.jar",
34 "/home/r/proj/vba-clojure/clojure",
35 "/home/r/proj/lockjaw/src"
36 );
38 @classpath_libs =
39 (
40 # "/home/r/java/incanter/*",
41 # "/home/r/java/enlive/src",
42 "/home/r/java/lp-solve-5.5/lib/lpsolve55j.jar",
43 "/home/r/proj/jMonkeyEngine3/dist/lib/eventbus.jar",
44 "/home/r/proj/jMonkeyEngine3/dist/lib/jinput.jar",
45 "/home/r/proj/jMonkeyEngine3/dist/lib/jME3-blender.jar",
46 "/home/r/proj/jMonkeyEngine3/dist/lib/jME3-core.jar",
47 "/home/r/proj/jMonkeyEngine3/dist/lib/jME3-desktop.jar",
49 "/home/r/proj/jMonkeyEngine3/dist/lib/jME3-jogg.jar",
50 "/home/r/proj/jMonkeyEngine3/dist/lib/jME3-lwjgl.jar",
51 "/home/r/proj/jMonkeyEngine3/dist/lib/jME3-lwjgl-natives.jar",
52 "/home/r/proj/jMonkeyEngine3/dist/lib/jME3-niftygui.jar",
53 "/home/r/proj/jMonkeyEngine3/dist/lib/jME3-plugins.jar",
54 "/home/r/proj/jMonkeyEngine3/dist/lib/jME3-terrain.jar",
55 "/home/r/proj/jMonkeyEngine3/dist/lib/jME3-testdata.jar",
56 "/home/r/proj/jMonkeyEngine3/dist/lib/j-ogg-oggd.jar",
57 "/home/r/proj/jMonkeyEngine3/dist/lib/j-ogg-vorbisd.jar",
58 "/home/r/proj/jMonkeyEngine3/dist/lib/lwjgl.jar",
59 "/home/r/proj/jMonkeyEngine3/dist/lib/nifty-default-controls.jar",
60 "/home/r/proj/jMonkeyEngine3/dist/lib/nifty-examples.jar",
61 "/home/r/proj/jMonkeyEngine3/dist/lib/nifty.jar",
62 "/home/r/proj/jMonkeyEngine3/dist/lib/nifty-style-black.jar",
63 #"/home/r/proj/jMonkeyEngine3/dist/lib/noise-0.0.1-SNAPSHOT.jar",
64 "/home/r/proj/jMonkeyEngine3/dist/lib/stack-alloc.jar",
65 "/home/r/proj/jMonkeyEngine3/dist/lib/vecmath.jar",
66 "/home/r/proj/jMonkeyEngine3/dist/lib/xmlpull-xpp3.jar",
68 ### physics, choose jbullet or bullet
70 # jbullet -- has... special.... cone joints
71 # "/home/r/proj/jMonkeyEngine3/dist/lib/jbullet.jar",
72 # "/home/r/proj/jMonkeyEngine3/dist/lib/jME3-jbullet.jar",
74 # bullet
75 "/home/r/proj/jMonkeyEngine3/dist/opt/native-bullet/jME3-bullet.jar",
76 "/home/r/proj/jMonkeyEngine3/dist/opt/native-bullet/jME3-bullet-natives.jar",
78 # Genesis
79 "/home/r/git/genesis/dist/*",
80 "/home/r/git/genesis/jars/frame/*",
81 "/home/r/git/genesis/jars/jung/*",
82 "/home/r/git/genesis/jars/xstream-1.2.2/lib/xstream-1.4.3.jar",
83 "/home/r/git/genesis/jars/junit/junit-4.11.jar",
84 "/home/r/git/genesis/jars/google-gson-2.2.2/gson-2.2.2.jar",
85 "/home/r/git/genesis/jars/textToSpeech/*",
86 "/home/r/git/genesis/jars/xmlrpc/*",
87 "/home/r/git/genesis/jars/jeromq/jeromq-0.2.0-SNAPSHOT.jar",
88 "/home/r/git/genesis/jars/jfxrt.jar",
89 "/home/r/git/genesis/jars/miscellaneous/*",
90 # "/home/r/git/genesis/corpora",
92 # propagators
93 "/home/r/git/propagators/dist/*",
94 "/home/r/git/propagators/lib/codec/*",
95 "/home/r/git/propagators/lib/xmlrpc/*",
96 "/home/r/git/propagators/lib/bytecode/javassist.jar",
98 );
100 @C_libs =
101 ("/home/r/java/lp-solve-5.5/lpsolve55/bin/ux64",
102 "/home/r/java/lp-solve-5.5-java/lib/ux64",
103 "/home/r/proj/vba-clojure/build/artifacts/lib",
104 "/usr/share/OpenCV/java/"
105 );
108 $JVM_options = join " ", @JVM_options;
109 $classpath_projects = join ":", @classpath_projects;
110 $classpath_libs = join ":", @classpath_libs;
111 $C_libs = join ":", @C_libs;
113 $swank_launch ="clojure.main";
114 $swank_launch .= " -e ";
115 $swank_launch .= '"';
116 $swank_launch .= "(do (require 'swank.swank)";
117 $swank_launch .= "(require 'rlm.rlm-commands)";
118 $swank_launch .= "(swank.swank/start-repl 4005))";
119 $swank_launch .= '"';
121 $repl_launch = "clojure.main";
123 $clojure_command = $swank_launch;
125 if ($replP eq "--repl") {$clojure_command = $repl_launch;}
127 $command = "java $JVM_options -cp $classpath_projects:$classpath_libs" .
128 " -Djava.library.path=$C_libs $clojure_command";
130 print "$command\n";
132 system($command);