You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by Andreas L Delmelle <a_...@pandora.be> on 2007/03/10 20:23:23 UTC
Generated source files? (Re: Small problem with Netbeans on fop-users@)
On Mar 10, 2007, at 15:34, Vincent Hennebert wrote:
> Thomas Zastrow a écrit :
>> <snip />
>> But I haven't a directory called "gensrc"? I downloaded the SVN-
>> version
>> just minutes ago.
>
> This directory contains source files automatically generated during
> the
> build process. To create it you have to run
> ant codegen
> in the root directory of FOP.
FWIW, the XML sources of these generated files hardly ever change, so
I think we may even consider replacing these with pregenerated java
classes...?
It always seems to confuse people who are interested in contributing
code.
Then, once you start wondering why these need to be generated and
cannot simply be added as java sources, you'll quickly realize there
is no good reason for that. Replacing maintenance of 15 classes with
maintaining 2 stylesheets and 15 XML source files hardly seems worth
the trouble... :/
Cheers,
Andreas
Re: Generated source files? (Re: Small problem with Netbeans on fop-users@)
Posted by Andreas L Delmelle <a_...@pandora.be>.
On Mar 10, 2007, at 21:16, Andreas L Delmelle wrote:
> On Mar 10, 2007, at 21:14, Peter B. West wrote:
>
>> <snip />
>> Novel idea.
>
> Yeah, I did seem to remember this coming up earlier...
>
>> http://marc.theaimsgroup.com/?l=fop-dev&m=105728457029132&w=2
>>
Re-reading this thread, I even realize now that it may just have been
that discussion that drove me to disliking the idea of generated
source files in the first place. Yes, it was in fact /your/ idea,
Peter. :)
Later on, I encountered other scenarios where generated source files
were being used, and the only thing in particular that comes to mind
about them, is that they were driving the devs who had to work with
them crazy like hell... Changing a column in the master database with
a nightly script would leave them with altered method signatures for
some of the referenced classes the next morning they came in.
Cheers,
Andreas
Re: Generated source files? (Re: Small problem with Netbeans on fop-users@)
Posted by Andreas L Delmelle <a_...@pandora.be>.
On Mar 10, 2007, at 21:14, Peter B. West wrote:
> <snip />
> Novel idea.
Yeah, I did seem to remember this coming up earlier...
> http://marc.theaimsgroup.com/?l=fop-dev&m=105728457029132&w=2
>
Cheers,
Andreas
Re: Generated source files? (Re: Small problem with Netbeans on fop-users@)
Posted by "Peter B. West" <pb...@pbw.id.au>.
Andreas L Delmelle wrote:
> On Mar 10, 2007, at 15:34, Vincent Hennebert wrote:
>
>> Thomas Zastrow a écrit :
>>> <snip />
>>> But I haven't a directory called "gensrc"? I downloaded the SVN-version
>>> just minutes ago.
>>
>> This directory contains source files automatically generated during the
>> build process. To create it you have to run
>> ant codegen
>> in the root directory of FOP.
>
> FWIW, the XML sources of these generated files hardly ever change, so I
> think we may even consider replacing these with pregenerated java
> classes...?
>
> It always seems to confuse people who are interested in contributing code.
> Then, once you start wondering why these need to be generated and cannot
> simply be added as java sources, you'll quickly realize there is no good
> reason for that. Replacing maintenance of 15 classes with maintaining 2
> stylesheets and 15 XML source files hardly seems worth the trouble... :/
>
>
> Cheers,
>
> Andreas
Novel idea.
http://marc.theaimsgroup.com/?l=fop-dev&m=105728457029132&w=2