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 ?

Regards
Werner
> 
> Thanks Kurt
> 
> 
> ---------------------------------------------------------------------
>  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