Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[platform-ant-dev] Ant Output capture.

Hi All,

I am trying to execute ant on Clicking a Custom Menu . I  have written the
following snippet.
Now I need to capture the output of the ant execution into a StringBuffer.
Can anybody help?

			String ANT_RUNNER_ARGUMENTS = "-Dmessage=Building -verbose";
			AntRunner l_objRunner = new AntRunner();
			l_objRunner.setBuildFileLocation(l_strBuildFile);
			l_objRunner.setArguments(ANT_RUNNER_ARGUMENTS);
			try{
				l_objRunner.run();
			}catch(Exception e){
			}

Regards,
Vijay.




Back to the top