(cross-posted at https://biostar.usegalaxy.org/p/20220/ )

I'm trying to create some `tools.xml` that use java.

Those tools need to download some library (*.jar) files from http://central.maven.org/ and I want to create a variable $MYTOOLCLASSPATH containing the jars. I've tried the following xml :

        <?xml version="1.0" encoding="UTF-8"?>
          <package name="mytool" version="0.0.1">
            <install version="1.0">
<action type="shell_command">wget -P "$REPOSITORY_INSTALL_DIR" "http://central.maven.org/lib1.jar"; "http://central.maven.org/lib2.jar";</action>
                <action type="set_environment">
<environment_variable name="MYTOOLCLASSPATH" action="set_to">$REPOSITORY_INSTALL_DIR/lib1.jar:$REPOSITORY_INSTALL_DIR/lib2.jar</environment_variable>

the base java command is defined as a token in macro.xml:

              <token name="@MYJAVA@">
        java   -cp "\${MYTOOLCLASSPATH}"

and called in my tool.xml:

            <command>@MYJAVA@ tool.Tool ${input} &gt; ${out} </command>

but It seems that $MYTOOLCLASSPATH  is empty.

I've also tried to create a set_environment under <tool_dependency>:

    <set_environment version="1.0">
<environment_variable name="MYTOOLCLASSPATH" action="set_to">$REPOSITORY_INSTALL_DIR/lib1.jar:$REPOSITORY_INSTALL_DIR/lib2.jar</environment_variable>

same problem: the $MYTOOLCLASSPATH remains empty

Where Am i wrong ? What's the correct way to define MYTOOLCLASSPATH ?



Please keep all replies on the list by using "reply all"
in your mail client.  To manage your subscriptions to this
and other Galaxy lists, please use the interface at:

To search Galaxy mailing lists use the unified search at:

Reply via email to