I have a TestApp project located under trunk/ thusly:
trunk/
testapps/
TestApp/
TestApp is actually a NetBeans project that has a NB-generated Ant build file.
Given this buildfile fragment
desc "TestApp"
define "TestApp" do
task :buildme do
Java.classpath << artifact("org.apache.ant:ant-nodeps:jar:1.8.0")
Java.classpath << artifact("org.apache.ant:ant-junit:jar:1.8.0")
Java.org.apache.tools.ant.Main.main(['-f', _("build.xml"), 'default'])
end
compile :buildme
end
and this set of commands
$ pwd
trunk
$ cd testapps/TestApp
$ buildr clean package
I find the build of TestApp succeeds.
However, if I cd ../.. to trunk/ and execute
$ buildr clean package
I get
BUILD FAILED
/Users/petrovic/f/trunk/testapps/TestApp/nbproject/build-impl.xml:501: Problem: failed to
create task or type propertyfile
Cause: the class org.apache.tools.ant.taskdefs.optional.PropertyFile was not found.
This looks like one of Ant's optional components.
Action: Check that the appropriate optional JAR exists in
-ANT_HOME/lib
-the IDE Ant configuration dialogs
Do not panic, this is a common problem.
The commonest cause is a missing JAR.
This is not a bug; it is a configuration problem
where org.apache.tools.ant.taskdefs.optional.PropertyFile is in ant-nodeps.jar.
Any idea why the build succeeds in the TestApp directory, but not two levels up in the trunk?
--
Mark Petrovic
|