Return-Path: Delivered-To: apmail-jakarta-ant-user-archive@apache.org Received: (qmail 65388 invoked from network); 15 Oct 2002 13:05:25 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 15 Oct 2002 13:05:24 -0000 Received: (qmail 20795 invoked by uid 97); 15 Oct 2002 13:06:04 -0000 Delivered-To: qmlist-jakarta-archive-ant-user@jakarta.apache.org Received: (qmail 20726 invoked by uid 97); 15 Oct 2002 13:06:02 -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" Reply-To: "Ant Users List" Delivered-To: mailing list ant-user@jakarta.apache.org Received: (qmail 20714 invoked by uid 98); 15 Oct 2002 13:06:02 -0000 X-Antivirus: nagoya (v4218 created Aug 14 2002) Message-ID: <9E035BE80785AA4EAA456959ECB4A30D0273A311@nt036.an.sopra> From: Sylvain Rousse Reply-To: "srousse@sopragroup.com" To: 'Ant Users List' Subject: using timeout in exec command of ant Date: Tue, 15 Oct 2002 15:05:25 +0200 Organization: Sopra group X-Mailer: Messagerie Internet de Microsoft/MAPI - 8.0.0.4211 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hi all, I am working on Windows 2K platform with jdk 1.3.1 and ant 1.5. I would like to use the timeout option of the exec command. I set the timeout to 1000 (one second). But the task continues after timeout has been reached until it finishes. xml file is: I am using this main program to start the task: (run method of a thread) public void run() { String dir = "c:/temp"; String buildxml = dir + File.separator + "run.xml"; String[] args = new String[] {"-buildfile", buildxml, "Batch"}; Main.start(args, null, null); } The output I am getting is the following: C:\Documents and Settings\srousse\jbproject\essaiEnvp\classes>set CLASSPATH=C:\Documents and Settings\srousse\jbproject\essaiEnvp\classes;c:\jdk131\jre\lib\rt.jar;c: \classes\framework\ant.jar;c:\classes\framework\antlr.jar;c:\classes\fra mework\sax.jar;c:\classes\framework\jaxpapi.jar C:\Documents and Settings\srousse\jbproject\essaiEnvp\classes>java essaienvp.Essai Buildfile: c:\temp\run.xml Batch: [exec] Timeout: killed the sub-process [exec] Result: 1 BUILD SUCCESSFUL Total time: 18 seconds What could be the cause of that problem ? In advance thanks. Sylvain. -- To unsubscribe, e-mail: For additional commands, e-mail: