I'm trying to build a widget built on the walkthrough widget template
but have a build error I cannot get to the bottom of. Basically the
template_build.xml
 appears to be looking in the wrong place for parent tamplates

I have created a directory structure as follows (based on the template
instructions)

+ ~/projects/wookie
+ ~/projects/widgets
    build.xml
    + ipo2
       widget.properties

The build output is

....
_generate_from_parent_templates:
     [echo] +------------------------------------------
     [echo] |  Generating from parent templates for walkthrough
     [echo] +------------------------------------------

BUILD FAILED
C:\Users\Steve\projects\widgets\build.xml:42: The following error
occurred while executing this line:
C:\Users\Steve\projects\wookie\widgets\templates\build.xml:51: The
following error occurred while executing this line:
C:\Users\Steve\projects\wookie\widgets\templates\build.xml:114: The
following error occurred while executing this line:
C:\Users\Steve\projects\wookie\widgets\templates\walkthrough\template_build.xml:133:
The following error occurred while executing this line:
java.io.FileNotFoundException: C:\Users\Steve\projects\build.xml (The
system cannot find the file specified)
....


And the build.xml section in question is

<!-- Build from base template -->
    <ant antfile="../../build.xml"
         target="_generate_widget">
      <property name="template.name" value="base"/>
      <property name="copyWidgetFiles" value="false"/>
    </ant>


It's the ../../build.xml that seems to be the problem
I wonder if the problem is one of assuming the current directory has
been changed to where the templates are, and it has not?

Steve Lee
Programme Leader (Open Accessibility)
OpenDirective http://opendirective.com

Reply via email to