[Yanel-dev] resource-type.xml and package

simon litwan simon.litwan at wyona.com
Tue Feb 26 09:43:16 CET 2008


>
>
> <property name="resource.resource.xml" 
> value="${resource.home.dir}/resource.xml"/>
>    <xmlproperty prefix="resource.resource.xml" 
> file="${resource.resource.xml}"/>
>
> simon
>> with this you'll get the files copied to right place. it's not a 
>> beaty but it works. maybe someone knows a better way.
>>
>>    <propertyregex property="new.resource.java.classname.fs.path"
>>             input="${resource.resource.xml.resource(class)}"
>>             regexp="[.]"
>>             replace="/"
>>             global="true"
>>             casesensitive="false" />
>>             <echo>${new.resource.java.classname.fs.path}</echo>
>>    <propertyregex property="new.resource.java.class.fs.path"
>>             input="${new.resource.java.classname.fs.path}"
>>             regexp="\/[^/]*$"
>>             replace=""
>>             global="true"
>>             casesensitive="false" />
>>             
>> <echo>hilfes${resource.classes.dir}/${new.resource.java.class.fs.path}</echo> 
>>
>>    <copy 
>> todir="${resource.classes.dir}/${new.resource.java.class.fs.path}">
>>      <fileset dir="${resource.home.dir}" 
>> includes="resource**,htdocs/**,yanel-htdocs/**"/>
>>    </copy>         WDOT?
i've added a bug 
http://bugzilla.wyona.com/cgi-bin/bugzilla/show_bug.cgi?id=6018 and 
attached a patch which adds this functionality to the 
from-scratch-resource-template build.xml.

HTH

simon


More information about the Yanel-development mailing list