| Replace toekn with file contents | Replace toekn with file contents 2003-03-17 - By Erik Hatcher
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) > >
|
|
 |