[Yanel-dev] exception handling in Ant tasks

Michael Wechner michael.wechner at wyona.com
Wed Apr 14 15:50:41 CEST 2010


Guillaume Déflache wrote:
>>>
>>> I already gave an example:
>>> make your realm's resource-types.xml not well-formed => the build 
>>> will not break
>>
>> it didn't sound like this was the only case/example
>
> Another case I just stumbled upon is when the realm configuration file 
> is not found:

ok, so I will also implement this case


Cheers

Michi




>> [merge-resource-types-configs] Realm context config: Realm context 
>> configuration:   ID = zwischengas,   Mount point = /,   Root flag = 
>> true,   Unresolved realm config file = 
>> /home/guillaume/zwischengas.VCWC/distribution/build/wyona_zwischengas_dist-r48758/zwischengas-realm_r48758/realm.xml 
>>
>> [merge-resource-types-configs] 792  2010-04-14 14:56:11,903 [main] 
>> ERROR 
>> org.wyona.yanel.ant.MergeResourceTypesConfigsTask.mergeResourceTypesOfRealm():?  
>> - Neither file nor directory: 
>> /home/guillaume/zwischengas.VCWC/distribution/build/wyona_zwischengas_dist-r48758/zwischengas-realm_r48758/realm.xml 
>>
>>
>> init:
> [Ant continues to build after that.]
>
>
>>> Sadly you cannot provide an example log since AFAICS the errors do 
>>> not show up on the console, at least not at the log level I usually 
>>> run Ant (with ANT_ARGS=-q).
>>
>> maybe you should consider running without -q
>>
>>> Where are the log4j logs supposed to be written to in this case?
>>
>> I think it's standard output/command line
>
> You were right, see above.
>
>
>>> I am not sure which log4j properties file gets read here.
>>
>> I am not sure either and would have to check
> [...]



More information about the Yanel-development mailing list