I’m calling java (.jar) from batch. These java inturn calls ANT targets, where there are some echo messages. I’ve used @echo off in the first line of my batch file. But still The messages of echo (from ant targets) are getting printed.
Please help me to make the echo completely disabled.
Thanks,
Chandra
My batch file contents:
@echo off
SET HOME="%CD%"
SET CLASSPATH=%HOME%
SET CLASSPATH=%CLASSPATH%;%HOME%\lib\ant\activation.jar;%HOME%\lib\ant\ant.jar;%HOME%\lib\ant\ant-launcher.jar
SET CLASSPATH=%CLASSPATH%;%HOME%\lib\ant-ext\ant-contrib-1.0b3.jar;%HOME%\lib\ant-ext\antcount.jar
SET CLASSPATH=%CLASSPATH%;%HOME%\lib\utilities.jar
SET CLASSPATH=%CLASSPATH%;%HOME%\lib\AbsoluteLayout.jar;
SET CLASSPATH=%CLASSPATH%;%HOME%\dist\TestGUI.jar;
java -cp %CLASSPATH% TestGUI %HOME%
@echo offdoesn’t have to do anything with Ant’s<echo/>.Perhaps you could try with
ant -f yourbuildfile.xml -quietor justant -quietif your build file is calledbuild.xml.