Dustin Jensen
Dustin Jensen

Reputation: 475

Ant -e just for the java task

So I know you can pass -e to ant and you won't get the [javac] type tags when ant runs, however I don't want to remove all the tags from the different running portions, just the Java task portion. Is there an attribute I can set just for the java task?

Thanks in advance.

Upvotes: 1

Views: 226

Answers (2)

Adam Eberlin
Adam Eberlin

Reputation: 14205

You can toss this at the top of your <target> block to enable EmacsMode for a single target.

<script language="javascript">
  var logger = project.getBuildListeners().firstElement();
  logger.setEmacsMode(true);
</script>

Upvotes: 0

Alex B
Alex B

Reputation: 24946

You would need to write a custom logger that respects the emacs mode for some targets but not others. That logger can then be passed to ant via -logger. See the ant documentation on loggers.

Upvotes: 2

Related Questions