annotate swank-all.pl @ 4:c0a7582262fd

added new javadoc script to deal with lack of xinemera
author Robert McIntyre <rlm@mit.edu>
date Tue, 27 Dec 2011 23:26:48 -0700
parents 1579e83305d7
children 8fd75396715d
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@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@4 30 "/home/r/proj/jMonkeyEngine3/dist/lib/*",
rlm@4 31 # "/home/r/proj/jMonkeyEngine3/dist/lib/jME3-core.jar",
rlm@4 32 # "/home/r/proj/jMonkeyEngine3/dist/lib/jME3-desktop.jar",
rlm@4 33 # "/home/r/proj/jMonkeyEngine3/dist/lib/jME3-jbullet.jar",
rlm@4 34 # "/home/r/proj/jMonkeyEngine3/dist/lib/jME3-lwjgl-natives.jar",
rlm@4 35 # "/home/r/proj/jMonkeyEngine3/dist/lib/jME3-lwjgl.jar",
rlm@4 36 # "/home/r/proj/jMonkeyEngine3/dist/lib/jME3-testdata.jar",
rlm@4 37 # "/home/r/proj/jMonkeyEngine3/dist/opt/jME3-tests.jar",
rlm@4 38 # "/home/r/proj/jMonkeyEngine3/dist/lib/jME3-jogg.jar",
rlm@4 39 # "/home/r/proj/jMonkeyEngine3/dist/lib/jME3-blender.jar",
rlm@4 40 # "/home/r/proj/jMonkeyEngine3/dist/lib/jME3-plugins.jar",
rlm@4 41 # "/home/r/proj/jMonkeyEngine3/dist/lib/jbullet.jar",
rlm@4 42 # "/home/r/proj/jMonkeyEngine3/dist/lib/lwjgl.jar",
rlm@4 43 # "/home/r/proj/jMonkeyEngine3/dist/lib/vecmath.jar",
rlm@4 44 # "/home/r/proj/jMonkeyEngine3/dist/lib/j-ogg-oggd.jar",
rlm@4 45 # "/home/r/proj/jMonkeyEngine3/dist/lib/j-ogg-vorbisd.jar",
rlm@2 46
rlm@2 47 );
rlm@2 48
rlm@2 49 @C_libs =
rlm@2 50 ("/home/r/java/lp_solve-5.5/lpsolve55/bin/ux64",
rlm@2 51 "/home/r/java/lp_solve-5.5-java/lib/ux64");
rlm@2 52
rlm@2 53
rlm@2 54 $JVM_options = join " ", @JVM_options;
rlm@2 55 $classpath_projects = join ":", @classpath_projects;
rlm@2 56 $classpath_libs = join ":", @classpath_libs;
rlm@2 57 $C_libs = join ":", @C_libs;
rlm@2 58
rlm@2 59 $clojure_launch ="clojure.main";
rlm@2 60 $clojure_launch .= " -e ";
rlm@2 61 $clojure_launch .= '"';
rlm@2 62 $clojure_launch .= "(do (require 'swank.swank)";
rlm@2 63 $clojure_launch .= "(require 'rlm.rlm-commands)";
rlm@2 64 $clojure_launch .= "(swank.swank/start-repl 4005))";
rlm@2 65 $clojure_launch .= '"';
rlm@2 66
rlm@2 67 $command = "java ".$JVM_options." -cp ".$classpath_projects.":".$classpath_libs
rlm@2 68 ." -Djava.library.path=".$C_libs." ".$clojure_launch;
rlm@2 69
rlm@2 70 print "$command\n";
rlm@2 71
rlm@2 72 system($command);
rlm@2 73