ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Srikrishna_Parthasara...@timeinc.com>
Subject Question regarding Ant custom task
Date Thu, 07 Apr 2005 20:03:48 GMT

I have a Java class with couple of public methods. When this method is
called in a target task .


public String statcollection(){




    if (j>0){

		 System.out.println("Problem with the messages");

		 System.out.println("The number of messages in the queue
since  "+ minutesinput +"minutes " + j );


		 System.out.println("Actual Directory for messages is "
+ ActualDir);

	 }else
	 {
		  System.out.println("The number of messages in the
queue since  "+ minutesinput +"minutes " + j );

		  System.out.println("The total number of messages in
the queue " +  i);

 }


	return ActualDir;
}


The variable j is global. Is it possible inside the task to check for
the value of j and use a subtask to send out an email.


Your input is highly appreciated.

Thanks
srikrishna


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


Mime
View raw message