ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan.Mate...@rzf.fin-nrw.de
Subject RE: How to replace tokens with file contents?
Date Tue, 19 Aug 2003 04:31:50 GMT
If you work with XML I recomment the xmltasks.
http://www.oopsconsultancy.com/software/xmltask.html 


Jan

> -----Original Message-----
> From: McDonnell Colm [mailto:Colm.McDonnell@uk.mizuho-sc.com]
> Sent: Monday, August 18, 2003 4:04 PM
> To: 'Ant Users List'
> Subject: RE: How to replace tokens with file contents?
> 
> 
> try this, it will replace the @JSPCSNIPPET@ token in web.xml 
> with the jspc
> generated mappings
> 
> <target name="make-web-xml" 
> 	     description="makes the application web.xml by updating the
> @JSPCSNIPPET@ token with the appropriate value">
> 	<!-- load the jspc generated snippet into the webxml.snippet
> property -->
> 	<loadfile property="webxml.snippet" srcFile="${jspmapfile}"
> failonerror="true"/>
> 
> 	<!-- copy web.xml to a distro directory, overwriting 
> the jspc token
> with the webxml.snippet property -->
>    <copy todir="${dist.app.confs}" overwrite="true">
>      <fileset dir="./conf" >
>        <include name="**/web.xml"/>
>      </fileset>
>      <filterset>
>        <filter token="JSPCSNIPPET" value="${webxml.snippet}"/>
>      </filterset>
>    </copy>
> </target>
> 
> 
> 
> > -----Original Message-----
> > From:	Johann Uhrmann [SMTP:johann.uhrmann@xpecto.com]
> > Sent:	Monday, August 18, 2003 2:56 PM
> > To:	Ant Users List
> > Subject:	How to replace tokens with file contents?
> > 
> > Hello,
> > 
> > does Ant know a way to replace a token in a source file with the
> > contents of a second file?
> > 
> > In my case, I want to merge the xml-fragment that is generated by
> > Jasper2 into the web.xml file. (replace a token in web.xml with
> > the contents of generated_web.xml)
> > 
> > If there is no ant task to accomplish this, could there be a
> > workaround?
> > 
> > Kind regards,
> > 
> > Hans
> > 
> > 
> > 
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> > For additional commands, e-mail: user-help@ant.apache.org
> 
> 
> This message and any files transmitted with it are 
> confidential and intended solely for the use of 
> the individual or entity to whom they are addressed.  If you 
> have received this message in error 
> please delete it and any files transmitted with it, after 
> notifying postmaster@uk.mizuho-sc.com
> Any opinions expressed in this message may be those of the 
> author and not necessarily those of 
> the company.  The company accepts no responsibility for the 
> accuracy or completeness of any 
> information contained herein.  This message is not intended 
> to create legal relations between the 
> company and the recipient.
> Recipients should please note that messages sent via the 
> Internet may be intercepted and that 
> caution should therefore be exercised before dispatching to 
> the company any confidential or 
> sensitive information.
> 
> Mizuho International plc
> Bracken House, One Friday Street, London EC4M 9JA. TEL. 020 7236 1090
> Registered in England No. 1203696. Registered office as 
> above. Authorised and regulated by the Financial 
> Services Authority. A member of the London Stock Exchange. A 
> member of Mizuho Financial Group headed 
> by Mizuho Financial Group, Inc. 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message