Mercurial > repl
view 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 |
line wrap: on
line source
1 #!/usr/bin/perl3 @JVM_options =4 ("-verbose:gc",5 "-Xmn500M",6 "-Xms3000M",7 "-Xmx3000M",8 "-server");10 @classpath_projects =11 ("/home/r/proj/rlm/src",12 "/home/r/proj/dylan/src",13 "/home/r/proj/curry/src",14 "/home/r/java/lib/*",15 "/home/r/proj/aurellem/src",16 "/home/r/proj/pokemon-types/src",17 "/home/r/proj/cortex/src",18 "/home/r/proj/cortex/assets",19 "/home/r/proj/abomination/src",20 "/home/r/proj/abomination/classes",21 "/home/r/proj/pony/src",22 "/home/r/proj/coderloop/src",23 "/home/r/proj/audio-send/java/dist/audio-send.jar",24 "/home/r/proj/audio-send/java/dist/audio-send-natives.jar",25 "/home/r/proj/jmeCapture/dist/jmeCapture.jar"26 );28 @classpath_libs =29 ("/home/r/java/incanter/*",30 "/home/r/java/enlive/src",31 "/home/r/java/lp_solve-5.5/lib/lpsolve55j.jar",32 "/home/r/proj/jMonkeyEngine3/dist/lib/eventbus.jar",33 "/home/r/proj/jMonkeyEngine3/dist/lib/jinput.jar",34 "/home/r/proj/jMonkeyEngine3/dist/lib/jME3-blender.jar",35 "/home/r/proj/jMonkeyEngine3/dist/lib/jME3-core.jar",36 "/home/r/proj/jMonkeyEngine3/dist/lib/jME3-desktop.jar",38 "/home/r/proj/jMonkeyEngine3/dist/lib/jME3-jogg.jar",39 "/home/r/proj/jMonkeyEngine3/dist/lib/jME3-lwjgl.jar",40 "/home/r/proj/jMonkeyEngine3/dist/lib/jME3-lwjgl-natives.jar",41 "/home/r/proj/jMonkeyEngine3/dist/lib/jME3-niftygui.jar",42 "/home/r/proj/jMonkeyEngine3/dist/lib/jME3-plugins.jar",43 "/home/r/proj/jMonkeyEngine3/dist/lib/jME3-terrain.jar",44 "/home/r/proj/jMonkeyEngine3/dist/lib/jME3-testdata.jar",45 "/home/r/proj/jMonkeyEngine3/dist/lib/j-ogg-oggd.jar",46 "/home/r/proj/jMonkeyEngine3/dist/lib/j-ogg-vorbisd.jar",47 "/home/r/proj/jMonkeyEngine3/dist/lib/lwjgl.jar",48 "/home/r/proj/jMonkeyEngine3/dist/lib/nifty-default-controls.jar",49 "/home/r/proj/jMonkeyEngine3/dist/lib/nifty-examples.jar",50 "/home/r/proj/jMonkeyEngine3/dist/lib/nifty.jar",51 "/home/r/proj/jMonkeyEngine3/dist/lib/nifty-style-black.jar",52 "/home/r/proj/jMonkeyEngine3/dist/lib/noise-0.0.1-SNAPSHOT.jar",53 "/home/r/proj/jMonkeyEngine3/dist/lib/stack-alloc.jar",54 "/home/r/proj/jMonkeyEngine3/dist/lib/vecmath.jar",55 "/home/r/proj/jMonkeyEngine3/dist/lib/xmlpull-xpp3.jar",57 ### physics, choose jbullet or bullet59 # jbullet -- has... special.... cone joints60 # "/home/r/proj/jMonkeyEngine3/dist/lib/jbullet.jar",61 # "/home/r/proj/jMonkeyEngine3/dist/lib/jME3-jbullet.jar",63 # bullet64 "/home/r/proj/jMonkeyEngine3/dist/opt/native-bullet/jME3-bullet.jar",65 "/home/r/proj/jMonkeyEngine3/dist/opt/native-bullet/jME3-bullet-natives.jar",67 );69 @C_libs =70 ("/home/r/java/lp_solve-5.5/lpsolve55/bin/ux64",71 "/home/r/java/lp_solve-5.5-java/lib/ux64");74 $JVM_options = join " ", @JVM_options;75 $classpath_projects = join ":", @classpath_projects;76 $classpath_libs = join ":", @classpath_libs;77 $C_libs = join ":", @C_libs;79 $clojure_launch ="clojure.main";80 $clojure_launch .= " -e ";81 $clojure_launch .= '"';82 $clojure_launch .= "(do (require 'swank.swank)";83 $clojure_launch .= "(require 'rlm.rlm-commands)";84 $clojure_launch .= "(swank.swank/start-repl 4005))";85 $clojure_launch .= '"';87 $command = "java ".$JVM_options." -cp ".$classpath_projects.":".$classpath_libs88 ." -Djava.library.path=".$C_libs." ".$clojure_launch;90 print "$command\n";92 system($command);