I see... The documentation provided for that property confused me:
"When name conflicts occur, Castor will use the first listed conflict
resolution strategy to decide what to do."
Is there a way to set the conflict strategy through the command-line? I
use sourcegen as part of a build process and the fact that it is
interactive is causing problems.
- Kannan
Werner Guttmann wrote:
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