How can ant pickup java result and use as property value? -
I search for many places which is still not able to find what I'm looking for. Not sure if this is possible or not, while the ant script Java code is going on, the result should be alive in GVM, how do I copy it, not Java? Because I want to use the result again in the second part of the ant script.
Say, I have followed the Java method and I have
string result = "sebest string"; Return result;
Is there no way in the anti script, while the same JVM
& Lt; Property = "food" value = $ {result} & gt; & Lt; / Java & gt; & Lt; Jmeter jmeterhome = "Homepath" testplan = "name .jmx" resultlog = "name.html" & gt; & Lt; Jvmarg value = "- Djavax.net.ssl.keyStore = Pathtoos /> & lt; jvmarg value =" - Djavax.net.ssl.keyStorePassword = $ {food} / & gt; & Lt; / JMeter & gt; & Lt; / Target & gt;
Thanks!
You can set a property in your system, Java program, and the ant will capture it, but You must ensure that you fork your & lt; Java & gt;
do not work.
Another possibility is to output the value, and outputproperty
parameter & lt; Java & gt;
Capture that value in the job. You have already said that you can not use the return value.
Comments
Post a Comment