Âs already suggested by Ralf, it might as well be that this was a bug
with the Ant task for the source generator, which has been fixed already.
Here's what I'd suggest:
- Please download one of the later releases (1.2.1 and later), and try
it again. If that works, I can only suggest to upgrade to one of these
newer releases.
- Debug the Castor Ant task yourself to see why the property is not
being picked up.
I hope you do understand that our energy to look into pre-1.0 problems
will be limited, as we have put in a lot of energy to make Castor what
it currently is.
Regards
Werner
Ralf Joachim wrote:
> Hi,
>
> why are you still working with 0.9.7 relesae of Casror? There got quite
> some issues in Castor's XML and codegen modul fixed between 0.9.7 and
> current 1.1.2.1 release. As far as I remember also in the area of
> passing parameters to the code generator.
>
> Regards
> Ralf
>
>
> llem schrieb:
>> we are using Castor 0.9.7, and are using the SourceGenerator (via the
>> Ant task) to generate Java classes from an XSD schema.
>>
>> we have added the following property to our castorbuilder.properties
>> file:
>>
>> org.exolab.castor.builder.extraCollectionMethods=true
>>
>> we have also added the following in our Ant script:
>>
>> properties="${basedir}/src/castorbuilder.properties"
>>
>> however, the generated source is missing the getXXXAsSource() and
>> setXXXAsSource() methods.
>>
>> invoking the SourceGenerator from the command-line (with the same
>> castorbuilder.properties file) works though.
>>
>> i had a quick look through CastorSourceGenTask.java, and it does seem to
>> read the "properties" property and pass it to the SourceGenerator, so i
>> don't know where to look next.
>>
>> any help is much appreciated.
>> cheers.
>>
>>
>>
>>
>> ---------------------------------------------------------------------
>> 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
>
>
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email