diff rlm/swank-all.pl @ 3:8a0edc0a0448

created seperate folders for dylan and robert and fixed old repl script
author Dylan Holmes <ocsenave@gmail.com>
date Tue, 28 Feb 2012 19:53:47 -0600
parents swank-all.pl@1579e83305d7
children e22ae14fa9d5
line wrap: on
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/rlm/swank-all.pl	Tue Feb 28 19:53:47 2012 -0600
     1.3 @@ -0,0 +1,72 @@
     1.4 +#!/usr/bin/perl
     1.5 +
     1.6 +@JVM_options = 
     1.7 +  ("-verbose:gc",
     1.8 +   "-Xmn500M",
     1.9 +   "-Xms3000M",
    1.10 +   "-Xmx3000M",
    1.11 +   "-server");
    1.12 +
    1.13 +@classpath_projects = 
    1.14 +  ("/home/r/proj/rlm/src",
    1.15 +   "/home/r/proj/curry/src",
    1.16 +   "/home/r/java/lib/*",
    1.17 +   "/home/r/proj/aurellem/src",
    1.18 +   "/home/r/proj/pokemon-types/src",
    1.19 +   "/home/r/proj/cortex/src",
    1.20 +   "/home/r/proj/cortex/assets",
    1.21 +   "/home/r/proj/abomination/src",
    1.22 +   "/home/r/proj/abomination/classes",
    1.23 +   "/home/r/proj/coderloop/src",
    1.24 +   "/home/r/proj/audio-send/java/dist/audio-send.jar",
    1.25 +   "/home/r/proj/audio-send/java/dist/audio-send-natives.jar",
    1.26 +   "/home/r/proj/jmeCapture/dist/jmeCapture.jar"
    1.27 +);
    1.28 +
    1.29 +@classpath_libs = 
    1.30 +  ("/home/r/java/incanter/*",
    1.31 +   "/home/r/java/enlive/src",
    1.32 +   "/home/r/java/lp_solve-5.5/lib/lpsolve55j.jar",
    1.33 +   "/home/r/proj/jMonkeyEngine3/dist/lib/jME3-core.jar",
    1.34 +   "/home/r/proj/jMonkeyEngine3/dist/lib/jME3-desktop.jar",
    1.35 +   "/home/r/proj/jMonkeyEngine3/dist/lib/jME3-jbullet.jar",
    1.36 +   "/home/r/proj/jMonkeyEngine3/dist/lib/jME3-lwjgl-natives.jar",
    1.37 +   "/home/r/proj/jMonkeyEngine3/dist/lib/jME3-lwjgl.jar",
    1.38 +   "/home/r/proj/jMonkeyEngine3/dist/lib/jME3-testdata.jar",
    1.39 +   "/home/r/proj/jMonkeyEngine3/dist/opt/jME3-tests.jar",
    1.40 +   "/home/r/proj/jMonkeyEngine3/dist/lib/jME3-jogg.jar",
    1.41 +   "/home/r/proj/jMonkeyEngine3/dist/lib/jME3-blender.jar",
    1.42 +   "/home/r/proj/jMonkeyEngine3/dist/lib/jME3-plugins.jar",
    1.43 +   "/home/r/proj/jMonkeyEngine3/dist/lib/jbullet.jar",
    1.44 +   "/home/r/proj/jMonkeyEngine3/dist/lib/lwjgl.jar",
    1.45 +   "/home/r/proj/jMonkeyEngine3/dist/lib/vecmath.jar",
    1.46 +   "/home/r/proj/jMonkeyEngine3/dist/lib/j-ogg-oggd.jar",
    1.47 +   "/home/r/proj/jMonkeyEngine3/dist/lib/j-ogg-vorbisd.jar",
    1.48 +
    1.49 +  );
    1.50 +
    1.51 +@C_libs = 
    1.52 +  ("/home/r/java/lp_solve-5.5/lpsolve55/bin/ux64",
    1.53 +   "/home/r/java/lp_solve-5.5-java/lib/ux64");
    1.54 +
    1.55 +
    1.56 +$JVM_options = join " ", @JVM_options;
    1.57 +$classpath_projects = join ":", @classpath_projects;
    1.58 +$classpath_libs = join ":", @classpath_libs;
    1.59 +$C_libs = join ":", @C_libs;
    1.60 +
    1.61 +$clojure_launch ="clojure.main";
    1.62 +$clojure_launch .= " -e ";
    1.63 +$clojure_launch .= '"';
    1.64 +$clojure_launch .= "(do (require 'swank.swank)";
    1.65 +$clojure_launch .= "(require 'rlm.rlm-commands)";
    1.66 +$clojure_launch .= "(swank.swank/start-repl 4005))";
    1.67 +$clojure_launch .= '"';
    1.68 +
    1.69 +$command = "java ".$JVM_options." -cp ".$classpath_projects.":".$classpath_libs
    1.70 +  ." -Djava.library.path=".$C_libs." ".$clojure_launch;
    1.71 +
    1.72 +print "$command\n";
    1.73 +
    1.74 +system($command);
    1.75 +