If you see this error while running ant build , then follow the listed 3 steps
BUILD FAILED ..../build.xml:234: Could not create task or type of type: propertyfile.
Ant could not find the task or a class this task relies upon.
Solution (1,2 or 3 solves the problem):
1) Check the Ant version
# which ant
# ant -version
Make sure you have atleast version > 1.6.x as its not supported in older ANT versions.
2) Make sure you have this jar "ant-nodeps.jar" in $ANT_HOME/lib. This is the right jar for PropertyFile.class
3) Make sure that you DON'T have this file /etc/ant.conf. If it exists, then this points to the jpackage version of ant . Just remove this file & ther's the end of the story.
No comments:
Post a Comment