-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 20-Oct-2001 Gunnar R�nning wrote:
>| * Ant doesn't provide an exit status; you have to watch the build to see
>| if it works. This is unacceptable.
>
> Hmm. Anybody with a solution here ?
Actuall, it does.
Example:
[wolpert@wolpert configTest]$ ant build
Buildfile: build.xml
prepare:
build:
BUILD SUCCESSFUL
Total time: 2 seconds
[wolpert@wolpert configTest]$ echo $?
0
[wolpert@wolpert configTest]$ ant build
Buildfile: build.xml
prepare:
build:
[javac] Compiling 1 source file to /home/wolpert/test/configTest/classes
[javac] /home/wolpert/test/configTest/src/GetAll.java:25: ';' expected
[javac] jdo.setDatabaseName("configTest");
[javac] ^
[javac] /home/wolpert/test/configTest/src/GetAll.java:24: cannot resolve
symbol
[javac] symbol : class fds
[javac] location: class GetAll
[javac] jdo.setConfiguration("/database.xml");fds
[javac] ^
[javac] /home/wolpert/test/configTest/src/GetAll.java:25: jdo is already
defined in getDatabase()
[javac] jdo.setDatabaseName("configTest");
[javac] ^
[javac] 3 errors
BUILD FAILED
/home/wolpert/test/configTest/build.xml:35: Compile failed, messages should
have been provided.
Total time: 4 seconds
[wolpert@wolpert configTest]$ echo $?
1
[wolpert@wolpert configTest]$
Virtually,
Ned Wolpert <ned.wolpert@knowledgenet.com>
D08C2F45: 28E7 56CB 58AC C622 5A51 3C42 8B2B 2739 D08C 2F45
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iD8DBQE71FvwiysnOdCML0URAqiRAJ4g8TL2aY9fAj25JzOw+mabnBG8PACggEOK
xQOWn7giK++ZRDAsfyDtzsE=
=M4Ld
-----END PGP SIGNATURE-----