I always put XDoclet-generated files in target/xdoclet/hibernatedoclet,
target/xdoclet/springdoclet, that kind of thing.
Isn't it true that XDoclet won't bother re-creating your generated classes
if the timestamps on the source and destination files match?  I mean is
there a force=false kind of setting or something?

You can also set
maven -DdoXDoclet=true
on the command line and just
<j:if test="${doXDoclet == 'true'}">
....xdoclet things
....copy xdoclet-generated source over to src/java...
</j:if>

----- Original Message ----- 
From: "Sonnek, Ryan" <[EMAIL PROTECTED]>
To: "'Maven Users List'" <[EMAIL PROTECTED]>
Sent: Tuesday, December 09, 2003 8:07 AM
Subject: location of generated source


> Where do most maven developers place generated files (ex: xdoclet)?
> I've been developing a maven project for the past 6 months and have been
> dumping all generated files into 'target' to avoid saving into CVS.  Now,
> with over 200 generated classes, and little change, I'd like to avoid
having
> xdoclet run EACH java:compile.  So, here are my two options as I see them:
>
> 1.  create a separate subproject, and have the generated interfaces saved
in
> src/java to "appease" maven.  Add a task into maven.xml to regenerate the
> classes only when needed.
>
> 2.  save the files in src/java-gen (or something like that), and modify
> maven.xml to add that location to the maven.src.path (is that the right
> property?).
>
> what do others do out there?
>
> Ryan
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to