xml-maven-plugin icon indicating copy to clipboard operation
xml-maven-plugin copied to clipboard

transformationSet parameter value doesn't work on Linux

Open Prifiz opened this issue 4 years ago • 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.

Prifiz avatar May 13 '20 08:05 Prifiz