Forum Discussion
sergeykh
Occasional Contributor
What do you mean by jvm arguments?
I know that if I pass project level properties to be set from the command line, they are initiated after the project script is executed.
Can you please share an example so I can test if this behaves diffrently.
I would assume that there is some indication who is executin the project without something spesific, but seems that this is not the case.
nmrao
6 years agoChampion Level 3
I mean system arugument such as "-Dkey=value"
testrunner.bas <options to execute the project> -DIS_INVOKED_COMMANDLINE=true
In Load script
if ('true' == System.getProperty('IS_INVOKED_COMMANDLINE')) { //You business logic here }
- sergeykh6 years agoOccasional Contributor
Thanks, this seems to work and this properties are set before the project once.
One more thing. As I`m calling extenal jar from the project load script and passing both possible variablse in this context which are project and log. Is it possible to get the system properties from the project object?
Related Content
- 6 years ago
Recent Discussions
- 4 days ago
- 9 days ago
xml to soap
Solved9 days ago