ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian Agnew <br...@oopsconsultancy.com>
Subject Re: regex text out of a file
Date Thu, 19 Jul 2007 15:23:45 GMT
If your HTML file is (or can be converted to - using HTMLTidy or 
similar) XHTML, then XMLTask may be of use:

http://www.oopsconsultancy.com/software/xmltask/

Particularly the <call> mechanism in the above.

Brian

Alex Egg wrote:
> I need help with this task:
> I have an HTML file with this snippet:
>
> <!-- begin includes -->
> <script src="scripts/script1.js" />
> <script src="scripts/script2.js" />
> <script src="scripts/script3.js" />
> <!-- end includes -->
>
> I would like to get each the src attribute value of each script tag, e.g.
> "scripts/script1.js, scripts/script2.js, scripts/script3.js "
>
> After I extract the scripts I would like to be able to pass them 
> another ant
> task in my build file as a fileset or something.
>
> I'm pretty sure I'm going to have to write my own task, because this 
> is not
> a very generic operation. But, can anybody think of any way I can use any
> existing tasks out there to do this for me?
>
> Thank,
> Alex
>

-- 
Brian Agnew                  http://www.oopsconsultancy.com
OOPS Consultancy Ltd         brian @ oopsconsultancy.com
Tel: +44 (0)7720 397526
Fax: +44 (0)20 8682 0012



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message