[Swift-commit] r2828 - SwiftApps/pc3
noreply at svn.ci.uchicago.edu
noreply at svn.ci.uchicago.edu
Sun Apr 5 07:59:09 CDT 2009
Author: benc
Date: 2009-04-05 07:59:08 -0500 (Sun, 05 Apr 2009)
New Revision: 2828
Modified:
SwiftApps/pc3/CompactDatabase.sh
SwiftApps/pc3/CountEntries.sh
SwiftApps/pc3/ExtractEntry.sh
SwiftApps/pc3/PSLoadExecutable.sh
SwiftApps/pc3/PSLoadExecutableDB.sh
SwiftApps/pc3/ParseXMLBooleanValue.sh
SwiftApps/pc3/README
Log:
provenance challenge fiddles to luiz's code for me
Modified: SwiftApps/pc3/CompactDatabase.sh
===================================================================
--- SwiftApps/pc3/CompactDatabase.sh 2009-04-05 05:12:43 UTC (rev 2827)
+++ SwiftApps/pc3/CompactDatabase.sh 2009-04-05 12:59:08 UTC (rev 2828)
@@ -1,7 +1,7 @@
#!/bin/bash
INPUT=$1
-$JAVA_HOME/bin/java -Dderby.system.home=/var/tmp/derby-pc3/ -cp "$PC3LIB/Java/bin/info.ipaw.pc3.PSLoadExecutable.jar:$PC3LIB/Java/bin/info.ipaw.pc3.PSLoadWorkflow.jar:$PC3LIB/Java/lib/derby.jar:$PC3LIB/Java/lib/derbyclient.jar:$PC3LIB/Java/lib/derbynet.jar:$PC3LIB/Java/lib/derbyrun.jar:$PC3LIB/Java/lib/derbytools.jar" info.ipaw.pc3.PSLoadExecutable.Execute CompactDatabase -f $INPUT
+java -Dderby.system.home=/var/tmp/derby-pc3/ -cp "$PC3LIB/Java/bin/info.ipaw.pc3.PSLoadExecutable.jar:$PC3LIB/Java/bin/info.ipaw.pc3.PSLoadWorkflow.jar:$PC3LIB/Java/lib/derby.jar:$PC3LIB/Java/lib/derbyclient.jar:$PC3LIB/Java/lib/derbynet.jar:$PC3LIB/Java/lib/derbyrun.jar:$PC3LIB/Java/lib/derbytools.jar" info.ipaw.pc3.PSLoadExecutable.Execute CompactDatabase -f $INPUT
-
\ No newline at end of file
+
Modified: SwiftApps/pc3/CountEntries.sh
===================================================================
--- SwiftApps/pc3/CountEntries.sh 2009-04-05 05:12:43 UTC (rev 2827)
+++ SwiftApps/pc3/CountEntries.sh 2009-04-05 12:59:08 UTC (rev 2828)
@@ -2,4 +2,5 @@
INPUT=$1
OUTPUT=$2
-xpath -q -e "count(/java/object/void/object)" $INPUT > $OUTPUT
+# xpath -q -e "count(/java/object/void/object)" $INPUT > $OUTPUT
+xpath $INPUT "count(/java/object/void/object)" > $OUTPUT
Modified: SwiftApps/pc3/ExtractEntry.sh
===================================================================
--- SwiftApps/pc3/ExtractEntry.sh 2009-04-05 05:12:43 UTC (rev 2827)
+++ SwiftApps/pc3/ExtractEntry.sh 2009-04-05 12:59:08 UTC (rev 2828)
@@ -5,6 +5,7 @@
echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>" > $OUTPUT
echo "<java version=\"1.6.0_12\" class=\"java.beans.XMLDecoder\">" >> $OUTPUT
-xpath -q -e "/java/object/void[$INTEGER]/object" $INPUT >> $OUTPUT
+# xpath -q -e "/java/object/void[$INTEGER]/object" $INPUT >> $OUTPUT
+xpath $INPUT "/java/object/void[$INTEGER]/object" >> $OUTPUT
-echo "</java>" >> $OUTPUT
\ No newline at end of file
+echo "</java>" >> $OUTPUT
Modified: SwiftApps/pc3/PSLoadExecutable.sh
===================================================================
--- SwiftApps/pc3/PSLoadExecutable.sh 2009-04-05 05:12:43 UTC (rev 2827)
+++ SwiftApps/pc3/PSLoadExecutable.sh 2009-04-05 12:59:08 UTC (rev 2828)
@@ -3,5 +3,5 @@
INPUT2=$2
OUTPUT=$3
-$JAVA_HOME/bin/java -Dderby.system.home=/var/tmp/derby-pc3/ -cp "$PC3LIB/Java/bin/info.ipaw.pc3.PSLoadExecutable.jar:$PC3LIB/Java/bin/info.ipaw.pc3.PSLoadWorkflow.jar:$PC3LIB/Java/lib/derby.jar:$PC3LIB/Java/lib/derbyclient.jar:$PC3LIB/Java/lib/derbynet.jar:$PC3LIB/Java/lib/derbyrun.jar:$PC3LIB/Java/lib/derbytools.jar" info.ipaw.pc3.PSLoadExecutable.Execute $INPUT2 -o $OUTPUT -f $INPUT1
+java -Dderby.system.home=/var/tmp/derby-pc3/ -cp "$PC3LIB/Java/bin/info.ipaw.pc3.PSLoadExecutable.jar:$PC3LIB/Java/bin/info.ipaw.pc3.PSLoadWorkflow.jar:$PC3LIB/Java/lib/derby.jar:$PC3LIB/Java/lib/derbyclient.jar:$PC3LIB/Java/lib/derbynet.jar:$PC3LIB/Java/lib/derbyrun.jar:$PC3LIB/Java/lib/derbytools.jar" info.ipaw.pc3.PSLoadExecutable.Execute $INPUT2 -o $OUTPUT -f $INPUT1
Modified: SwiftApps/pc3/PSLoadExecutableDB.sh
===================================================================
--- SwiftApps/pc3/PSLoadExecutableDB.sh 2009-04-05 05:12:43 UTC (rev 2827)
+++ SwiftApps/pc3/PSLoadExecutableDB.sh 2009-04-05 12:59:08 UTC (rev 2828)
@@ -4,4 +4,4 @@
SINPUT=$3
OUTPUT=$4
-$JAVA_HOME/bin/java -Dderby.system.home=/var/tmp/derby-pc3/ -cp "$PC3LIB/Java/bin/info.ipaw.pc3.PSLoadExecutable.jar:$PC3LIB/Java/bin/info.ipaw.pc3.PSLoadWorkflow.jar:$PC3LIB/Java/lib/derby.jar:$PC3LIB/Java/lib/derbyclient.jar:$PC3LIB/Java/lib/derbynet.jar:$PC3LIB/Java/lib/derbyrun.jar:$PC3LIB/Java/lib/derbytools.jar" info.ipaw.pc3.PSLoadExecutable.Execute $SINPUT -o $OUTPUT -f $DB -f $INPUT
+java -Dderby.system.home=/var/tmp/derby-pc3/ -cp "$PC3LIB/Java/bin/info.ipaw.pc3.PSLoadExecutable.jar:$PC3LIB/Java/bin/info.ipaw.pc3.PSLoadWorkflow.jar:$PC3LIB/Java/lib/derby.jar:$PC3LIB/Java/lib/derbyclient.jar:$PC3LIB/Java/lib/derbynet.jar:$PC3LIB/Java/lib/derbyrun.jar:$PC3LIB/Java/lib/derbytools.jar" info.ipaw.pc3.PSLoadExecutable.Execute $SINPUT -o $OUTPUT -f $DB -f $INPUT
Modified: SwiftApps/pc3/ParseXMLBooleanValue.sh
===================================================================
--- SwiftApps/pc3/ParseXMLBooleanValue.sh 2009-04-05 05:12:43 UTC (rev 2827)
+++ SwiftApps/pc3/ParseXMLBooleanValue.sh 2009-04-05 12:59:08 UTC (rev 2828)
@@ -1,4 +1,5 @@
#!/bin/bash
INPUT=$1
OUTPUT=$2
-xpath -q -e '/java/boolean/text()' $INPUT > $OUTPUT
+# xpath -q -e '/java/boolean/text()' $INPUT > $OUTPUT
+xpath $INPUT '/java/boolean/text()' > $OUTPUT
Modified: SwiftApps/pc3/README
===================================================================
--- SwiftApps/pc3/README 2009-04-05 05:12:43 UTC (rev 2827)
+++ SwiftApps/pc3/README 2009-04-05 12:59:08 UTC (rev 2828)
@@ -1,10 +1,10 @@
-* This is a work-space for the Swift entry to the third provenance challenge
+* Download and extract PC3.tar.gz from the PC3 home page at
+ http://twiki.ipaw.info/bin/view/Challenge/ThirdProvenanceChallenge
-* Download and extract PC3.tar.gz from the PC3 home page.
-
* Append tc.data.append to your tc.data.
-* Requires xpath program (in Debian: $ apt-get install libxml-xpath-perl).
+* Requires xpath program (in Debian: $ apt-get install libxml-xpath-perl)
+* Requires Java 1.6
* Example:
@@ -12,8 +12,21 @@
$ cd PC3
$ export JAVA_PATH=<path to Java>
$ export PC3LIB=`pwd`
-$ mkdir Java/tmp
-$ cd Java/tmp
+$ cd Java/
+$ ant jar
+$ mkdir tmp
+$ cd tmp
$ cp <path to pc3 wf impl>/pc3/* .
$ export PATH=$PATH:`pwd`
$ swift pc3.swift -csvpath=CSVRootPathInput.xml -jobid=JobIDInput.xml
+
+
+Extra notes for running on Ben's OS X 10.5 laptop with multiple Java versions
+installed, the default of which does not work:
+
+Set these:
+$ echo $JAVACMD
+/System/Library/Frameworks/JavaVM.framework/Versions/1.6/Commands//java
+$ echo $JAVA_HOME
+/System/Library/Frameworks/JavaVM.framework/Versions/1.6/
+
More information about the Swift-commit
mailing list