Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 1.1
-
Fix Version/s: None
-
Component/s: XML code generator
-
Labels:None
-
Number of attachments :
Description
Following call to ant task castor-srcgen:
<castor-srcgen
file="${basedir}/${schema}"
bindingfile="${basedir}/${binding}"
todir="${basedir}/${jaxbsrc}"
package="${base_package}"
types="j2"
properties="${basedir}/binding.generation.properties"
verbose="true"
warnings="true"
/>
In my binding.generation.properties, I want to overwrite the name conflict strategy using
org.exolab.castor.builder.nameConflictStrategies=org.exolab.castor.builder.conflictresolution.InformViaLogClassNameCRStrategy
This setting does not have any effect, I always get the default strategy where it interactively asks me "Continue anyway [not recommended] (y|n|?)".
Other settings in the properties file like "org.exolab.castor.builder.javaVersion=5.0" have an effect, so the property file is read.
Matthias, a few clarifications:
a) You'll need to leave the 'org.exolab.castor.builder.nameConflictStrategies' as is in castorbuilder.properties. This property enlists the conflict strategies available, is is not meant to be a means of selecting one or another.
b) SourceGenerator.java has already a new setter that allows one to select one of the available strategies
c) The Ant task for XML code generation still needs to be modified to allow configuration of the strategy to be used.