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

transformationSet parameter value doesn't work on Linux #56

Open
Prifiz opened this issue May 13, 2020 · 2 comments
Open

transformationSet parameter value doesn't work on Linux #56

Prifiz opened this issue May 13, 2020 · 2 comments

Comments

@Prifiz
Copy link

Prifiz commented May 13, 2020

Hello,
I configured transformationSet in the following way:
<transformationSet> <!--some config here--> <parameters> <parameter> <name>config_file</name> <value>${project.build.directory}/path/to/my/config.xml</value> </parameter> </parameters> </transformationSet>
Being executed on linux, it is failing with an error:
ERROR: 'opt'
ERROR: 'File not found: com.sun.org.apache.xml.internal.utils.WrappedRuntimeException: opt'
ERROR: 'com.sun.org.apache.xalan.internal.xsltc.TransletException: java.io.FileNotFoundException: file://opt/jenkins/workspace/path/to/my/config.xml'

But when I added / at the start of content like this
/${project.build.directory}/path/to/my/config.xml
it worked.
Seems like one trailing slash is missing in "file://" protocol notation.

@jochenw
Copy link
Member

jochenw commented May 14, 2020 via email

@Prifiz
Copy link
Author

Prifiz commented May 14, 2020

Unfortunately, according to my company's security policy I can't share even a small part of the code where it is being reproduced.
Attached a part of my pom.xml with obfuscated sensitive date. Hope it helps.
xml-plugin-example.txt
Please note that leading slash is added in line 23 as a workaround

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