Kurt,

Kurt Sorge wrote:
> 
> 
> 
> ----- Original Message ----
>> From: Werner Guttmann <[EMAIL PROTECTED]>
>> To: [email protected]
>> Sent: Tuesday, November 4, 2008 1:46:19 PM
>> Subject: Re: [castor-user] Problems generating schemas with includes
>>
>> Kurt
>>
>> Kurt Sorge wrote:
>>> Hi Werner,
>>>
>>>
>>>
>>> ----- Original Message ----
>>>>>>>>> I am trying to generate my source from a schema that
>>>>>>>>> includes another schema using . The problem is that the
>>>>>>>>> original schema is getting generated, then the include
>>>>>>>>> statement is triggering the schema to get generated
>>>>>>>>> again.
>>>>>>>> Just to get things as they are: you have got An XML schema
>>>>>>>> A that includes B which itself happens to be including A
>>>>>>>> again.
>>>>>>> No A is included in B and I don't have a circular dependency.
>>>>>>> A gets generated first and then when B gets generated, the
>>>>>>> source generator wants to generate A again since it is
>>>>>>> included by B.
>>>>>> In other words, you call the source generator for all XML
>>>>>> schema files, right ?
>>>>> Yes, I am placing all my schema files into one filterset and
>>>>> using that with
>>>> the generator.
>>>>
>>>>
>>>> In that case, can you please use the warning configuration property
>>>> on your Ant task as documented here:
>>>>
>>>>
>> http://castor.org/reference/html/xml.code.generator.html#xml.code.generator.invocations.anttask
>>>>
>>>> By setting this, you'll basically instruct Castor to not output
>>>> warnings re: overwriting class files during code generation. That
>>>> should do the trick in your case.
>>>>
>>>> Regards Werner
>>> Yes, that does work for me, thank you for your help. I guess I was 
>>> looking for a way to have the warnings log but not require the user 
>>> input. I was hoping for a heads up in case I need to disambiguate
>>> between nodes, I guess I will keep warnings on in my sandbox and turn
>>> warnings off on the CI sandbox. I any case, thank you for your time
>>> an patience. I'm sure I will have more questions.
>> I think that the XML code generator provides you with two setters to
>> tweak that behaviour in more detail. I am not 100% sure whether both of
>> them are exposed by the Ant task (definition). As such, can you please
>> create a new Jira task asking us to do so ?
> 
> I am willing to create the issue, but I am not sure which two setters you are 
> talking about, nameConflictStrategy and what? Also, I don't see what strategy 
> names are valid at 
> http://castor.org/reference/html/xml.code.generator.html#xml.code.generator.invocations.cmd.options

No, this is not what I am talking about. It looks like the Ant task
definition for the XML code generator does only expose a sub-set of the
properties available at the SourceGenerator (Java) class.

Werner


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

    http://xircles.codehaus.org/manage_email


Reply via email to