Now with support for arbitrary repositories and target classes.
: stain@mira ~/Documents/workspace/taverna1.x;cat executeworkflow.sh
java \
-Draven.splashscreen=false \
-Draven.target.groupid=uk.org.mygrid.taverna.scufl \
-Draven.target.artifactid=scufl-tools \
-Draven.target.class=org.embl.ebi.escience.scufl.tools.WorkflowLauncher \
-Draven.target.method=main \
-jar taverna-bootstrap/target/taverna-bootstrap-1.5-SNAPSHOT.jar $@
: stain@mira ~/Documents/workspace/taverna1.x;sh executeworkflow.sh -help
usage: executeworkflow <workflow> [..]
Execute workflow and save outputs. Inputs can be specified by multiple
--input options, or loaded from an XML input document as saved from
Taverna. By default, a new directory is created named workflow.xml_output
unless the --output or --outputdocoptions are given. All files to be read
can be either a local file or an URL.
(does not work to execute workflows like this, as scufl-tools don't depend on any of the processors needed).
We should probably need to pop in the raven profile TAV-188 here as well.
The default properties are in taverna-bootstrap/src/main/resources/raven.properties, but can be overriden with system properties, as shown above.
For instance, you might want to add
raven.repository.0 = http://yourrepository.org/maven/ if your local repository is not in $HOME/.m2/repository.
(In fact, Raven works also for some non-mygrid stuff:
: stain@mira ~/Documents/workspace/taverna1.x;cat j2h.sh
java -Draven.splashscreen=false -Draven.target.groupid=java2html -Draven.target.artifactid=j2h -Draven.target.version=1.3.1 -Draven.target.class=j2h -Draven.target.method=main -jar taverna-bootstrap/target/taverna-bootstrap-1.5-SNAPSHOT.jar $@
: stain@mira ~/Documents/workspace/taverna1.x;sh j2h.sh
java2html:j2h:1.3.1 not found in file:/Users/stain/.m2/repository/
java2html:j2h:1.3.1 not found in http://www.mygrid.org.uk/maven/repository/
java2html:j2h:1.3.1 not found in file:/Users/stain/.m2/repository/
java2html:j2h:1.3.1 not found in http://www.mygrid.org.uk/maven/repository/
Java2HTML Version 1.3.1
Copyright (c) 2000-2003 Polygon Enterprises.
(..)
So if something is in Maven with proper dependencies, you could run it! (Now that leaves out anything larger than 1 jars in most cases.. I tried to run both Maven
and ant like this)
I didn't add any magic for finding the main class from the .jar, left as an exercise for the reader.
Now with support for arbitrary repositories and target classes.
: stain@mira ~/Documents/workspace/taverna1.x;cat executeworkflow.sh
java \
-Draven.splashscreen=false \
-Draven.target.groupid=uk.org.mygrid.taverna.scufl \
-Draven.target.artifactid=scufl-tools \
-Draven.target.class=org.embl.ebi.escience.scufl.tools.WorkflowLauncher \
-Draven.target.method=main \
-jar taverna-bootstrap/target/taverna-bootstrap-1.5-SNAPSHOT.jar $@
: stain@mira ~/Documents/workspace/taverna1.x;sh executeworkflow.sh -help
usage: executeworkflow <workflow> [..]
Execute workflow and save outputs. Inputs can be specified by multiple
--input options, or loaded from an XML input document as saved from
Taverna. By default, a new directory is created named workflow.xml_output
unless the --output or --outputdocoptions are given. All files to be read
can be either a local file or an URL.
(does not work to execute workflows like this, as scufl-tools don't depend on any of the processors needed).
We should probably need to pop in the raven profile
TAV-188here as well.The default properties are in taverna-bootstrap/src/main/resources/raven.properties, but can be overriden with system properties, as shown above.
For instance, you might want to add
raven.repository.0 = http://yourrepository.org/maven/ if your local repository is not in $HOME/.m2/repository.
(In fact, Raven works also for some non-mygrid stuff:
: stain@mira ~/Documents/workspace/taverna1.x;cat j2h.sh
java -Draven.splashscreen=false -Draven.target.groupid=java2html -Draven.target.artifactid=j2h -Draven.target.version=1.3.1 -Draven.target.class=j2h -Draven.target.method=main -jar taverna-bootstrap/target/taverna-bootstrap-1.5-SNAPSHOT.jar $@
: stain@mira ~/Documents/workspace/taverna1.x;sh j2h.sh
java2html:j2h:1.3.1 not found in file:/Users/stain/.m2/repository/
java2html:j2h:1.3.1 not found in http://www.mygrid.org.uk/maven/repository/
java2html:j2h:1.3.1 not found in file:/Users/stain/.m2/repository/
java2html:j2h:1.3.1 not found in http://www.mygrid.org.uk/maven/repository/
Java2HTML Version 1.3.1
Copyright (c) 2000-2003 Polygon Enterprises.
(..)
So if something is in Maven with proper dependencies, you could run it! (Now that leaves out anything larger than 1 jars in most cases.. I tried to run both Maven
and ant like this)
I didn't add any magic for finding the main class from the .jar, left as an exercise for the reader.
TAV-188here as well. The default properties are in taverna-bootstrap/src/main/resources/raven.properties, but can be overriden with system properties, as shown above. For instance, you might want to add raven.repository.0 = http://yourrepository.org/maven/ if your local repository is not in $HOME/.m2/repository. (In fact, Raven works also for some non-mygrid stuff: : stain@mira ~/Documents/workspace/taverna1.x;cat j2h.sh java -Draven.splashscreen=false -Draven.target.groupid=java2html -Draven.target.artifactid=j2h -Draven.target.version=1.3.1 -Draven.target.class=j2h -Draven.target.method=main -jar taverna-bootstrap/target/taverna-bootstrap-1.5-SNAPSHOT.jar $@ : stain@mira ~/Documents/workspace/taverna1.x;sh j2h.sh java2html:j2h:1.3.1 not found in file:/Users/stain/.m2/repository/ java2html:j2h:1.3.1 not found in http://www.mygrid.org.uk/maven/repository/ java2html:j2h:1.3.1 not found in file:/Users/stain/.m2/repository/ java2html:j2h:1.3.1 not found in http://www.mygrid.org.uk/maven/repository/ Java2HTML Version 1.3.1 Copyright (c) 2000-2003 Polygon Enterprises. (..) So if something is in Maven with proper dependencies, you could run it! (Now that leaves out anything larger than 1 jars in most cases.. I tried to run both Maven