By default, you cannot. The output task prefix is ββcontrolled by the Ant logging mechanism, not the java task itself, so there is no way to change the use of the java task to remove this output.
The only way is to write your own BuildLogger to configure build event messages, and then instruct Ant to use this custom logger instead of DefaultLogger , which uses Ant by default. See https://ant.apache.org/manual/listeners.html (the link contains a pointer to a record of your own listeners and registrars).
If you really intend to do this, and not just ask about it for curiosity, then here is a snippet taken from DefaultLogger that indicates how the assembly event message is logged with the task name:
public void messageLogged(BuildEvent event) { int priority = event.getPriority();
source share