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

Michael Wechner michael.wechner at wyona.com
Mon Feb 25 22:31:44 CET 2008


simon litwan wrote:

>
>>>> +    <!-- TODO: Figure out the directory where the resource class 
>>>> is located in -->
>>>> +<!--
>>>> +    <copy file="${resource.home.dir}/resource.xml" 
>>>> todir="${resource.classes.dir}/TODO"/>
>>>> +-->
>>>>     <mkdir dir="${resource.lib.dir}"/>
>>>>
>>>> basically one needs to "analyze" the class name.
>>>>
>>>> Any idea how this could be done with ant?
>>>
>>>
>>> ant-contrib is your friend. something like this:
>>> <propertyregex property="new.resource.java.class.fs.path"
>>>              input="${new.resource.java.class.package}"
>>>              regexp="[.]"
>>>              replace="/"
>>>              global="true"
>>>              casesensitive="false" />
>>
>>
>>
>> cool :-) Do you want to provide a patch ;-)
>
> how do i actually get the class name?


from the resource.xml or when you create/copy the build.xml and the user 
types in the package name.

I think it would be good if the user would see a Message:

IMPORTANT: Please choose a unique package name in order to avoid conflicts

or something like that

HTH

Michi

>
> simon
>
>>
>> Thanks
>>
>> Michi
>>
>>>
>>> simon
>>>
>>>>
>>>> Thanks
>>>>
>>>> Michi
>>>>
>>>>>
>>>>>> is there some documentation?
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> http://yanel.wyona.org/en/documentation/resources/using-a-resource-type.html 
>>>>>
>>>>>
>>>>> is this clarifying?
>>>>>
>>>>> Cheers
>>>>>
>>>>> Michi
>>>>>
>>>>>>
>>>>>> <resource-type package="org.wyona.yanel.impl.resources.redirect" 
>>>>>> src="/SOME_ABSOLUTE_PATH/contributions/resources/redirect/" 
>>>>>> compile="true"/>
>>>>>>
>>>>>> cheers
>>>>>> simon
>>>>>> _______________________________________________
>>>>>> Yanel-development mailing list
>>>>>> Yanel-development at wyona.com
>>>>>> http://lists.wyona.org/cgi-bin/mailman/listinfo/yanel-development
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>
>>> _______________________________________________
>>> Yanel-development mailing list
>>> Yanel-development at wyona.com
>>> http://lists.wyona.org/cgi-bin/mailman/listinfo/yanel-development
>>
>>
>>
>>
>
> _______________________________________________
> Yanel-development mailing list
> Yanel-development at wyona.com
> http://lists.wyona.org/cgi-bin/mailman/listinfo/yanel-development



-- 
Michael Wechner
Wyona      -   Open Source Content Management - Yanel, Yulup
http://www.wyona.com
michael.wechner at wyona.com, michi at apache.org
+41 44 272 91 61



More information about the Yanel-development mailing list