ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sunil singh <sunil.si...@oracle.com>
Subject Ant build shows BUILD SUCCESSFUL even for no java sources.
Date Tue, 20 May 2003 22:10:12 GMT
Hi,

 Doing an ant build for a project, the build is shown to be successful
 even though the source folder is empty and there are no java sources under
it.

 For example:
 If we have a build.xml file and an empty src folder to which the
 build.xml refers, and there are no source files under it.

MyProject/build.xml
MyProject/src/project/calculations/...

 Now the ant build sees this as not an issue, and happily claims that the
 Build is successful, whereas there was nothing to build(compile) in first
place.
 Is there a way we can make ant to recognise this as a problem and show a
 Build Failure.
[ I am looking for native ant solution, I know that we might embed other
 perl scripts etc. in the build.xml to look for *.java and complain if it
doesn't see any
there ]

Thanks! for any help.
Sunil--




Mime
  • Unnamed multipart/mixed (inline, None, 0 bytes)
View raw message