This week's book giveaways are in the Jython/Python and Object-Oriented programming forums.
We're giving away four copies each of Machine Learning for Business: Using Amazon SageMaker and Jupyter and Object Design Style Guide and have the authors on-line!
See this thread and this one for details.
Win a copy of Machine Learning for Business: Using Amazon SageMaker and JupyterE this week in the Jython/Python forum
or Object Design Style Guide in the Object-Oriented programming forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Paul Clapham
  • Jeanne Boyarsky
  • Knute Snortum
Sheriffs:
  • Liutauras Vilda
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Joe Ess
  • salvin francis
  • fred rosenberger

errors generated when running Ant build file in Eclipse

 
Ranch Hand
Posts: 387
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to complete a tutorial on ANT. I have created a project and the project calls for creating the WAR file using ANT. I am trying to to implement this in my dynamic web project in Eclipse and all my JAR files sit on the server and NOT in the lib directory of WEB-INF. I made a reference to this in my BUILD.XML file but I'm getting errors.

Here is my BUILD.XML file which I think is pretty simplistic:



The checked (selected) targets to execute in the TARGETS tab of the Edit Configuration dialog box in Eclipse are:

init
compile
war

Here are the errors that is being generated when I right-click the build.xml file and RUN AS ANT BUILD:



Being new to ANT, I'm not sure what I'm doing wrong. Any help/direction would be appreciated.

Thanks.
 
Melinda Savoy
Ranch Hand
Posts: 387
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I just got my problem resolved, I think because I was able to run a successful build with a generated WAR file.

I added the following to the compile which I had missed:



Thanks anyway.
 
if you think brussel sprouts are yummy, you should try any other food. And this tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!