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