how to set the logger while calling ant target from java how to set the logger while calling ant target from java shell shell

how to set the logger while calling ant target from java


You have to add your Logger to the Project with addBuildListener, ant provides a few implementations which also implement BuildLogger

so

project.addBuildListener(new DefaultLogger());
or whatever your logger jave to be (as long as it implements BuildListener) should do the trick