This patch fixes a problem with Rmic.java when creating a stub/skeleton for
only a single Java class file via the 'classname' attribute.  Also fixes a
problem with the 'shouldCompile' method call being called with the incorrect
class filename.

Phillip Davidov
[EMAIL PROTECTED]


Index: Rmic.java
===================================================================
RCS file:
/home/cvspublic/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/Rmic.java
,v
retrieving revision 1.7
diff -r1.7 Rmic.java
157,163c157,163
<         // scan base dirs to build up compile lists
<
<         DirectoryScanner ds = this.getDirectoryScanner(baseDir);
<
<         String[] files = ds.getIncludedFiles();
<
<         scanDir(baseDir, files, verify);
---
>         // scan base dirs to build up compile lists only if a
>         // specific classname is not given
>         if (classname == null) {
>             DirectoryScanner ds = this.getDirectoryScanner(baseDir);
>             String[] files = ds.getIncludedFiles();
>             scanDir(baseDir, files, verify);
>         }
190c190
<             if (shouldCompile(new File(baseDir, classname.replace('.',
File.separatorChar)))) {
---
>             if (shouldCompile(new File(baseDir, classname.replace('.',
File.separatorChar) + ".class"))) {


Reply via email to