ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Phillip Davidov" <phillip.davi...@chipdata.com>
Subject rmic taskdef Patch (org/apache/tools/ant/taskdefs/Rmic.java)
Date Wed, 12 Jul 2000 20:38:49 GMT
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
phillip.davidov@chipdata.com


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"))) {



Mime
View raw message