Sorry, I x-posted this in the interest of both audiences.

When I run my (cocoon) build.xml from the commandline everything works fine.
When I try to do this inside of eclipse I get the following error:

BuildException: C:\eclipse\workspace\xml-cocoon2\build.xml:1092:
IOException: java.io.FileNotFoundException:
C:\eclipse\build\cocoon\webapp\sitemap.xmap (The system cannot find the path
specified)

Here Ant is trying to locate sitemap.xmap in C:\eclipse\build\cocoon\webapp\
instead of: C:\eclipse\workspace\xml-cocoon2\build\cocoon\webapp\

Here is a snippet from the build.xml:

    <property name="tools.dir"      value="./tools"/>
    <property name="build.root"     value="./build"/>
    <property name="build.dir"      value="${build.root}/${name}"/>
    <property name="build.src"      value="${build.dir}/src"/>
    <property name="build.war"      value="${build.dir}/webapp"/>

  <!--
=================================================================== -->
  <!-- Prepares the webapp
            -->
  <!--
=================================================================== -->
  <target name="prepare-webapp" depends="copy-webapp">
      <!-- A task to change the xconf. It is used to add optional
components -->
      <taskdef name="xconf-tool" classname="XConfToolTask"
          classpath="${tools.dir}/anttasks"/>

      <!-- Invoke the XConfTool to add optional entries -->
      <xconf-tool directory="${build.src}"
                  extension="xmap"
                  configuration="${build.war}/sitemap.xmap"/>

This is the target and location where Ant aborts, but this is not the main
target.
I am doing a build webapp which is dependent on a couple of other targets
and also invokes the above.
Looks like the current directory pointer (.) got screwed up on the way and
therefore build.root is pointing to the wrong dir.
Why this only happens inside the eclipse IDE is smth that puzzles me..

Any comments are welcome,
Horst







---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>

Reply via email to