-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdeploy
executable file
·34 lines (26 loc) · 10.6 KB
/
deploy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/bin/sh
# To run our code, we must have it in our classpath.
# We use $(ls target/*.jar) instead of target/stars-1.0.jar so that
# this script can be reused in other projects more easily.
TARGET=$(ls target/*.jar 2>/dev/null)
if [ -z "$TARGET" ]; then
echo "No jar file in target/, try 'mvn package'".
exit 1
fi
# In the pom.xml, we've already explained other what libraries we
# depend on. Maven downloaded them, and put them "somewhere" (our
# repository). Now we ask maven to build up the CLASSPATH that let us
# run against those libraries.
# First, we put the CLASSPATH in .classpath if the pom.xml is newer
# than out existing .classpath file. (We avoid this command if
# .classpath is fresh, since it's rather slow.)
# Now, we set $CP to the contents of the .classpath file.
CP=$(cat .mvn-classpath)
# Again, we're trying to make the script more reusable by guessing the
# package name from the current directory, instead of hard coding.
# But this relies on some conventions in naming. You'll have to call
# your class "Main" and use our recommended package structure.
PROJECT=$(basename $(pwd))
# The funny symbol: "$@" passes the command-line arguments on from
# this script to your Java program.
java -cp $TARGET:/Users/steveellison/.m2/repository/net/sf/jopt-simple/jopt-simple/4.8/jopt-simple-4.8.jar:/Users/steveellison/.m2/repository/com/corundumstudio/socketio/netty-socketio/1.7.6/netty-socketio-1.7.6.jar:/Users/steveellison/.m2/repository/io/netty/netty-buffer/4.0.25.Final/netty-buffer-4.0.25.Final.jar:/Users/steveellison/.m2/repository/io/netty/netty-common/4.0.25.Final/netty-common-4.0.25.Final.jar:/Users/steveellison/.m2/repository/io/netty/netty-transport/4.0.25.Final/netty-transport-4.0.25.Final.jar:/Users/steveellison/.m2/repository/io/netty/netty-handler/4.0.25.Final/netty-handler-4.0.25.Final.jar:/Users/steveellison/.m2/repository/io/netty/netty-codec-http/4.0.25.Final/netty-codec-http-4.0.25.Final.jar:/Users/steveellison/.m2/repository/io/netty/netty-codec/4.0.25.Final/netty-codec-4.0.25.Final.jar:/Users/steveellison/.m2/repository/io/netty/netty-transport-native-epoll/4.0.25.Final/netty-transport-native-epoll-4.0.25.Final.jar:/Users/steveellison/.m2/repository/com/fasterxml/jackson/core/jackson-core/2.4.3/jackson-core-2.4.3.jar:/Users/steveellison/.m2/repository/com/fasterxml/jackson/core/jackson-databind/2.4.3/jackson-databind-2.4.3.jar:/Users/steveellison/.m2/repository/com/fasterxml/jackson/core/jackson-annotations/2.4.0/jackson-annotations-2.4.0.jar:/Users/steveellison/.m2/repository/junit/junit/4.11/junit-4.11.jar:/Users/steveellison/.m2/repository/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3.jar:/Users/steveellison/.m2/repository/org/hamcrest/hamcrest-all/1.3/hamcrest-all-1.3.jar:/Users/steveellison/.m2/repository/org/slf4j/slf4j-api/1.7.7/slf4j-api-1.7.7.jar:/Users/steveellison/.m2/repository/org/slf4j/slf4j-jdk14/1.7.7/slf4j-jdk14-1.7.7.jar:/Users/steveellison/.m2/repository/com/google/guava/guava/18.0/guava-18.0.jar:/Users/steveellison/.m2/repository/com/google/code/gson/gson/2.3.1/gson-2.3.1.jar:/Users/steveellison/.m2/repository/com/sparkjava/spark-core/2.0.0/spark-core-2.0.0.jar:/Users/steveellison/.m2/repository/org/eclipse/jetty/jetty-server/9.0.2.v20130417/jetty-server-9.0.2.v20130417.jar:/Users/steveellison/.m2/repository/org/eclipse/jetty/orbit/javax.servlet/3.0.0.v201112011016/javax.servlet-3.0.0.v201112011016.jar:/Users/steveellison/.m2/repository/org/eclipse/jetty/jetty-http/9.0.2.v20130417/jetty-http-9.0.2.v20130417.jar:/Users/steveellison/.m2/repository/org/eclipse/jetty/jetty-util/9.0.2.v20130417/jetty-util-9.0.2.v20130417.jar:/Users/steveellison/.m2/repository/org/eclipse/jetty/jetty-io/9.0.2.v20130417/jetty-io-9.0.2.v20130417.jar:/Users/steveellison/.m2/repository/org/eclipse/jetty/jetty-webapp/9.0.2.v20130417/jetty-webapp-9.0.2.v20130417.jar:/Users/steveellison/.m2/repository/org/eclipse/jetty/jetty-xml/9.0.2.v20130417/jetty-xml-9.0.2.v20130417.jar:/Users/steveellison/.m2/repository/org/eclipse/jetty/jetty-servlet/9.0.2.v20130417/jetty-servlet-9.0.2.v20130417.jar:/Users/steveellison/.m2/repository/org/eclipse/jetty/jetty-security/9.0.2.v20130417/jetty-security-9.0.2.v20130417.jar:/Users/steveellison/.m2/repository/com/sparkjava/spark-template-freemarker/2.0.0/spark-template-freemarker-2.0.0.jar:/Users/steveellison/.m2/repository/org/freemarker/freemarker/2.3.19/freemarker-2.3.19.jar:/Users/steveellison/.m2/repository/spark/spark/0.9.9.3-SNAPSHOT/spark-0.9.9.3-SNAPSHOT.jar:/Users/steveellison/.m2/repository/org/slf4j/slf4j-log4j12/1.6.1/slf4j-log4j12-1.6.1.jar:/Users/steveellison/.m2/repository/log4j/log4j/1.2.14/log4j-1.2.14.jar:/Users/steveellison/.m2/repository/org/eclipse/jetty/aggregate/jetty-webapp/7.3.0.v20110203/jetty-webapp-7.3.0.v20110203.jar:/Users/steveellison/.m2/repository/javax/servlet/servlet-api/2.5/servlet-api-2.5.jar:/Users/steveellison/.m2/repository/commons-io/commons-io/1.3.2/commons-io-1.3.2.jar:/Users/steveellison/.m2/repository/org/xerial/sqlite-jdbc/3.8.7/sqlite-jdbc-3.8.7.jar:/Users/steveellison/.m2/repository/com/vividsolutions/jts/1.11/jts-1.11.jar:/Users/steveellison/.m2/repository/xerces/xercesImpl/2.4.0/xercesImpl-2.4.0.jar:/Users/steveellison/.m2/repository/it/sauronsoftware/jave/1.0.2/jave-1.0.2.jar:/Users/steveellison/.m2/repository/org/apache/tika/tika-parsers/1.8/tika-parsers-1.8.jar:/Users/steveellison/.m2/repository/org/apache/tika/tika-core/1.8/tika-core-1.8.jar:/Users/steveellison/.m2/repository/org/gagravarr/vorbis-java-tika/0.6/vorbis-java-tika-0.6.jar:/Users/steveellison/.m2/repository/net/sourceforge/jmatio/jmatio/1.0/jmatio-1.0.jar:/Users/steveellison/.m2/repository/org/apache/james/apache-mime4j-core/0.7.2/apache-mime4j-core-0.7.2.jar:/Users/steveellison/.m2/repository/org/apache/james/apache-mime4j-dom/0.7.2/apache-mime4j-dom-0.7.2.jar:/Users/steveellison/.m2/repository/org/apache/commons/commons-compress/1.9/commons-compress-1.9.jar:/Users/steveellison/.m2/repository/org/tukaani/xz/1.5/xz-1.5.jar:/Users/steveellison/.m2/repository/commons-codec/commons-codec/1.9/commons-codec-1.9.jar:/Users/steveellison/.m2/repository/org/apache/pdfbox/pdfbox/1.8.9/pdfbox-1.8.9.jar:/Users/steveellison/.m2/repository/org/apache/pdfbox/fontbox/1.8.9/fontbox-1.8.9.jar:/Users/steveellison/.m2/repository/org/apache/pdfbox/jempbox/1.8.9/jempbox-1.8.9.jar:/Users/steveellison/.m2/repository/commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.jar:/Users/steveellison/.m2/repository/org/bouncycastle/bcmail-jdk15on/1.52/bcmail-jdk15on-1.52.jar:/Users/steveellison/.m2/repository/org/bouncycastle/bcpkix-jdk15on/1.52/bcpkix-jdk15on-1.52.jar:/Users/steveellison/.m2/repository/org/bouncycastle/bcprov-jdk15on/1.52/bcprov-jdk15on-1.52.jar:/Users/steveellison/.m2/repository/org/apache/poi/poi/3.12-beta1/poi-3.12-beta1.jar:/Users/steveellison/.m2/repository/org/apache/poi/poi-scratchpad/3.12-beta1/poi-scratchpad-3.12-beta1.jar:/Users/steveellison/.m2/repository/org/apache/poi/poi-ooxml/3.12-beta1/poi-ooxml-3.12-beta1.jar:/Users/steveellison/.m2/repository/org/apache/poi/poi-ooxml-schemas/3.12-beta1/poi-ooxml-schemas-3.12-beta1.jar:/Users/steveellison/.m2/repository/org/apache/xmlbeans/xmlbeans/2.6.0/xmlbeans-2.6.0.jar:/Users/steveellison/.m2/repository/org/ccil/cowan/tagsoup/tagsoup/1.2.1/tagsoup-1.2.1.jar:/Users/steveellison/.m2/repository/org/ow2/asm/asm-debug-all/4.1/asm-debug-all-4.1.jar:/Users/steveellison/.m2/repository/com/googlecode/mp4parser/isoparser/1.0.2/isoparser-1.0.2.jar:/Users/steveellison/.m2/repository/org/aspectj/aspectjrt/1.8.0/aspectjrt-1.8.0.jar:/Users/steveellison/.m2/repository/com/drewnoakes/metadata-extractor/2.8.0/metadata-extractor-2.8.0.jar:/Users/steveellison/.m2/repository/com/adobe/xmp/xmpcore/5.1.2/xmpcore-5.1.2.jar:/Users/steveellison/.m2/repository/de/l3s/boilerpipe/boilerpipe/1.1.0/boilerpipe-1.1.0.jar:/Users/steveellison/.m2/repository/rome/rome/1.0/rome-1.0.jar:/Users/steveellison/.m2/repository/jdom/jdom/1.0/jdom-1.0.jar:/Users/steveellison/.m2/repository/org/gagravarr/vorbis-java-core/0.6/vorbis-java-core-0.6.jar:/Users/steveellison/.m2/repository/com/googlecode/juniversalchardet/juniversalchardet/1.0.3/juniversalchardet-1.0.3.jar:/Users/steveellison/.m2/repository/org/codelibs/jhighlight/1.0.2/jhighlight-1.0.2.jar:/Users/steveellison/.m2/repository/com/pff/java-libpst/0.8.1/java-libpst-0.8.1.jar:/Users/steveellison/.m2/repository/com/github/junrar/junrar/0.7/junrar-0.7.jar:/Users/steveellison/.m2/repository/commons-logging/commons-logging-api/1.1/commons-logging-api-1.1.jar:/Users/steveellison/.m2/repository/org/apache/commons/commons-vfs2/2.0/commons-vfs2-2.0.jar:/Users/steveellison/.m2/repository/org/apache/maven/scm/maven-scm-api/1.4/maven-scm-api-1.4.jar:/Users/steveellison/.m2/repository/org/codehaus/plexus/plexus-utils/1.5.6/plexus-utils-1.5.6.jar:/Users/steveellison/.m2/repository/org/apache/maven/scm/maven-scm-provider-svnexe/1.4/maven-scm-provider-svnexe-1.4.jar:/Users/steveellison/.m2/repository/org/apache/maven/scm/maven-scm-provider-svn-commons/1.4/maven-scm-provider-svn-commons-1.4.jar:/Users/steveellison/.m2/repository/regexp/regexp/1.3/regexp-1.3.jar:/Users/steveellison/.m2/repository/edu/ucar/netcdf4/4.5.5/netcdf4-4.5.5.jar:/Users/steveellison/.m2/repository/net/jcip/jcip-annotations/1.0/jcip-annotations-1.0.jar:/Users/steveellison/.m2/repository/net/java/dev/jna/jna/4.1.0/jna-4.1.0.jar:/Users/steveellison/.m2/repository/edu/ucar/grib/4.5.5/grib-4.5.5.jar:/Users/steveellison/.m2/repository/com/google/protobuf/protobuf-java/2.5.0/protobuf-java-2.5.0.jar:/Users/steveellison/.m2/repository/org/jdom/jdom2/2.0.4/jdom2-2.0.4.jar:/Users/steveellison/.m2/repository/org/jsoup/jsoup/1.7.2/jsoup-1.7.2.jar:/Users/steveellison/.m2/repository/edu/ucar/jj2000/5.2/jj2000-5.2.jar:/Users/steveellison/.m2/repository/org/itadaki/bzip2/0.9.1/bzip2-0.9.1.jar:/Users/steveellison/.m2/repository/edu/ucar/cdm/4.5.5/cdm-4.5.5.jar:/Users/steveellison/.m2/repository/edu/ucar/udunits/4.5.5/udunits-4.5.5.jar:/Users/steveellison/.m2/repository/org/apache/httpcomponents/httpcore/4.2.5/httpcore-4.2.5.jar:/Users/steveellison/.m2/repository/joda-time/joda-time/2.2/joda-time-2.2.jar:/Users/steveellison/.m2/repository/org/quartz-scheduler/quartz/2.2.0/quartz-2.2.0.jar:/Users/steveellison/.m2/repository/c3p0/c3p0/0.9.1.1/c3p0-0.9.1.1.jar:/Users/steveellison/.m2/repository/net/sf/ehcache/ehcache-core/2.6.2/ehcache-core-2.6.2.jar:/Users/steveellison/.m2/repository/com/beust/jcommander/1.35/jcommander-1.35.jar:/Users/steveellison/.m2/repository/edu/ucar/httpservices/4.5.5/httpservices-4.5.5.jar:/Users/steveellison/.m2/repository/org/apache/httpcomponents/httpclient/4.2.6/httpclient-4.2.6.jar:/Users/steveellison/.m2/repository/org/apache/httpcomponents/httpmime/4.2.6/httpmime-4.2.6.jar:/Users/steveellison/.m2/repository/org/apache/commons/commons-csv/1.0/commons-csv-1.0.jar edu.brown.cs.group.sam.Main "$@"