Native command: args reference workspace files
Posted: Mon Oct 19, 2015 10:31 am
I have a project that creates an XML file in a workspace. The xml file can be referenced by variable ${xmlfile}.
I would like to add an "exec task" to call a native command(.net exe). The native command will take the xml and reformat to pdf.
The .net exe has two arguments: an input filename(xml) and an output filename(pdf).
How do I call the native command and pass the path to ${xmlfile} ?
I would also like the output(pdf) to be written to the workspace.
Here is an excerpt of the project's xml:
RickC
I would like to add an "exec task" to call a native command(.net exe). The native command will take the xml and reformat to pdf.
The .net exe has two arguments: an input filename(xml) and an output filename(pdf).
How do I call the native command and pass the path to ${xmlfile} ?
I would also like the output(pdf) to be written to the workspace.
Here is an excerpt of the project's xml:
Code: Select all
The arguments shown here are only for test purposes. I'd like to replace them with references to files in the workspace. <exec label="Convert XML to PDF" executable="D:\Tools\myxml2pdf.exe" version="1.0" onError="continue">
<arg value="[b]D:\Tools\source\xml.xml[/b]" />
<arg value="[b]tempchu_output.pdf[/b]" />
</exec>
RickC