[Yanel-dev] adding some custom task to realms build.xml

Balz Schreier baszero at gmail.com
Fri Feb 13 14:38:04 EST 2015


Super Sach!!
Schöns Weekend 👍😊


> On 13.02.2015, at 18:25, simon <simon at 333.ch> wrote:
> 
> Hi all
> 
> It seems I found a solution.
> 
> within your realm build.xml you need to add this:
> 
> <target name="compile" depends="NAME_OF_YOUR_CUSTOM_TARGETS, yanel-realm.compile"/>
> 
> "compile" is the target you're overriding. when it depends on "yanel-realm.compile" it also will call the target within the imported (realms.building.xml) File.
> 
> HTH
> Simon
> 
>> Am 13.02.2015 um 13:21 schrieb simon:
>> Hi Michael
>> 
>>> Am 11.02.2015 um 22:50 schrieb Michael Wechner:
>>> this means you should have a closer look at
>>> 
>>> src/build/realms/realm.build.xml
>>> 
>>> and maybe we could introduce some target, which could be overwritten,
>>> similar like XSLT templates
>>> can be overwritten when using import (instead include). I am not sure
>>> whether this is possible with ant,
>> As i understand it, it is not possible.
>>> but maybe you can do some research on that. If that would be possible,
>>> then I would be happy to patch it
>>> accordingly.
>> A solution could be the use of the "as" attribute as described here:
>> http://ant.apache.org/manual/Tasks/import.html
>> Whereas this is not working with java1.6
>> see here:
>> http://stackoverflow.com/questions/12321027/import-does-not-support-the-as-attribute 
>> 
>> Hope we will find a solution for this.
>> 
>> Cheers
>> Simon
>>> 
>>> HTH
>>> 
>>> Michael
>>> 
>>>> Am 11.02.15 um 22:43 schrieb simon:
>>>> Hi Michael
>>>> 
>>>> Yes, you're right.
>>>> 
>>>> Cheers
>>>> Simon
>>>> 
>>>>> Am 11.02.2015 um 22:38 schrieb Michael Wechner:
>>>>> Hi Simon
>>>>> 
>>>>> I guess your build file is using the following import
>>>>> 
>>>>> <project name="my-realm" default="deploy-jar">
>>>>>    <import
>>>>> file="${yanel.source.home}/src/build/realms/realm.build.xml"/>
>>>>> </project>
>>>>> 
>>>>> 
>>>>> right?
>>>>> 
>>>>> Thanks
>>>>> 
>>>>> Michael
>>>>> 
>>>>>> Am 11.02.15 um 14:34 schrieb simon:
>>>>>> hi all
>>>>>> 
>>>>>> i added some custom task (minify css and js) to the build.xml of my
>>>>>> realm.
>>>>>> but i didn't find out how to make this task is called when building
>>>>>> yanel.
>>>>>> 
>>>>>> any help would be highly appreciated.
>>>>>> 
>>>>>> Cheers
>>>>>> Simon
> 
> 
> -- 
> TEIL3
> Vulkanstrasse 114
> 8048 Zürich
> 
> www.teil3.ch
> 
> -- 
> Yanel-development mailing list Yanel-development at wyona.com
> http://mx2.wyona.com/cgi-bin/mailman/listinfo/yanel-development


More information about the Yanel-development mailing list