Skip to content
Permalink
Browse files

build script; add executable

  • Loading branch information...
casutton committed Apr 2, 2014
1 parent a955e4e commit 9efc3af5899e5c81ad8402db9c2e0cabddb981bb
Showing with 54 additions and 3 deletions.
  1. +8 −0 bin/storm-build
  2. +43 −0 build.xml
  3. +1 −1 src/io/DataPath.java
  4. +2 −2 src/wslauncher/StormLauncher.java
@@ -0,0 +1,8 @@
#!/bin/sh

curdir=`dirname $0`
curdir=`dirname $curdir`
cp=$curdir/library/cue.language.jar:$curdir/library/processing/*:$curdir/dist/lib/wordstorm.jar

echo $cp
java -cp $cp wslauncher.StormLauncher
@@ -0,0 +1,43 @@
<project name="wordstorm" default="dist" basedir=".">

<!-- set global properties for this build -->
<property name="src" location="src"/>
<property name="build" location="build"/>
<property name="dist" location="dist"/>

<path id="project.classpath">
<pathelement path="${class}"/>
<fileset dir="library" includes="*.jar"/>
<fileset dir="library/processing" includes="*.jar"/>
</path>

<target name="init">
<!-- Create the time stamp -->
<tstamp/>
<!-- Create the build directory structure used by compile -->
<mkdir dir="${build}"/>
</target>

<target name="compile" depends="init"
description="compile the source ">
<!-- Compile the java code from ${src} into ${build} -->
<javac srcdir="${src}" destdir="${build}"
classpathref="project.classpath"/>
</target>

<target name="dist" depends="compile"
description="generate the distribution" >
<!-- Create the distribution directory -->
<mkdir dir="${dist}/lib"/>

<!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
<jar jarfile="${dist}/lib/wordstorm.jar" basedir="${build}"/>
</target>

<target name="clean"
description="clean up" >
<!-- Delete the ${build} and ${dist} directory trees -->
<delete dir="${build}"/>
<delete dir="${dist}"/>
</target>
</project>
@@ -5,7 +5,7 @@
*/
public class DataPath {
public static String dataPath() {
String path = "/home/quim/Documents/workspace/WordStorm/examples/data";
String path = "/Users/csutton/hg/projects/storm-www-demo/cluster-docs/d2";
return path;
}
}
@@ -12,7 +12,7 @@
public class StormLauncher {

public static void main(String[] args) {
String folder = "PresidentialDebate"; //set the path to the data with io.DataPath and folder
String folder = "";
AppletConf apConf = new AppletConf(640,480,255); //cloud width, height and bk color

StormConf conf = new StormConf(); //Storm Parameters
@@ -39,4 +39,4 @@ else if(conf.coorPlacer == 3)
f.initProcess();
HTMLSaver.singleStorm(load, conf, apConf);
}
}
}

0 comments on commit 9efc3af

Please sign in to comment.
You can’t perform that action at this time.