ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Roman Rytov" <rry...@entopia.com>
Subject RE: Is there a way to catch FAILURE case?
Date Mon, 13 Jan 2003 16:54:52 GMT
I agree this possibility exists but pure XML looks much more simplier
than JavaScript/Object encoded case. Though my descriptor is not SO big
I wouldn't go this way. Converting all targets into Javascript wrapping
ones doesn't exite me:-) It's easier might be to create a custom target
for my particular case.
 
RR

	-----Original Message-----
	From: Martin Gainty [mailto:mgainty@hotmail.com] 
	Sent: Monday, January 13, 2003 6:38 PM
	To: Roman Rytov; ant-user@jakarta.apache.org
	Subject: Re: Is there a way to catch FAILURE case?
	
	

	Roman-

	Did you try enclosing all of the code within javascript???
	
	<project name="squares" default="main" basedir=".">
	  <target name="setup">
	    <script language="javascript"> <![CDATA[
	      for (i=1; i<=10; i++) {
	        echo = squares.createTask("echo");
	        main.addTask(echo);
	        echo.setMessage(i*i);
	      }
	    ]]> </script>
	  </target>
	  <target name="main" depends="setup"/>
	</project>
	

	generates
	
	setup:
	main:
	1
	4
	9
	16
	25
	36
	49
	64
	81
	100
	

	Let us know of your progress..
	
	Best Regards,
	




	Martin Gainty
	

		

		______________________________________________

		Disclaimer and confidentiality note

		Everything in this e-mail and any attachments relating
to the official business of Laconia Data Systems (LDS) is proprietary to
the company. It is confidential, legally privileged and protected by
law. LDS does not own and endorse any other content. Views and opinions
are those of the sender unless clearly stated as being that of LDS. 

		The person addressed in the e-mail is the sole
authorised recipient. Please notify the sender immediately if it has
unintentionally reached you and do not read, disclose or use the content
in any way.

		

		LDS can not assure that the integrity of this
communication has been maintained nor that it is free of errors, virus,
interception or interference.

		

	             _____________GMT-5___________________

	 

	>From: "Roman Rytov" 
	>Reply-To: "Ant Users List" 
	>To: "Ant Users List" 
	>Subject: Is there a way to catch FAILURE case? 
	>Date: Mon, 13 Jan 2003 18:05:44 +0200 
	>MIME-Version: 1.0 
	>Received: from exchange.sun.com ([192.18.33.10]) by
mc3-f6.law16.hotmail.com with Microsoft SMTPSVC(5.0.2195.5600); Mon, 13
Jan 2003 08:06:15 -0800 
	>Received: (qmail 15499 invoked by uid 97); 13 Jan 2003 16:07:09
-0000 
	>Received: (qmail 15425 invoked by uid 98); 13 Jan 2003 16:07:08
-0000 
	>Mailing-List: contact ant-user-help@jakarta.apache.org; run by
ezmlm 
	>Precedence: bulk 
	>List-Unsubscribe: 
	>List-Subscribe: 
	>List-Help: 
	>List-Post: 
	>List-Id: "Ant Users List" 
	>Delivered-To: mailing list ant-user@jakarta.apache.org 
	>X-Antivirus: nagoya (v4218 created Aug 14 2002) 
	>content-class: urn:content-classes:message 
	>X-MimeOLE: Produced By Microsoft Exchange V6.0.5762.3 
	>Message-ID:
<06DC40326E25F44682B5FDD8918423037D9DE6@uranium.il.kangaroo.net> 
	>X-MS-Has-Attach: 
	>X-MS-TNEF-Correlator: 
	>Thread-Topic: Is there a way to catch FAILURE case? 
	>Thread-Index: AcK3Vqe0tY+tgPLpTlWbE+62sWglagDxoS0A 
	>X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N 
	>Return-Path:
ant-user-return-28202-mgainty=hotmail.com@jakarta.apache.org 
	>X-OriginalArrivalTime: 13 Jan 2003 16:06:15.0285 (UTC)
FILETIME=[B316B250:01C2BB1D] 
	> 
	> 
	>In my script I access VSS and at the beginning check out some
files. At 
	>the end of the script I check them in back. I want to catch all
failure 
	>situations and to make logical action (check those files in in
my case). 
	>Is there a way to apply a kind of FINALLY in Ant? 
	> 
	>Roman Rytov 
	> 
	>-- 
	>To unsubscribe, e-mail: 
	>For additional commands, e-mail: 

  _____  

	MSN 8 with e-mail virus protection service: 2 months FREE*
<http://g.msn.com/8HMTEN/2020>  


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