Return-Path: Delivered-To: apmail-jakarta-ant-user-archive@apache.org Received: (qmail 56377 invoked from network); 5 Nov 2001 16:37:48 -0000 Received: from unknown (HELO osaka.betaversion.org) (192.18.49.133) by daedalus.apache.org with SMTP; 5 Nov 2001 16:37:48 -0000 Received: (qmail 15643 invoked from network); 5 Nov 2001 16:40:12 -0000 Received: from nagoya.betaversion.org (192.18.49.131) by osaka.betaversion.org with SMTP; 5 Nov 2001 16:40:11 -0000 Received: (qmail 24107 invoked by uid 97); 5 Nov 2001 16:37:35 -0000 Delivered-To: qmlist-jakarta-archive-ant-user@jakarta.apache.org Received: (qmail 24084 invoked by uid 97); 5 Nov 2001 16:37:34 -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 24072 invoked from network); 5 Nov 2001 16:37:33 -0000 Date: Mon, 5 Nov 2001 08:37:32 -0800 Message-Id: <200111051637.fA5GbWu18473@mail1.bigmailbox.com> Content-Type: text/plain Content-Disposition: inline Content-Transfer-Encoding: binary X-Mailer: MIME-tools 4.104 (Entity 4.116) Mime-Version: 1.0 X-Originating-Ip: [64.95.47.137] From: "Michael Starkie" To: ant-user@jakarta.apache.org Subject: fork=yes VS. BUILD SUCCESSFUL X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N greetings, we have a dillema using Ant in our development environment. The problem is with the junit optional task. the problem is that when we set fork=true Ant concludes with BUILD_SUCCESSFUL even though the unit tests fail. I assume this is because it's impossible for ant to get the return code of another process. BUT when we set fork=false the unit tests fail with linkeage errors due to the fact that both the JVM and ant load the same JAXP classes from the classpath. We must use fork=true to avoid the linkage errors so how can we detect that the tests really failed automatically despite the fact that Ant returns BUILD_SUCCESSFUL. thanks ------------------------------------------------------------ --== Sent via Deja.com ==-- http://www.deja.com/ -- To unsubscribe, e-mail: For additional commands, e-mail: