This week's giveaway is in the Spring forum.
We're giving away four copies of Learn Spring Security (video course) and have Eugen Paraschiv on-line!
See this thread for details.
Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Scratching my head over Eclipse / Ant build issue

 
Terry Chambers
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi - I'm having trouble with my Eclipse 3.3 IDE.

I have an ANT build file that is very simple yet it is not working.



When I run the build using RUN AS/ANT BUILD, the process says the BUILD was successful but directories, in the project, are not deleted not created. It is as if nothing is actually happening but there are no errors.

I am using Vista and my Eclipse Workspace directory is under my user directory.

I have searched the entire computer for the WAR file to see if maybe it is creating it somewhere else but it is not found.

I have no idea what is going on. Any thoughts?

Thanks
Terry
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34071
331
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Terry,
What other output is the build giving? Does it say it compiled for example?

You might try adding

after the war task to make sure Eclipse is completing execution. I've noticed a few errors just result in the build stopping in Eclipse.

You could also try adding the verbose attribute to the copy task for more info as to what is going on. (or the -v flag to ant itself)
 
Rob Spoor
Sheriff
Pie
Posts: 20492
54
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving to our Ant forum.
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you tried running the build from the command line? Sometimes Eclipse does strange things when running ant build scripts.
 
Terry Chambers
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I went to a Command prompt and into the directory where the build.xml is and just typed "ant". I received back "BUILD Successful" with a time of 0 seconds. Nothing was created or deleted.

Should I uninstall Eclipse and reinstall it?
 
Mark E Hansen
Ranch Hand
Posts: 650
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you need to provide a default attribute to the project tag?
 
Terry Chambers
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you need to provide a default attribute to the project tag?


Yes! That was all that was missing.

Thanks!
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
just typed "ant"

You should have typed:

ant build
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic