ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/repos/AntTasks/source/net/douglasthrift/anttasks/Preverify.java
(Generate patch)

Comparing AntTasks/source/net/douglasthrift/anttasks/Preverify.java (file contents):
Revision 974 by douglas, 2007-12-19T16:22:45-08:00 vs.
Revision 975 by douglas, 2007-12-19T22:56:17-08:00

# Line 49 | Line 49 | public class Preverify extends Task
49          private boolean nofinalize;
50          private boolean nonative;
51          private boolean nofp;
52 <        private ArrayList<String> classnames;
52 >        private ArrayList<String> classnames = new ArrayList<String>();
53          private Path dirnames;
54  
55          public void setClasspath(Path classpath)
# Line 102 | Line 102 | public class Preverify extends Task
102  
103          public void setClassnames(String classnames)
104          {
105                if (this.classnames == null)
106                        this.classnames = new ArrayList<String>();
107
105                  for (String classname: classnames.split("[ ,]"))
106                          this.classnames.add(classname);
107          }
# Line 134 | Line 131 | public class Preverify extends Task
131  
132          public void execute()
133          {
134 <                if (classnames == null && dirnames == null)
134 >                if (classnames.isEmpty() && dirnames == null)
135                          throw new BuildException("no classnames or dirnames");
136  
137                  if (this.isUpToDate())
# Line 176 | Line 173 | public class Preverify extends Task
173  
174                  ArrayList<String> files = new ArrayList<String>();
175  
176 <                if (this.classnames != null)
177 <                        for (String classname: this.classnames)
178 <                        {
179 <                                this.log("Preverifying " + classname);
180 <                                exec.createArg().setValue(classname);
184 <                        }
176 >                for (String classname: this.classnames)
177 >                {
178 >                        this.log("Preverifying " + classname);
179 >                        exec.createArg().setValue(classname);
180 >                }
181  
182                  if (this.dirnames != null)
183                          for (String dirname: this.dirnames.list())
# Line 198 | Line 194 | public class Preverify extends Task
194          {
195                  FileUtils utils = FileUtils.getFileUtils();
196  
197 <                if (this.classnames != null)
197 >                if (!this.classnames.isEmpty())
198                          return false;
199  
200                  if (this.dirnames != null)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines