Modify the castor.properties file and set the indent flag to true.
--Keith
Brad Matlack wrote:
>
> I'm working with the MappingTool now, and would like to incorporate it into
> an Ant build, but the marshaller outputs the xml stream without any carriage
> returns.
>
> Is there any way around this? I quickly looked at the code, but am not sure
> how to modify the marshaller, or if there would be problems doing so.
>
> Brad
>
> ----- Original Message -----
> From: "Keith Visco" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, September 06, 2001 12:00 AM
> Subject: Re: [castor-dev] Ant for SourceGenerator contribution
>
> >
> > Just a few comments...
> >
> >
> > James Higginbotham wrote:
> > >
> > > Good point on the mapping file. There has always been a disconnect,
> AFAIK,
> > > with Castor's code generator. I know it was probably written as an
> > > afterthought and is for convenience only.
> >
> > Actually it was written first! :-)
> >
> > Castor's Source Code Generator was originally written by me back in
> > Oct/Nov of 1999.
> > It's design was strictly to generate Java source code from an XML Schema
> > definition.
> >
> > Castor was initially only an XML data binding framework. The JDO piece
> > of Castor was later merged in with the XML framework before the intial
> > release back in late Dec. of 1999.
> >
> > The mapping file was originally written by Assaf Arkin for use with JDO.
> > Assaf and I later adapted it for use with Castor XML.
> >
> > > So, I hold nothing against the
> > > team and consider Castor the "best in the biz." But, to continue the
> thread,
> > > here is what it looks like with all components involved:
> > >
> > > XSD (by hand) --> [Castor Generator] --> Java source (generated) <-->
> > > Mapping files (by hand) --> DDL (by hand)
> > >
> > > I see a couple of opportunities:
> > >
> > > 1. A mapping file generator to be included in the castor Java source
> > > generator - the generator currently only generates Java source, while
> > > requiring the developer to write the mapping file by hand.
> >
> > MappingTool found in the tools package can generate a mapping file from
> > a set of Java classes by using Castor XML's introspector. The sql
> > elements can then be added by hand.
> >
> > --Keith
> >
> > -----------------------------------------------------------
> > 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
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev