• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Rob Spoor
  • Devaka Cooray
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Jj Roberts
  • Al Hobbs
  • Piet Souris

Ant script not finding my build.properties file

 
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi, I have my ant Script, I am working through the spring tutorial.

The build.properties and build.xml are on the same level in my springapp package, but anytime it tries to read a value from the build.properties file, it comes up with any error.

Here is my ant Script

xml version="1.0"?

and here is the build.properties

appserver.home=${user.home}/apache-tomcat-6.0.18

appserver.lib=${appserver.home}/lib

deploy.path=${appserver.home}/lib

tomcat.manager.url=http://localhost:8080/manager
tomcat.manager.username=tomcat
tomcat.manager.password=s3cret


When I run ant, i get this error message

BUILD FAILED
C:\Documents and Settings\se1025\workspace\springapp\build.xml:87: C:\Documents
and Settings\se1025\workspace\springapp\${application.lib} not found.



i get this error when I run ant list if I substitue ${appserver.lib}with the value C:/apache-tomcat-6.0.18. It builds, then I run ant list and get this


list:


[ August 27, 2008: Message edited by: Sege Stephen ]
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Try running ant with the -v option, this might tell you a little more about what is going on.
[ August 27, 2008: Message edited by: Peter Johnson ]
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic