permaculture playing cards
The moose likes Ant, Maven and Other Build Tools and the fly likes ANT help required Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Elasticsearch in Action this week in the Big Data forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "ANT help required" Watch "ANT help required" New topic
Author

ANT help required

Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9749
    
    2

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?



SCJP 1.4, SCWCD 1.4 - Hints for you, Certified Scrum Master
Did a rm -R / to find out that I lost my entire Linux installation!
Ulf Dittmer
Rancher

Joined: Mar 22, 2005
Posts: 42954
    
  73
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

Joined: Sep 26, 2006
Posts: 9749
    
    2

Yes, I changed it to location="src" insted of location="D/Excel_To_PDF_Workspace/HTMLToXMLConverter/src/" and it worked!
Ulf Dittmer
Rancher

Joined: Mar 22, 2005
Posts: 42954
    
  73
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

Joined: Sep 26, 2006
Posts: 9749
    
    2

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

Joined: Sep 26, 2006
Posts: 9749
    
    2

I have to mention which jar files and I did that. Got it finally!
Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9749
    
    2

location="WebContent/WEB-INF/lib/servlet.jar"
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: ANT help required