Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ANT help required

 
Joe Harry
Ranch Hand
Posts: 10091
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Guys,

I#m trying out a small build script using ANT and the script is as below,



I get the following error even though my src folder is available?

 
Ulf Dittmer
Rancher
Pie
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The error message is rather specific and to the point, is it not? There's a typo in the "src" property.
 
Joe Harry
Ranch Hand
Posts: 10091
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, I changed it to location="src" insted of location="D/Excel_To_PDF_Workspace/HTMLToXMLConverter/src/" and it worked!
 
Ulf Dittmer
Rancher
Pie
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, it's much better to use paths that are relative to the current working directory. That way there are no problems if the directory is moved later on.
 
Joe Harry
Ranch Hand
Posts: 10091
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
By the way, I have hit another problem...this time with respect to the Servlet jar files...I have them under lib directory of my web application but even after that I get the error as listed below:

My build.xml



The error that I get:


Is it still not able to get to my servlet.jar that I have under WebContent/WEB-INF/lib???
 
Joe Harry
Ranch Hand
Posts: 10091
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have to mention which jar files and I did that. Got it finally!
 
Joe Harry
Ranch Hand
Posts: 10091
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
location="WebContent/WEB-INF/lib/servlet.jar"
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic