• 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
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

ant fileproperties optional task problem

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello. I am trying to get the Ant fileproperties task to work, but I keep getting the error "Could not create task or type of type: propertyfile. Ant could not find the task or a class this task relies upon." I know it's something wrong with my classpath, but can't figure it out. Here's my configuration:

JDK 1.5.0_07 installed to /usr/local/jdk1.5.0_07
Ant 1.6.5 installed to usr/local/apache-ant-1.6.5 $ANT_HOME=/usr/local/apache-ant-1.6.5
$JAVA_HOME=/usr/local/jdk1.5.0_07
$PATH=[...]:/usr/local/apache-ant-1.6.5/bin:/usr/local/jdk1.5.0_07/bin

build.xml:
<?xml version="1.0"?>
<project name="nat" default="build">
<target name="build">
<propertyfile file="my.properties" comment="My properties">
<entry key="akey" value="avalue"/>
</propertyfile>
</target>
</project>

I've tried adding $ANT_HOME/lib to my CLASSPATH, but it didn't help. This is all on SUSE 10.1. The optional task lib ant-nodeps.jar (which I think is the right jar for the fileproperties task) is present in $ANT_HOME/lib.

Any suggestions anyone might have would be greatly appreciated!
Thanks,
Ed
 
Doody calls. I would really rather that it didn't. Comfort me wise and sterile 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
    Bookmark Topic Watch Topic
  • New Topic