[Yanel-dev] Setting of YANEL_HOME

Michael Wechner michael.wechner at wyona.com
Fri Oct 3 16:07:34 CEST 2008


Alec Bickerton schrieb:
> Michael Wechner wrote:
>   
>> simon litwan schrieb:
>>     
>>> Michael Wechner schrieb:
>>>       
>>>> Hi
>>>>
>>>> I have added the check for YANEL_HOME within build.sh, whereas it's
>>>> optional and one can continue the build by pressing enter/return key.
>>>>
>>>> I assume that Hudson will fail now, because YANEL_HOME is not set,
>>>> right? For this I see two possibilities, either
>>>> set YANEL_HOME also within Hudson and make this check somehow
>>>> configurable.
>>>>         
>>> i rather would solve this with an ant property.
>>>       
>> ok. Can you describe it a bit more detailed?
>>     
>
> If I understand correctly. Your suggesting we each create in our home
> directories a property file.
>   

you mean for example

/home/michi/.ant-global.properties

and referencing it like

<property file="${user.home}/.ant-global.properties"/>

right?

Sounds good to me. Will try to change it.

Thanks

Michael

> In this file you would have all your local settings
> e.g.
>
> yanel.home=/home/alec/code/yanel_trunk
> tomcat.home=/opt/tomcat/
>
> Etc...
>
> Then the build.sh first tries to read these properties using the ant
> variable ${user.home}.
>
> Immediately after it will read a default properties file and set
> whatever was not included.
>
> I'm quite familiar with this approach and find it works exceptionally well.
>
> The same file can be read by a realm specific build.xml file so that we
> would only need to call ant in the realms directory to build and  then
> link to yanel/realms.
>
> Alec,
> _______________________________________________
> Yanel-development mailing list
> Yanel-development at wyona.com
> http://lists.wyona.org/cgi-bin/mailman/listinfo/yanel-development
>   



More information about the Yanel-development mailing list