Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100755 63 lines (56 sloc) 1.97 kb
1b53939 @sandofsky Run script. Twitter config.
sandofsky authored
1 # run.sh : code_swarm launching script
2 # need the config file as first parameter
3
4 params=$@
5 default_config="data/sample.config"
6 code_swarm_jar="dist/code_swarm.jar"
7
8 # command line parameters basic check
9 if [ $# = 0 ]; then
10 # asking user for a config file
11 echo "code_swarm project !"
12 echo -n "Specify a config file, or ENTER for default one [$default_config] : "
13 read config
14 if [ ${#config} = 0 ]; then
15 params=$default_config
16 else
17 params=$config
18 fi
19 else
20 if [ $1 == "-h" ] || [ $1 == "--help" ]; then
21 # if help needed, print it and exit
22 echo "usage: run.sh <configfile>"
23 echo ""
24 echo " data/sample.config is the default config file"
25 echo ""
26 exit
27 else
28 echo "code_swarm project !"
29 fi
30 fi
31
32 # checking for code_swarm java binaries
33 if [ ! -f $code_swarm_jar ]; then
34 echo "no code_swarm binaries !"
35 echo "needing to build it with 'ant' and 'javac' (java-sdk)"
36 echo ""
37 echo "auto-trying the ant command..."
38 if ant; then
39 echo ""
40 else
41 echo ""
42 echo "ERROR, please verify 'ant' and 'java-sdk' installation"
43 echo -n "press a key to exit"
44 read key
45 echo "bye"
46 exit
47 fi
48 fi
49
50 # running
4743f1d @sandofsky Use OpenGL.
sandofsky authored
51 #if java -Xmx1000m -classpath dist/code_swarm.jar:lib/core.jar:lib/xml.jar:lib/vecmath.jar:. code_swarm $params; then
149f051 @bikegriffith Added logs and configuration for Project Focus.
bikegriffith authored
52 #if java -Xmx1000m -classpath dist/code_swarm.jar:lib/gluegen-rt.jar:lib/jogl.jar:lib/jogl-natives-macosx-universal.jar:lib/core.jar:lib/opengl.jar:lib/xml.jar:lib/vecmath.jar:. code_swarm $params; then
53 if java -Xmx1000m -classpath dist/code_swarm.jar:lib/gluegen-rt.jar:lib/jogl.jar:lib/jogl-natives-macosx-universal.jar:lib/core.jar:lib/opengl.jar:lib/xml.jar:lib/vecmath.jar:. -Djava.library.path=lib/ code_swarm $params; then
1b53939 @sandofsky Run script. Twitter config.
sandofsky authored
54 # always on error due to no "exit buton" on rendering window
55 echo "bye"
56 # echo -n "error, press a key to exit"
57 # read key
58 else
59 echo "bye"
60 fi
61
62
Something went wrong with that request. Please try again.