File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Scratching my head over Eclipse / Ant build issue

 
Terry Chambers
Greenhorn
Posts: 17
  • 0
  • 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: 33691
316
Eclipse IDE Java VI Editor
  • 0
  • 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: 20372
44
Chrome Eclipse IDE Java Windows
  • 0
  • 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
  • 0
  • 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
  • 0
  • 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
  • 0
  • 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
  • 0
  • 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
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
just typed "ant"

You should have typed:

ant build
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic