Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Eclipse + Ant + Consoles

 
Carey Brown
Ranch Hand
Posts: 1458
16
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm using the latest Juno version of Eclipse with a large project with multiple build.xml's kicked off by a parent build.xml. Unfortunately as each build is launched in turn it overwrites the contents in the console window so that any errors appear for a second but then are gone. Ideally I would like the output of the nested builds to just append to one another, but if that's not possible, I'd like each build to appear in its own console window so that I can go back to each console if there's an error.
Or, have the build process halt when it hits any error.
Thanks, Carey
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't know if you can control that in Eclipse but you could do either of the following:

a) Run the build from a command prompt (not from within Eclipse)

b) Set up your build scripts to create build logs. See http://ant.apache.org/manual/Tasks/recorder.html
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic