Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't run --library option #136

Open
mricaud opened this issue Jan 9, 2014 · 4 comments
Open

Can't run --library option #136

mricaud opened this issue Jan 9, 2014 · 4 comments

Comments

@mricaud
Copy link

mricaud commented Jan 9, 2014

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...)

@ndw
Copy link
Owner

ndw commented Feb 10, 2014

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.

@mricaud
Copy link
Author

mricaud commented Feb 12, 2014

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

@ndw
Copy link
Owner

ndw commented Feb 12, 2014

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

@mricaud
Copy link
Author

mricaud commented Feb 13, 2014

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants