Return-Path: Delivered-To: apmail-maven-users-archive@www.apache.org Received: (qmail 88476 invoked from network); 30 Jul 2007 20:33:59 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 30 Jul 2007 20:33:59 -0000 Received: (qmail 57459 invoked by uid 500); 30 Jul 2007 20:33:51 -0000 Delivered-To: apmail-maven-users-archive@maven.apache.org Received: (qmail 57411 invoked by uid 500); 30 Jul 2007 20:33:51 -0000 Mailing-List: contact users-help@maven.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Maven Users List" Reply-To: "Maven Users List" Delivered-To: mailing list users@maven.apache.org Received: (qmail 57397 invoked by uid 99); 30 Jul 2007 20:33:51 -0000 Received: from Unknown (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 30 Jul 2007 13:33:50 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [66.111.4.26] (HELO out2.smtp.messagingengine.com) (66.111.4.26) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 30 Jul 2007 20:33:44 +0000 Received: from compute1.internal (compute1.internal [10.202.2.41]) by out1.messagingengine.com (Postfix) with ESMTP id A5981B8EA for ; Mon, 30 Jul 2007 16:33:23 -0400 (EDT) Received: from web5.messagingengine.com ([10.202.2.214]) by compute1.internal (MEProxy); Mon, 30 Jul 2007 16:33:23 -0400 Received: by web5.messagingengine.com (Postfix, from userid 99) id 87A66284DD; Mon, 30 Jul 2007 16:33:23 -0400 (EDT) Message-Id: <1185827603.27391.1202864667@webmail.messagingengine.com> X-Sasl-Enc: /16R/P/vHcBFMpPy1RqxJ0c7OE/fjpBLuFEYEf7Ka2o6 1185827603 From: "Martin Gilday" To: "Maven Users List" Content-Disposition: inline Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="ISO-8859-1" MIME-Version: 1.0 X-Mailer: MessagingEngine.com Webmail Interface References: <1185826515.23609.1202861891@webmail.messagingengine.com> Subject: Re: Exit codes on Windows In-Reply-To: <1185826515.23609.1202861891@webmail.messagingengine.com> Date: Mon, 30 Jul 2007 21:33:23 +0100 X-Virus-Checked: Checked by ClamAV on apache.org Seems I posted a bit prematurely. It works in a standard command prompt just not in powershell. It seems it's not picking up the environmental variable MAVEN_TERMINATE_CMD. If you define it again in your powershell script in the env namespace ($ENV:MAVEN_TERMINATE_CMD="on") it starts working. ----- Original message ----- From: "Martin Gilday" To: users@maven.apache.org Date: Mon, 30 Jul 2007 21:15:15 +0100 Subject: Exit codes on Windows I am currently writing a Windows Powershell script which calls the maven bat file to trigger a build as part of its functionality. It seems that regardless of sucess or failure an exit code of 0 is returned. I have found this closed JIRA issue (http://jira.codehaus.org/browse/MNG-2127) which offers some suggestions, including setting MAVEN_TERMINATE_CMD=on. I have tried these but have not had any luck. Is this an ongoing issue with Maven on Windows? Should this be working with 2.0.7. Thanks for any advice. Martin. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@maven.apache.org For additional commands, e-mail: users-help@maven.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@maven.apache.org For additional commands, e-mail: users-help@maven.apache.org