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

simon simon at 333.ch
Sun Feb 15 15:07:03 EST 2015


No changes needed at the core.
Happy vacation :-)

Cheers
Simon

Am 15.02.2015 um 20:52 schrieb Michael Wechner:
> excellent :-) IIUC we do not need to change anything at the "core" to
> make it work, right?
>
> (I am still on vacation ;-)
>
> Thanks
>
> Michael
>
> Am 13.02.15 um 18:25 schrieb simon:
>> 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



More information about the Yanel-development mailing list