On 28 Aug 2012, at 19:24, Steve Lee wrote:

> To answer my own question the following works in
> walkthrough/template_build.xml line 132
> 
>    <ant antfile="${wookie.template.dir}/build.xml"
> 
> though i believe this would be the equivalent of
> 
>    <ant antfile="../build.xml"
> 
> I guess things got moved around at some point?

Not sure... Ross committed some changes to templates a while back that may have 
affected it?

> 
> Do you want a patch?

Yes please :)

> 
> Steve Lee
> Programme Leader (Open Accessibility)
> OpenDirective http://opendirective.com
> 
> 
> On 28 August 2012 19:09, Steve Lee <[email protected]> wrote:
>> 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