xmlcalabash1 icon indicating copy to clipboard operation
xmlcalabash1 copied to clipboard

Can't run --library option

Open mricaud opened this issue 11 years ago • 4 comments

It seems this is a bug in last Calabash-1.0.16-95 when running a specified step in a library (option -l ou --library in calabash command line).

COMMAND

java -Xms512m -Xmx1024m -jar calabash.jar -D -b igs=http://www.igs-cp.fr/custom -l library.xpl -s igs:run -i source=input.xml

XPL : library.xpl

    <?xml version="1.0"?>
    <p:library   xmlns:p="http://www.w3.org/ns/xproc"
                 xmlns:igs="http://www.igs-cp.fr/custom"
                 version="1.0">
      <p:pipeline type="igs:run">
        <p:identity/>
      </p:pipeline>
    </p:library>

XML : input.xml

    <?xml version="1.0" encoding="UTF-8"?>
    <TESTS>
      <TEST>1</TEST>
      <TEST>2</TEST>
      <TEST>3</TEST>
    </TESTS>

What's happening :

The pipeline never ends up, sometimes a java error (parsing) is thrown (when trying to write something in the console under windows...)

mricaud avatar Jan 09 '14 16:01 mricaud

When you're building a pipeline up on the command line, you have to put the sources before the step they apply to:

java -Xms512m -Xmx1024m -jar calabash.jar -D -b igs=http://www.igs-cp.fr/custom -l library.xpl -i source=input.xml -s igs:run

But looking at this code, I'm not sure there isn't more trouble brewing. Let me know how it works for you in practice.

ndw avatar Feb 10 '14 09:02 ndw

I've tried your solution with Calabash1.0.16 but still have the same problem :(

mricaud avatar Feb 12 '14 16:02 mricaud

Really? Odd. I'm pretty sure it worked for me.

ndw avatar Feb 12 '14 18:02 ndw

Yes really, I've tried one more time today by copy/past your line, same result : I get a message with the implicit pipeline and then nothing else, waiting... I ran it on windows seven, java ""1.7.0_07", with saxonHe and also with saxonPe (site licence). That's strange.

mricaud avatar Feb 13 '14 09:02 mricaud