Hi Marco,
You can also set the castorbuilder.properties by calling:
Properties myProps = sgen.getDefault(); //-- needs to be changed to
getDefaultProperties()!
myProps.setPropert("org.exolab.castor.builder.superclass",
"com.acme.BaseObject");
sgen.setDefaultProperties(myProps);
Where "sgen" is an instance of the SourceGenerator.
Hope that helps.
--Keith
Marco Herrn wrote:
>
> Hi Erik,
>
> > I've tried to dynamically set the classpath like this before
> > and it didn't work. I've read (can't remember where) that the
> > java spec either doesn't allow for this or at least doesn't
> > require it.
>
> So it is not possible with java? How could you get around it? Or do you have
> any suggestions to me what I could try to set the classpath correctly (or to
> find a way to have castorbuilder.properties read)?
>
> Bye
> Marco
>
> -----------------------------------------------------------
> If you wish to unsubscribe from this mailing, send mail to
> [EMAIL PROTECTED] with a subject of:
> unsubscribe castor-dev
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev