You are not meant to be changing the 

org.exolab.castor.builder.nameConflictStrategies

property, as it simply enlists all strategies known to Castor. Instead, please 
use 

SourceGenerator. setNameConflictStrategy(String)

To set your preferred name conflict strategy, using e.g. " informViaLog" for 
your preferred strategy.

Regards
Werner

> -----Ursprüngliche Nachricht-----
> Von: Kannan Goundan [mailto:[EMAIL PROTECTED]
> Gesendet: Mittwoch, 14. März 2007 02:42
> An: [email protected]
> Betreff: [castor-user] Unable to select different nameConflictStrategy
> (castorbuilder.properties)
> 
> I'm using Castor-1.1 XML and source generator.    I'm having problems
> getting the source generator to use the "InformViaLogClassNameCRStrategy".
> 
> The value for "nameConflictStrategies" in the default
> "castorbuilder.properties" looks liks:
> 
> org.exolab.castor.builder.nameConflictStrategies=\
> 
> org.exolab.castor.builder.conflictresolution.WarningViaDialogClassNameCRSt
> rategy,\
> 
> 
> org.exolab.castor.builder.conflictresolution.InformViaLogClassNameCRStrate
> gy
> 
> 
> When I run sourcegen, Castor asks about conflicts and expects a Y/N
> response.  I tried switching the order of the nameConflictStrategies
> list and I get the same behavior from sourcegen.
> 
> If nameConflictStrategies only contains the InformViaLog entry, then
> Castor gives me the following error:
> 
> SEVERE: The ClassNameConflictResolutionStrategy 'warnViaConsoleDialog'
> does not exist in the Castor builder properties file and is therefore
> not supported.
> 
> What am I doing wrong here?
> 
> - Kannan
> 
> ---------------------------------------------------------------------
> To unsubscribe from this list please visit:
> 
>     http://xircles.codehaus.org/manage_email


---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to