ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nick De Graeve" <NDeGra...@FPC.BE>
Subject Ant complains about non-existing dir that DOES exist
Date Tue, 04 Oct 2005 07:47:20 GMT
I have a build file /home/nokeos/testing/cruise/code/test-build.xml:
...
<property file="nokeos-build.properties" />
...
<target name="testing">
  <ant dir="${plugin.component.browser.dir}" inheritrefs="true"></ant>
</target>
...

with a property file /home/nokeos/testing/cruise/code/build.properties:
...
plugin.component.browser.dir=${plugin.dir}/com.fpc.nokeos.component.browser 
plugin.dir=${basedir}/plugins
...

When I try to run the target I get:

nokeos@js002:~/testing/cruise/checkout/code$ ant -v -f test-build.xml testing
Apache Ant version 1.6.2 compiled on July 16 2004
Buildfile: test-build.xml
Detected Java version: 1.5 in: /var/local/jdk1.5.0_04/jre
Detected OS: Linux
parsing buildfile /home/nokeos/testing/cruise/checkout/code/test-build.xml with URI = file:///home/nokeos/testing/cruise/checkout/code/test-build.xml
Project base dir set to: /home/nokeos/testing/cruise/checkout/code
 [property] Loading /home/nokeos/testing/cruise/checkout/code/nokeos-build.properties
dropping /home/nokeos/testing/cruise/checkout/code/bin-test from path as it doesn't exist
dropping /home/nokeos/testing/cruise/checkout/code/plugins/bin-test from path as it doesn't
exist
Build sequence for target `testing' is [testing]
Complete build sequence is [testing, undeploy, generate-javadoc, run-checkstyle, compile-src,
compile-test, deploy, package, create-db, compile, run-clover, run-xdoclet, run-hibernate,
clean, default, run-junit, init-plugins, ]

testing:

BUILD FAILED
/home/nokeos/testing/cruise/checkout/code/test-build.xml:290: Basedir /home/nokeos/testing/cruise/checkout/code/plugins/com.fpc.nokeos.component.browser
 does not exist
        at org.apache.tools.ant.Project.setBaseDir(Project.java:736)
        at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:302)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
        at org.apache.tools.ant.Task.perform(Task.java:364)
        at org.apache.tools.ant.Target.execute(Target.java:341)
        at org.apache.tools.ant.Target.performTasks(Target.java:369)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1062)
        at org.apache.tools.ant.Main.runBuild(Main.java:673)
        at org.apache.tools.ant.Main.startAnt(Main.java:188)
        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:196)
        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:55)

However, when I check it it really does exist:

nokeos@js002:~/testing/cruise/checkout/code$ ls -l /home/nokeos/testing/cruise/checkout/code/plugins/com.fpc.nokeos.component.browser/
total 28
drwxr-xr-x  2 nokeos developers 4096 Oct  4 08:50 CVS
-rw-r--r--  1 nokeos developers  418 Oct  4 08:20 build.properties
-rw-r--r--  1 nokeos developers 3941 Oct  4 08:50 build.xml
drwxr-xr-x  3 nokeos developers 4096 Sep 29 10:03 lib
-rw-r--r--  1 nokeos developers 3058 Sep 29 10:03 nokeos-plugin.xml
drwxr-xr-x  3 nokeos developers 4096 Sep 26 15:28 resource
drwxr-xr-x  4 nokeos developers 4096 Sep 26 15:28 src

I thought maybe I made some spelling mistake, but I copied and pasted the paths and names
in the different files to be sure I didn't.

What am I doing wrong here? It's probably something silly but I just don't see it.

Nick

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message