Java Mailing List Archive

http://www.ant-tasks.com/

Apache Ant Archive

» Ant Users List
» Ant Developers List
Replace toekn with file contents

Replace toekn with file contents

2003-03-17       - By Sloan Seaman
Reply:     1     2     3     4     5     6  

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@(protected)>
To: "Ant Users List" <user@(protected)>
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@(protected)]
> > Sent: Monday, March 17, 2003 1:47 PM
> > To: user@(protected)
> > 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@(protected)
> > For additional commands, e-mail: user-help@(protected)
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>



©2008 ant-tasks.com - Jax Systems, LLC, U.S.A.