ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jowie <joe.n...@mac.com>
Subject RE: RegExp help needed!
Date Mon, 07 Dec 2009 14:28:09 GMT

Thanks Gilbert...

I have now got this...

		<xmltask source="${local.path}GetAllQuestions.xml">
			<call path="//*">
				
				<actions>
				    <echo>img = @{img}</echo>
				</actions>
			</call>
		</xmltask>

which returns:

BUILD FAILED
C:\Work\LSIS\Brain Games\Main\ant\update_offline.xml:77: required attribute
img not set

But... If I do

		<xmltask source="${local.path}GetAllQuestions.xml">
			<call path="//*">
				<!-- target="getMedia" buffer="abc"-->
				
				<actions>
				    <echo>img = @{img}</echo>
				</actions>
			</call>
		</xmltask>

I get back:

     [echo] img = /brain_games_main/Image.ashx?ID=647
     [echo] img = /brain_games_main/Image.ashx?ID=647
     [echo] img = /brain_games_main/Image.ashx?ID=647
     [echo] img = /brain_games_main/Image.ashx?ID=647
     [echo] img = /brain_games_main/Image.ashx?ID=647
     [echo] img = /brain_games_main/Image.ashx?ID=647

etc....




Rebhan, Gilbert wrote:
> 
> 
> P.S. :
> 
> <call path="/Question/Answers/*" target="foo">
>   
> </call>
> 
> will hit all Media=... attributes und /Question/Answers,
> if you need all Media Attributes you need to use =
> 
> <call path="//*" target="foo">
>   
> </call>
> 
> 
> Regards, Gilbert
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 
> 
> 

-- 
View this message in context: http://old.nabble.com/RegExp-help-needed%21-tp26676257p26678002.html
Sent from the Ant - Users mailing list archive at Nabble.com.


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


Mime
View raw message