Not really.
I have to come up with a scheme to have 4-5 developers write different
pieces of a web app that uses the same struts-config.xml and not have them
kill each others work or fight over locks via version control.
So I figured I would have them (in their respective branches) have
action.xml, formbean.xml, etc files and then the master build file would
include these files and put them into the final struts-config.xml file.
Any other ideas are more than welcome...
I'll take a quick look at XDoclet as well...
--
Sloan
----- Original Message -----
From: "Erik Hatcher" <jakarta-ant@ehatchersolutions.com>
To: "Ant Users List" <user@ant.apache.org>
Sent: Monday, March 17, 2003 2:56 PM
Subject: Re: Replace toekn with file contents
> Also, have you looked into XDoclet to make your struts-config.xml file
> more manageable?
>
> Erik
>
> On Monday, March 17, 2003, at 02:47 PM, Dominique Devienne wrote:
> > Use <loadfile> to load the second file into a property (possibly
> > modifying
> > it along the way using a <filterchains>), then use that property in the
> > replace operation.
> >
> > Turns out I did something similar just this morning ;-)
> >
> > <loadfile property="license" srcFile="${ant.home}/LICENSE" />
> >
> > <replaceregexp byline="true">
> > <regexp pattern="^// vim.*$" />
> > <substitution expression="${license}" />
> > <fileset dir="build/subant/src" includes="**/*.java" />
> > </replaceregexp>
> >
> > --DD
> >
> > -----Original Message-----
> > From: Sloan Seaman [mailto:sloan@sgi.net]
> > Sent: Monday, March 17, 2003 1:47 PM
> > To: user@ant.apache.org
> > Subject: Replace toekn with file contents
> >
> > Is there any way to get ANT to replace a token in a file with the
> > entire
> > contents of another file?
> >
> > I'm trying to make my struts-config.xml a little more manageable...
> >
> > Thanks!
> > --
> > Sloan
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> > For additional commands, e-mail: user-help@ant.apache.org
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>
|