[Clirr-devel] CVS: clirr/src/java/net/sf/clirr/ant AntTask.java,1.8,1.9
Status: Alpha
Brought to you by:
lkuehne
From: Lars K?h. <lk...@us...> - 2004-05-23 08:16:12
|
Update of /cvsroot/clirr/clirr/src/java/net/sf/clirr/ant In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19670/src/java/net/sf/clirr/ant Modified Files: AntTask.java Log Message: fail in case filesets are empty (RFE #958808) Index: AntTask.java =================================================================== RCS file: /cvsroot/clirr/clirr/src/java/net/sf/clirr/ant/AntTask.java,v retrieving revision 1.8 retrieving revision 1.9 diff -u -r1.8 -r1.9 --- AntTask.java 22 May 2004 14:03:58 -0000 1.8 +++ AntTask.java 23 May 2004 08:15:59 -0000 1.9 @@ -175,7 +175,7 @@ if (origFiles == null || newFiles == null) { - throw new BuildException("Missing nested filesetes origFiles and newFiles.", getLocation()); + throw new BuildException("Missing nested filesets origFiles and newFiles.", getLocation()); } if (newClassPath == null) @@ -191,6 +191,18 @@ final File[] origJars = scanFileSet(origFiles); final File[] newJars = scanFileSet(newFiles); + if (origJars.length == 0) + { + throw new BuildException("No files in nested fileset origFiles - nothing to check!" + + " Please check your fileset specification."); + } + + if (newJars.length == 0) + { + throw new BuildException("No files in nested fileset newFiles - nothing to check!" + + " Please check your fileset specification."); + } + final ClassLoader origThirdPartyLoader = createClasspathLoader(origClassPath); final ClassLoader newThirdPartyLoader = createClasspathLoader(newClassPath); |