-
Notifications
You must be signed in to change notification settings - Fork 290
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Removed dependence and references to ant build procedure
- Loading branch information
Showing
5 changed files
with
25 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,21 @@ | ||
#!/bin/bash | ||
|
||
##; clj -- script to start Clojure REPL with libraries necessary for Incanter | ||
# For native BLAS/LAPACK support | ||
##; incanter -- script to start Clojure REPL configured with the Incanter libraries | ||
|
||
INCANTER_HOME=. | ||
INCANTER_LIB_DIR=$INCANTER_HOME/lib | ||
INCANTER_SRC=$INCANTER_HOME/src/main/clojure | ||
CLASSES_DIR=$INCANTER_HOME/build/ | ||
INCANTER_JAR=$INCANTER_HOME/target/incanter-1.0-SNAPSHOT.jar | ||
|
||
CLOJURE_JARS=$INCANTER_LIB_DIR/clojure-1.1.0-alpha-SNAPSHOT.jar:$INCANTER_LIB_DIR/clojure-contrib.jar | ||
## This script uses the uberjar file created by maven with the following commands | ||
# $ mvn compile; mvn clojure:compile; mvn package | ||
|
||
JLINE_JARS=$INCANTER_LIB_DIR/jline-0.9.94.jar | ||
COLT_JARS=$INCANTER_LIB_DIR/parallelcolt-0.7.2.jar:$INCANTER_LIB_DIR/netlib-java-0.9.1.jar:$INCANTER_LIB_DIR/arpack-combo-0.1.jar | ||
JFREECHART_JARS=$INCANTER_LIB_DIR/jfreechart-1.0.13.jar:$INCANTER_LIB_DIR/jcommon-1.0.16.jar:$INCANTER_LIB_DIR/gnujaxp.jar | ||
OPENCSV_JARS=$INCANTER_LIB_DIR/opencsv-1.8.jar | ||
PROCESSING_JARS=$INCANTER_LIB_DIR/processing/core.jar:$INCANTER_LIB_DIR/processing/ | ||
JODA_TIME_JARS=$INCANTER_LIB_DIR/joda-time-1.6.jar | ||
CLJ_JSON_JARS=$INCANTER_LIB_DIR/clojure-json-1.1-SNAPSHOT.jar | ||
|
||
TESTS_DIR=$INCANTER_HOME/src/test/clojure | ||
INCANTER_HOME=. | ||
CLASSES_DIR=$INCANTER_HOME/target/ | ||
INCANTER_JAR=$INCANTER_HOME/target/incanter-1.0-master-SNAPSHOT-jar-with-dependencies.jar | ||
|
||
if [ -z "$1" ]; then | ||
java -server -cp .:..:$INCANTER_JAR:$COLT_JARS:$JLINE_JARS:$CLOJURE_JARS:$JFREECHART_JARS:$OPENCSV_JARS:$PROCESSING_JARS:$JODA_TIME_JARS:$CLJ_JSON_JARS:$TESTS_DIR -Dclojure.compile.path=$CLASSES_DIR -Dincanter.home=$INCANTER_HOME jline.ConsoleRunner clojure.main | ||
#java -server -Dclojure.compile.path=$CLASSES_DIR -Dincanter.home=$INCANTER_HOME -jar $INCANTER_JAR clojure.main | ||
java -server -Dclojure.compile.path=$CLASSES_DIR -Dincanter.home=$INCANTER_HOME -cp .:$INCANTER_JAR jline.ConsoleRunner clojure.main | ||
else | ||
scriptname=$1 | ||
java -server -cp .:..:$INCANTER_JAR:$COLT_JARS:$JLINE_JARS:$CLOJURE_JARS:$JFREECHART_JARS:$OPENCSV_JARS:$PROCESSING_JARS:$JODA_TIME_JARS:$CLJ_JSON_JARS:$TESTS_DIR -Dclojure.compile.path=$CLASSES_DIR -Dincanter.home=$INCANTER_HOME clojure.lang.Script $scriptname -- $* | ||
#java -server -Dclojure.compile.path=$CLASSES_DIR -Dincanter.home=$INCANTER_HOME -cp .:$INCANTER_JAR clojure.lang.Script $scriptname -- $* | ||
java -server -Dclojure.compile.path=$CLASSES_DIR -Dincanter.home=$INCANTER_HOME -cp .:$INCANTER_JAR clojure.main $scriptname -- $* | ||
fi | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,12 @@ | ||
@echo off | ||
set INCANTER_HOME=. | ||
set CLOJURE_JAR=%INCANTER_HOME%\clojure-1.0-SNAPSHOT.jar | ||
set INCANTER_LIB_DIR=%INCANTER_HOME%\lib | ||
set INCANTER_SRC=%INCANTER_HOME%\src\main\clojure | ||
set CLASSES_DIR=%INCANTER_HOME%\classes | ||
set INCANTER_JAR=%INCANTER_HOME%\target\incanter-1.0-SNAPSHOT.jar | ||
|
||
set CLOJURE_JARS=%INCANTER_LIB_DIR%\clojure.jar;%INCANTER_LIB_DIR%\clojure-contrib.jar | ||
|
||
set JLINE_JARS=%INCANTER_LIB_DIR%\jline-0.9.94.jar | ||
set COLT_JARS=%INCANTER_LIB_DIR%\parallelcolt-0.7.2.jar;%INCANTER_LIB_DIR%\netlib-java-0.9.1.jar;%INCANTER_LIB_DIR%\arpack-combo-0.1.jar | ||
set JFREECHART_JARS=%INCANTER_LIB_DIR%\jfreechart-1.0.13.jar;%INCANTER_LIB_DIR%\jcommon-1.0.16.jar;%INCANTER_LIB_DIR%\gnujaxp.jar | ||
set OPENCSV_JARS=%INCANTER_LIB_DIR%\opencsv-1.8.jar | ||
set PROCESSING_JARS=%INCANTER_LIB_DIR%\processing\core.jar;%INCANTER_LIB_DIR%\processing | ||
|
||
set JODA_TIME_JARS=%INCANTER_LIB_DIR%\joda-time-1.6.jar | ||
set CLJ_JSON_JARS=%INCANTER_LIB_DIR%\clojure-json-1.1-SNAPSHOT.jar | ||
|
||
set TESTS_DIR=%INCANTER_HOME%\src\test\clojure | ||
set INCANTER_JAR=%INCANTER_HOME%\target\incanter-1.0-SNAPSHOT-jar-with-dependencies.jar | ||
|
||
IF (%1)==() ( | ||
java -cp .;..;%INCANTER_JAR%;%COLT_JARS%;%JLINE_JARS%;%CLOJURE_JARS%;%JFREECHART_JARS%;%OPENCSV_JARS%;%PROCESSING_JARS%;%JODA_TIME_JARS%;%CLJ_JSON_JARS%;%TESTS_DIR% -Dclojure.compile.path=%CLASSES_DIR% -Dincanter.home=%INCANTER_HOME% clojure.main | ||
java -cp %INCANTER_JAR% -Dclojure.compile.path=%CLASSES_DIR% -Dincanter.home=%INCANTER_HOME% clojure.main | ||
) ELSE ( | ||
java -cp .;..;%INCANTER_JAR%;%COLT_JARS%;%JLINE_JARS%;%CLOJURE_JARS%;%JFREECHART_JARS%;%OPENCSV_JARS%;%PROCESSING_JARS%;%JODA_TIME_JARS%;%CLJ_JSON_JARS%;%TESTS_DIR% -Dclojure.compile.path=%CLASSES_DIR% -Dincanter.home=%INCANTER_HOME% clojure.lang.Script %1 -- %* | ||
java -cp %INCANTER_JAR% -Dclojure.compile.path=%CLASSES_DIR% -Dincanter.home=%INCANTER_HOME% clojure.main %1 -- %* | ||
) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters