Saturday 15 February 2014

How to capture the return value of java from ant build file -



How to capture the return value of java from ant build file -

i calling java method ant build file. want capture output of method i.e. homecoming value ant variable/property.

the ant java task has several attributes create property :

resultproperty (= rc) : name of property in homecoming code of command should stored. of involvement if failonerror=false , if fork=true. outputproperty (= stdout) : name of property in output of command should stored. unless error stream redirected separate file or stream, property include error output. errorproperty (= stderr) : name of property in standard error of command should stored.

core ant has properties no variables. property 1 time set immutable design. there ways overcome restrictions, f.e. several ant addons or ant script task access ant api. rule of thumb => overwriting properties should used special cases.

ant

No comments:

Post a Comment