annotate rlm/swank-all.pl @ 6:e22ae14fa9d5

merging
author Robert McIntyre <rlm@mit.edu>
date Thu, 01 Mar 2012 05:45:14 -0700
parents swank-all.pl@8fd75396715d swank-all.pl@8a0edc0a0448
children 913acb5a675b
rev   line source
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@5 12 "/home/r/proj/dylan/src",
rlm@2 13 "/home/r/proj/curry/src",
rlm@2 14 "/home/r/java/lib/*",
rlm@2 15 "/home/r/proj/aurellem/src",
rlm@2 16 "/home/r/proj/pokemon-types/src",
rlm@2 17 "/home/r/proj/cortex/src",
rlm@2 18 "/home/r/proj/cortex/assets",
rlm@2 19 "/home/r/proj/abomination/src",
rlm@2 20 "/home/r/proj/abomination/classes",
rlm@5 21 "/home/r/proj/pony/src",
rlm@2 22 "/home/r/proj/coderloop/src",
rlm@2 23 "/home/r/proj/audio-send/java/dist/audio-send.jar",
rlm@2 24 "/home/r/proj/audio-send/java/dist/audio-send-natives.jar",
rlm@2 25 "/home/r/proj/jmeCapture/dist/jmeCapture.jar"
rlm@2 26 );
rlm@2 27
rlm@2 28 @classpath_libs =
rlm@2 29 ("/home/r/java/incanter/*",
rlm@2 30 "/home/r/java/enlive/src",
rlm@2 31 "/home/r/java/lp_solve-5.5/lib/lpsolve55j.jar",
rlm@5 32 "/home/r/proj/jMonkeyEngine3/dist/lib/eventbus.jar",
rlm@5 33 "/home/r/proj/jMonkeyEngine3/dist/lib/jinput.jar",
rlm@5 34 "/home/r/proj/jMonkeyEngine3/dist/lib/jME3-blender.jar",
rlm@2 35 "/home/r/proj/jMonkeyEngine3/dist/lib/jME3-core.jar",
rlm@2 36 "/home/r/proj/jMonkeyEngine3/dist/lib/jME3-desktop.jar",
rlm@5 37
rlm@5 38 "/home/r/proj/jMonkeyEngine3/dist/lib/jME3-jogg.jar",
rlm@5 39 "/home/r/proj/jMonkeyEngine3/dist/lib/jME3-lwjgl.jar",
rlm@2 40 "/home/r/proj/jMonkeyEngine3/dist/lib/jME3-lwjgl-natives.jar",
rlm@5 41 "/home/r/proj/jMonkeyEngine3/dist/lib/jME3-niftygui.jar",
rlm@5 42 "/home/r/proj/jMonkeyEngine3/dist/lib/jME3-plugins.jar",
rlm@5 43 "/home/r/proj/jMonkeyEngine3/dist/lib/jME3-terrain.jar",
rlm@2 44 "/home/r/proj/jMonkeyEngine3/dist/lib/jME3-testdata.jar",
rlm@2 45 "/home/r/proj/jMonkeyEngine3/dist/lib/j-ogg-oggd.jar",
rlm@2 46 "/home/r/proj/jMonkeyEngine3/dist/lib/j-ogg-vorbisd.jar",
rlm@5 47 "/home/r/proj/jMonkeyEngine3/dist/lib/lwjgl.jar",
rlm@5 48 "/home/r/proj/jMonkeyEngine3/dist/lib/nifty-default-controls.jar",
rlm@5 49 "/home/r/proj/jMonkeyEngine3/dist/lib/nifty-examples.jar",
rlm@5 50 "/home/r/proj/jMonkeyEngine3/dist/lib/nifty.jar",
rlm@5 51 "/home/r/proj/jMonkeyEngine3/dist/lib/nifty-style-black.jar",
rlm@5 52 "/home/r/proj/jMonkeyEngine3/dist/lib/noise-0.0.1-SNAPSHOT.jar",
rlm@5 53 "/home/r/proj/jMonkeyEngine3/dist/lib/stack-alloc.jar",
rlm@5 54 "/home/r/proj/jMonkeyEngine3/dist/lib/vecmath.jar",
rlm@5 55 "/home/r/proj/jMonkeyEngine3/dist/lib/xmlpull-xpp3.jar",
rlm@5 56
rlm@5 57 ### physics, choose jbullet or bullet
rlm@5 58
rlm@5 59 # jbullet -- has... special.... cone joints
rlm@5 60 # "/home/r/proj/jMonkeyEngine3/dist/lib/jbullet.jar",
rlm@4 61 # "/home/r/proj/jMonkeyEngine3/dist/lib/jME3-jbullet.jar",
rlm@5 62
rlm@5 63 # bullet
rlm@5 64 "/home/r/proj/jMonkeyEngine3/dist/opt/native-bullet/jME3-bullet.jar",
rlm@5 65 "/home/r/proj/jMonkeyEngine3/dist/opt/native-bullet/jME3-bullet-natives.jar",
rlm@2 66
rlm@2 67 );
rlm@2 68
rlm@2 69 @C_libs =
rlm@2 70 ("/home/r/java/lp_solve-5.5/lpsolve55/bin/ux64",
rlm@2 71 "/home/r/java/lp_solve-5.5-java/lib/ux64");
rlm@2 72
rlm@2 73
rlm@2 74 $JVM_options = join " ", @JVM_options;
rlm@2 75 $classpath_projects = join ":", @classpath_projects;
rlm@2 76 $classpath_libs = join ":", @classpath_libs;
rlm@2 77 $C_libs = join ":", @C_libs;
rlm@2 78
rlm@2 79 $clojure_launch ="clojure.main";
rlm@2 80 $clojure_launch .= " -e ";
rlm@2 81 $clojure_launch .= '"';
rlm@2 82 $clojure_launch .= "(do (require 'swank.swank)";
rlm@2 83 $clojure_launch .= "(require 'rlm.rlm-commands)";
rlm@2 84 $clojure_launch .= "(swank.swank/start-repl 4005))";
rlm@2 85 $clojure_launch .= '"';
rlm@2 86
rlm@2 87 $command = "java ".$JVM_options." -cp ".$classpath_projects.":".$classpath_libs
rlm@2 88 ." -Djava.library.path=".$C_libs." ".$clojure_launch;
rlm@2 89
rlm@2 90 print "$command\n";
rlm@2 91
rlm@2 92 system($command);
rlm@2 93