Skip to content
Snippets Groups Projects
Commit a1710cfc authored by Barbara B. Frosik's avatar Barbara B. Frosik
Browse files

updated expSync tools to include java 7

parent 596d9dac
No related branches found
No related tags found
No related merge requests found
#!/bin/sh #!/bin/sh
DM_SVN_URL_EXP_SYNC=https://subversion.xray.aps.anl.gov/DataManagement/trunk/tools/ExperimentSynchronizer DM_SVN_URL=https://subversion.xray.aps.anl.gov/DataManagement
execute() { execute() {
echo "Executing: $@" echo "Executing: $@"
eval "$@" eval "$@"
} }
execute svn export $DM_SVN_URL_EXP_SYNC ExperimentSynchronizer # load tools
execute svn export $DM_SVN_URL_EXP_SYNC/trunk/tools/ExperimentSynchronizer ExperimentSynchronizer
EXPSYNC_DIR=ExperimentSynchronizer EXPSYNC_DIR=ExperimentSynchronizer
cd $EXPSYNC_DIR/lib
cd $EXPSYNC_DIR # load java 7
execute svn export $DM_SVN_URL/support/src/jdk-7u51-linux-x64.tar.gz
JAVA_VERSION=7u51
tar zxf jdk-${JAVA_VERSION}*.tar.gz
cd $EXPSYNC_DIR
mkdir bin mkdir bin
execute javac -classpath lib/*:resources/* -d bin/ src/gov/anl/dm/esafsync/*.java src/gov/anl/dm/esafsync/serviceconn/*.java execute lib/javac -classpath lib/*:resources/* -d bin/ src/gov/anl/dm/esafsync/*.java src/gov/anl/dm/esafsync/serviceconn/*.java
mkdir target mkdir target
execute jar cfm target/ExperimentSynchronizer.jar manifest.txt -C bin/ . execute jar cfm target/ExperimentSynchronizer.jar manifest.txt -C bin/ .
...@@ -4,5 +4,5 @@ execute() { ...@@ -4,5 +4,5 @@ execute() {
} }
cd ExperimentSynchronizer cd ExperimentSynchronizer
execute java -jar target/ExperimentSynchronizer.jar resources/config.properties execute lib/java -jar target/ExperimentSynchronizer.jar resources/config.properties
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment