Ant Error: Could not create task or type of type: propertyfile
- From: "James Kimble" <jkimble@xxxxxxx>
- Date: 6 Apr 2005 19:16:02 -0700
I'm fighting a problem with ant compiling an application I adopted
from a previous developer. The odd thing is the exact same setup
works fine on windows and on Suse 9.2 but on Red Hat 9.0 I get the
error shown in my subject. The script is very simple:
-------------------------------------------------------------------
<property name="project.name" value="MyProject"/>
<property name="project.name.short" value="MyProject"/>
<property name="project.jar.file" value="build/myproject.jar"/>
<property name="project.version.file" location="."
value="version.properties"/>
<target name="prepare-version">
<tstamp>
<format property="build.date" pattern="MMM dd yyyy HH:mm:ss"/>
</tstamp>
<propertyfile file="${project.version.file}" comment="The build
number is incremented by Ant.">
<entry key="build.version.major" type="int" default="1"/>
<entry key="build.version.minor" type="int" default="22"/>
<entry key="build.number" type="int" default="0" operation="+"/>
<entry key="build.date" type="date" value="now" pattern="MMM dd
yyyy HH:mm:ss"/>
</propertyfile>
<property file="${project.version.file}"/>
<echo file="${project.src.folder}/myproject/Version.java">package
myproject;
~~~~
~~~~
------------------------- snip snip
--------------------------------------
The above script fails on line 12:
<propertyfile file="${project.version.file}" comment="The build
number is incremented by Ant.">
The file refered to in ${project.version.file} is "version.properties"
and
it is in the same directory as the build and project xml files. It's
permissions are set world rwx. What heck is causing this? I've played
with
ANT_HOME, the CLASSPATH, and I've run out of ideas.
Anyone have a guess??? Any help much appreciated...
James Kimble
.
- Follow-Ups:
- Prev by Date: Setting the Working directory in IBM's WSAD
- Next by Date: RTF parser component
- Previous by thread: Setting the Working directory in IBM's WSAD
- Next by thread: Re: Ant Error: Could not create task or type of type: propertyfile
- Index(es):
Relevant Pages
|
|