ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Raja Nagendra Kumar <Nagendra.R...@tejasoft.com>
Subject Re: How fail main ant (parent bulild.xml) to fail when custom task fails
Date Fri, 04 Dec 2009 07:11:14 GMT

Hi,

Any info on this please.. I keep seeing some thing like this..

F:\tejasoft\work\foundation\common\tools\ant>ant
Buildfile: build.xml
     [echo] File to Import: JSECommon.xml

clean:

doClean:
   [delete] Deleting directory
F:\tejasoft\work\foundation\common\tools\ant\buil
d

src:
 [CFGProps] Setting LogHelper instance to: g
 [CFGProps] CFGType: dev
Warning: Reference fs.app.root has not been set at runtime, but was found
during

build file parsing, attempting to resolve. Future versions of Ant may
support
 referencing ids defined in non-executed targets.
 [CFGProps] F:\tejasoft\work\foundation\common\tools\ant\ant.file.TANTCommon
not
 found.
BUILD FAILED
F:\tejasoft\work\foundation\common\tools\ant\ant.file.TANTCommon not found.

Total time: 15 seconds
     [copy] Copying 1 file to
F:\tejasoft\work\foundation\common\tools\ant\build

    [javac] Compiling 70 source files to
F:\tejasoft\work\foundation\common\tool
s\ant\build
archive:
      [jar] Warning: com\tejasoft\ant\utils\props modified in the future.
      [jar] Warning: com\tejasoft\ant\utils\scanner modified in the future.
      [jar] Warning: com\tejasoft\ant\web modified in the future.
   [groovy] Size of 'TejaAntTasks.jar' is 75 kb in obfuscated mode
   [groovy] Config Type is : 'dev'

all:

BUILD SUCCESSFUL


Observe the bold ones on says build successful and other failed.. The one
failed is the result of custom task which gets invoked from the build.xml
file. In this case though custom task failed to do its job, the build.xml
build is saying it successful. 

If custom task fails.. then I wish to build.xml excution stops there and let
the entire build be shown as failure.

Regards,
Nagendra


-- 
View this message in context: http://old.nabble.com/How-fail-main-ant-%28parent-bulild.xml%29-to-fail-when-custom-task-fails-tp26529903p26635797.html
Sent from the Ant - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message