view rlm/swank-all.pl @ 8:00524751595b

added vba-clojure to the list of projects
author Robert McIntyre <rlm@mit.edu>
date Wed, 07 Mar 2012 00:36:16 -0600
parents 913acb5a675b
children ea8bd9af7576
line wrap: on
line source
1 #!/usr/bin/perl
3 $replP = $ARGV[0];
5 @JVM_options =
6 ("-verbose:gc",
7 "-Xmn500M",
8 "-Xms3000M",
9 "-Xmx3000M",
10 "-server");
12 @classpath_projects =
13 ("/home/r/proj/rlm/src",
14 "/home/r/proj/dylan/src",
15 "/home/r/proj/curry/src",
16 "/home/r/java/lib/*",
17 "/home/r/proj/aurellem/src",
18 "/home/r/proj/pokemon-types/src",
19 "/home/r/proj/cortex/src",
20 "/home/r/proj/cortex/assets",
21 "/home/r/proj/abomination/src",
22 "/home/r/proj/abomination/classes",
23 "/home/r/proj/pony/src",
24 "/home/r/proj/coderloop/src",
25 "/home/r/proj/audio-send/java/dist/audio-send.jar",
26 "/home/r/proj/audio-send/java/dist/audio-send-natives.jar",
27 "/home/r/proj/jmeCapture/dist/jmeCapture.jar",
28 "/home/r/proj/vba-clojure/java/dist/gb-bindings.jar",
29 "/home/r/proj/vba-clojure/clojure"
30 );
32 @classpath_libs =
33 ("/home/r/java/incanter/*",
34 "/home/r/java/enlive/src",
35 "/home/r/java/lp_solve-5.5/lib/lpsolve55j.jar",
36 "/home/r/proj/jMonkeyEngine3/dist/lib/eventbus.jar",
37 "/home/r/proj/jMonkeyEngine3/dist/lib/jinput.jar",
38 "/home/r/proj/jMonkeyEngine3/dist/lib/jME3-blender.jar",
39 "/home/r/proj/jMonkeyEngine3/dist/lib/jME3-core.jar",
40 "/home/r/proj/jMonkeyEngine3/dist/lib/jME3-desktop.jar",
42 "/home/r/proj/jMonkeyEngine3/dist/lib/jME3-jogg.jar",
43 "/home/r/proj/jMonkeyEngine3/dist/lib/jME3-lwjgl.jar",
44 "/home/r/proj/jMonkeyEngine3/dist/lib/jME3-lwjgl-natives.jar",
45 "/home/r/proj/jMonkeyEngine3/dist/lib/jME3-niftygui.jar",
46 "/home/r/proj/jMonkeyEngine3/dist/lib/jME3-plugins.jar",
47 "/home/r/proj/jMonkeyEngine3/dist/lib/jME3-terrain.jar",
48 "/home/r/proj/jMonkeyEngine3/dist/lib/jME3-testdata.jar",
49 "/home/r/proj/jMonkeyEngine3/dist/lib/j-ogg-oggd.jar",
50 "/home/r/proj/jMonkeyEngine3/dist/lib/j-ogg-vorbisd.jar",
51 "/home/r/proj/jMonkeyEngine3/dist/lib/lwjgl.jar",
52 "/home/r/proj/jMonkeyEngine3/dist/lib/nifty-default-controls.jar",
53 "/home/r/proj/jMonkeyEngine3/dist/lib/nifty-examples.jar",
54 "/home/r/proj/jMonkeyEngine3/dist/lib/nifty.jar",
55 "/home/r/proj/jMonkeyEngine3/dist/lib/nifty-style-black.jar",
56 "/home/r/proj/jMonkeyEngine3/dist/lib/noise-0.0.1-SNAPSHOT.jar",
57 "/home/r/proj/jMonkeyEngine3/dist/lib/stack-alloc.jar",
58 "/home/r/proj/jMonkeyEngine3/dist/lib/vecmath.jar",
59 "/home/r/proj/jMonkeyEngine3/dist/lib/xmlpull-xpp3.jar",
61 ### physics, choose jbullet or bullet
63 # jbullet -- has... special.... cone joints
64 # "/home/r/proj/jMonkeyEngine3/dist/lib/jbullet.jar",
65 # "/home/r/proj/jMonkeyEngine3/dist/lib/jME3-jbullet.jar",
67 # bullet
68 "/home/r/proj/jMonkeyEngine3/dist/opt/native-bullet/jME3-bullet.jar",
69 "/home/r/proj/jMonkeyEngine3/dist/opt/native-bullet/jME3-bullet-natives.jar",
71 );
73 @C_libs =
74 ("/home/r/java/lp_solve-5.5/lpsolve55/bin/ux64",
75 "/home/r/java/lp_solve-5.5-java/lib/ux64",
76 "/home/r/proj/vba-clojure/build/artifacts/lib");
79 $JVM_options = join " ", @JVM_options;
80 $classpath_projects = join ":", @classpath_projects;
81 $classpath_libs = join ":", @classpath_libs;
82 $C_libs = join ":", @C_libs;
84 $swank_launch ="clojure.main";
85 $swank_launch .= " -e ";
86 $swank_launch .= '"';
87 $swank_launch .= "(do (require 'swank.swank)";
88 $swank_launch .= "(require 'rlm.rlm-commands)";
89 $swank_launch .= "(swank.swank/start-repl 4005))";
90 $swank_launch .= '"';
92 $repl_launch = "clojure.main";
94 $clojure_command = $swank_launch;
96 if ($replP eq "--repl") {$clojure_command = $repl_launch;}
98 $command = "java $JVM_options -cp $classpath_projects:$classpath_libs" .
99 " -Djava.library.path=$C_libs $clojure_command";
101 print "$command\n";
103 system($command);