transformationSet parameter value doesn't work on Linux
Prifiz opened this issue · 2 comments
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.
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