From user-return-67958-apmail-ant-user-archive=ant.apache.org@ant.apache.org Tue Jun 02 15:09:29 2009 Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 49866 invoked from network); 2 Jun 2009 15:09:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 2 Jun 2009 15:09:29 -0000 Received: (qmail 63381 invoked by uid 500); 2 Jun 2009 15:09:40 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 63333 invoked by uid 500); 2 Jun 2009 15:09:40 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 63323 invoked by uid 99); 2 Jun 2009 15:09:40 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Jun 2009 15:09:40 +0000 X-ASF-Spam-Status: No, hits=-5.8 required=10.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_HI,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [192.35.35.7] (HELO mailgw3a.lmco.com) (192.35.35.7) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Jun 2009 15:09:28 +0000 Received: from emss09g01.ems.lmco.com (relay6.ems.lmco.com [166.17.13.59])by mailgw3a.lmco.com (LM-6) with ESMTP id n52F974J018740for ; Tue, 2 Jun 2009 11:09:07 -0400 (EDT) Received: from CONVERSION2-DAEMON.lmco.com by lmco.com (PMDF V6.3-x14 #31428) id <0KKM00C01A37DZ@lmco.com> for user@ant.apache.org; Tue, 02 Jun 2009 11:09:07 -0400 (EDT) Received: from EMSS04I00.us.lmco.com ([166.17.13.135]) by lmco.com (PMDF V6.3-x14 #31428) with ESMTP id <0KKM00B0GA32E3@lmco.com> for user@ant.apache.org; Tue, 02 Jun 2009 11:09:02 -0400 (EDT) Received: from EMSS04M22.us.lmco.com ([166.17.13.75]) by EMSS04I00.us.lmco.com with Microsoft SMTPSVC(5.0.2195.6713); Tue, 02 Jun 2009 11:09:02 -0400 Date: Tue, 02 Jun 2009 11:08:57 -0400 From: "Cole, Derek E" Subject: Running multiple ant projects from threaded java project To: Ant Users List Message-id: MIME-version: 1.0 X-MIMEOLE: Produced By Microsoft Exchange V6.5 Content-type: multipart/alternative; boundary="Boundary_(ID_JFEK0udqB4ayfc04SiKpIA)" Thread-Topic: Running multiple ant projects from threaded java project Thread-Index: AcnjlAy8ld1N8Bp0TWyutDgoBnMU1Q== Content-class: urn:content-classes:message X-MS-Has-Attach: X-MS-TNEF-Correlator: X-OriginalArrivalTime: 02 Jun 2009 15:09:02.0651 (UTC) FILETIME=[106550B0:01C9E394] X-Virus-Checked: Checked by ClamAV on apache.org --Boundary_(ID_JFEK0udqB4ayfc04SiKpIA) Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7BIT Hi All. I have a java project that is creating a thread for the purpose of creating and running an ant project in each thread so I can run multiple ant builds at the same time. The java program is using the ant API to set up the project, add a listener, etc. The problem is, if I add a logger to each project, and pass each one of those a file stream, I am losing information. It would seem that all of the standard output is logged correctly, but whenever there is an error (like messages coming from javac), they are not making it into the log file. Has anyone tried to do this before? I was going to try to look at something like Hudson to see how it does it, but I haven't gotten that far yet, thought I'd see if anyone here has tried to run multiple ant projects from a java file before. Derek --Boundary_(ID_JFEK0udqB4ayfc04SiKpIA)--