-
Notifications
You must be signed in to change notification settings - Fork 16
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
Dump post processed XML file #22
Conversation
I think it would be better to allow the writing of the xml in addition to running Marlin.
Would run PreParsed.xml and also write out the PostParsed.xml file.
|
…ew file. Many methods adapted to make parameter/constant replacement persistent in the XML tree
I believe what we discussed is:
|
I added a dry-run option -n Marlin -p postSteering.xml steering.xml Printout the marlin XML and exit : Marlin -n postSteering.xml steering.xml @gaede : Is this OK for you in this way ? I could change it to put this functionnality in a xml parameter in the global section. |
…ption. Output file name grabbed from steering file itself in the 'global section'
The output steering file name is no longer taken from command line args but from the input steering file itself by the key "OutputSteeringFile". This has the following consequences :
I added this key (OutputSteeringFile) to the steering file of the ctest that is testing the include mechanism. It works as expected. Example : # take the output file name from steering file and run Marlin as usual
Marlin steeringFile.xml
# same but exit after writing the output steering file
Marlin -n steeringFile.xml
# change the output file name
Marlin steeringFile.xml --global.OutputSteeringFile=myParsedSteeringFile.xml |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please put your documentation/example in RELEASENOTES.
I'm done with release notes |
Do not merge yet. There are missing features in this PR that I discussed with Frank. |
…ng a ParseException
I added :
For this latest point, it means that command line parameter are replaced in the constant element in the XML tree but not constant evaluation. As a consequence, the output parsed file will contain runtime argument from the command line while running in dry-run mode but will re-evaluate again the constants and processor parameters in the next parsing. I don't know if I'm clear ... |
BEGINRELEASENOTES
ENDRELEASENOTES