RE: Failed build not indicated as such

"Res Pons" <[email protected]> Thu, 30 Mar 2006 13:18:15 -0800
Newsgroups gmane.comp.java.anthill,gmane.spam.detected
Message-ID <[email protected]>
You need the new ant.bat under your C:\AntHill\lib\ant1.6.5\bin to resolve 
the problem.  I don't have the link to this post being discussed only a few 
weeks ago and don't think I can upload attachment into the user list but 
take the snippet below and put it in a file called ant.bat and back up your 
old copy and put this file in your ant path.  It works for me now and no 
more of that problem

-------------------------------------------------------------------------------------------------------------------------
@echo off

REM   Modified batch file used to launch ANT 1.6.
REM   This batch file exits with the return code of the build.
REM   To use this file with Anthill Pro, replace the original ant.bat file
REM   in apache-ant-1.6.x/bin with this file.

REM   Copyright (c) 2001-2003 The Apache Software Foundation.  All rights
REM   reserved.

rem %~dp0 is expanded pathname of the current script under NT
set DEFAULT_ANT_HOME=%~dp0..

if "%ANT_HOME%"=="" set ANT_HOME=%DEFAULT_ANT_HOME%
set DEFAULT_ANT_HOME=

rem Slurp the command line arguments. This loop allows for an unlimited 
number
rem of arguments (up to the command line limit, anyway).
set ANT_CMD_LINE_ARGS=%1
if ""%1""=="""" goto doneStart
shift
:setupArgs
if ""%1""=="""" goto doneStart
set ANT_CMD_LINE_ARGS=%ANT_CMD_LINE_ARGS% %1
shift
goto setupArgs
rem This label provides a place for the argument list loop to break out
rem and for NT handling to skip to.

:doneStart
rem find ANT_HOME if it does not exist due to either an invalid value passed
rem by the user or the %0 problem on Windows 9x
if exist "%ANT_HOME%\lib\ant.jar" goto checkJava

rem check for ant in Program Files
if not exist "%ProgramFiles%\ant" goto checkSystemDrive
set ANT_HOME=%ProgramFiles%\ant
goto checkJava

:checkSystemDrive
rem check for ant in root directory of system drive
if not exist %SystemDrive%\ant\lib\ant.jar goto checkCDrive
set ANT_HOME=%SystemDrive%\ant
goto checkJava

:checkCDrive
rem check for ant in C:\ant for Win9X users
if not exist C:\ant\lib\ant.jar goto noAntHome
set ANT_HOME=C:\ant
goto checkJava

:noAntHome
echo ANT_HOME is set incorrectly or ant could not be located. Please set 
ANT_HOME.
goto end

:checkJava
set _JAVACMD=%JAVACMD%

if "%JAVA_HOME%" == "" goto noJavaHome
if not exist "%JAVA_HOME%\bin\java.exe" goto noJavaHome
if "%_JAVACMD%" == "" set _JAVACMD=%JAVA_HOME%\bin\java.exe
goto runAnt

:noJavaHome
if "%_JAVACMD%" == "" set _JAVACMD=java.exe

:runAnt
set ANT_CLASSPATH_ARGS=
if not "%CLASSPATH%"=="" set ANT_CLASSPATH_ARGS=-lib "%CLASSPATH%"

set SYS_PROPS="-Dant.home=%ANT_HOME%"
if not "%JIKESPATH%"=="" set SYS_PROPS=%SYS_PROPS% 
"-Djikes.class.path=%JIKESPATH%"

"%_JAVACMD%" %ANT_OPTS% -classpath "%ANT_HOME%\lib\ant-launcher.jar" 
%SYS_PROPS% org.apache.tools.ant.launch.Launcher %ANT_ARGS% 
%ANT_CLASSPATH_ARGS% %ANT_CMD_LINE_ARGS%

:end

-------------------------------------------------------------------------------------------------------------------------


----Original Message Follows----
From: Marcel Stör <[email protected]>
Reply-To: Anthill user list <anthill-IWHQxnLZ/[email protected]>
To: <anthill-IWHQxnLZ/[email protected]>
Subject: [Anthill] Failed build not indicated as such
Date: Thu, 30 Mar 2006 23:06:09 +0200
MIME-Version: 1.0
Received: from lists.urbancode.com ([64.34.169.154]) by 
bay0-mc3-f7.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.1830); Thu, 30 
Mar 2006 13:07:22 -0800
Received: (qmail 20382 invoked by uid 510); 30 Mar 2006 21:07:50 -0000
Received: from anthill-bounces-IWHQxnLZ/[email protected] by caladin.urbancode.com 
by uid 504 with qmail-scanner-1.20  (spamassassin: 2.61.  
Clear:RC:1(127.0.0.1):.  Processed in 0.017646 secs); 30 Mar 2006 21:07:50 
-0000
Received: from localhost (HELO caladin.urbancode.com) (127.0.0.1)  by 
lists.urbancode.com with SMTP; 30 Mar 2006 21:07:50 -0000
Received: (qmail 20356 invoked by uid 510); 30 Mar 2006 21:07:48 -0000
Received: from [email protected] by caladin.urbancode.com by uid 504 
withqmail-scanner-1.20 (spamassassin: 2.61.  
Clear:RC:0(212.101.4.137):SA:0(0.1/5.0):. Processed in 1.214211 secs); 30 
Mar 2006 21:07:48 -0000
Received: from mail03.solnet.ch (212.101.4.137)by lists.urbancode.com with 
SMTP; 30 Mar 2006 21:07:47 -0000
Received: from angydee (212-41-93-24.adsl.solnet.ch [212.41.93.24])by 
mail03.solnet.ch (Postfix) with ESMTP id E037B5E83Dfor 
<anthill-IWHQxnLZ/[email protected]>; Thu, 30 Mar 2006 21:06:10 +0000 (UTC)
X-Message-Info: JGTYoYF78jHZlWyphX4ElmkpoePFaAdPlWY63r18d3E=
Return-Path: <[email protected]>
Delivered-To: mailman-anthill-IWHQxnLZ/[email protected]
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook, Build 10.0.2616
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506
X-Virus-Scanned: by amavisd-new at mail03.solnet.ch
X-Spam-Checker-Version: SpamAssassin 2.61 (1.212.2.1-2003-12-09-exp) on 
caladin.urbancode.com
X-Spam-Level:
X-Spam-Status: No, hits=0.1 required=5.0 tests=RCVD_IN_SORBS autolearn=no 
version=2.61
X-BeenThere: anthill-IWHQxnLZ/[email protected]
X-Mailman-Version: 2.1.4
Precedence: list
List-Id: Anthill user list <anthill.lists.urbancode.com>
List-Unsubscribe: 
<http://lists.urbancode.com/mailman/listinfo/anthill>,<mailto:anthill-request-IWHQxnLZ/[email protected]?subject=unsubscribe>
List-Archive: <http://lists.urbancode.com/pipermail/anthill>
List-Post: <mailto:anthill-IWHQxnLZ/[email protected]>
List-Help: <mailto:anthill-request-IWHQxnLZ/[email protected]?subject=help>
List-Subscribe: 
<http://lists.urbancode.com/mailman/listinfo/anthill>,<mailto:anthill-request-IWHQxnLZ/[email protected]?subject=subscribe>
Errors-To: anthill-bounces-IWHQxnLZ/[email protected]
X-OriginalArrivalTime: 30 Mar 2006 21:07:23.0246 (UTC) 
FILETIME=[F091C0E0:01C6543D]

Hi all,

We're using the latest release 1.8.1.303 and experience a strange
behaviour.

Using Ant's fail task (http://ant.apache.org/manual/CoreTasks/fail.html)
we're aborting a build. The log file contains a failure message as
expected. Anthill, though, logs that that build was successful and
indicates this accordingly with a green bar.

Has anyone else experienced this and/or what could be the reason for
this?

--
Marcel Stör
http://www.frightanic.com -> free Sudoku mailing service

_______________________________________________
Anthill mailing list
Anthill-IWHQxnLZ/[email protected]
http://lists.urbancode.com/mailman/listinfo/anthill

_________________________________________________________________
FREE pop-up blocking with the new MSN Toolbar – get it now! 
http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/