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) |
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 |
|
} |
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()) |
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()) |
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) |