|
@@ -126,6 +126,8 @@ public class Rmic extends MatchingTask { |
|
|
|
|
|
|
|
|
private String executable = null; |
|
|
private String executable = null; |
|
|
|
|
|
|
|
|
|
|
|
private boolean listFiles = false; |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* Constructor for Rmic. |
|
|
* Constructor for Rmic. |
|
|
*/ |
|
|
*/ |
|
@@ -550,6 +552,14 @@ public class Rmic extends MatchingTask { |
|
|
return facade.getImplementationClasspath(getProject()); |
|
|
return facade.getImplementationClasspath(getProject()); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
* If true, list the source files being handed off to the compiler. |
|
|
|
|
|
* @param list if true list the source files |
|
|
|
|
|
* @since Ant 1.8.0 |
|
|
|
|
|
*/ |
|
|
|
|
|
public void setListfiles(boolean list) { |
|
|
|
|
|
listFiles = list; |
|
|
|
|
|
} |
|
|
/** |
|
|
/** |
|
|
* execute by creating an instance of an implementation |
|
|
* execute by creating an instance of an implementation |
|
|
* class and getting to do the work |
|
|
* class and getting to do the work |
|
@@ -600,8 +610,16 @@ public class Rmic extends MatchingTask { |
|
|
} |
|
|
} |
|
|
int fileCount = compileList.size(); |
|
|
int fileCount = compileList.size(); |
|
|
if (fileCount > 0) { |
|
|
if (fileCount > 0) { |
|
|
log("RMI Compiling " + fileCount + " class" + (fileCount > 1 ? "es" : "") + " to " |
|
|
|
|
|
+ outputDir, Project.MSG_INFO); |
|
|
|
|
|
|
|
|
log("RMI Compiling " + fileCount + " class" |
|
|
|
|
|
+ (fileCount > 1 ? "es" : "") + " to " |
|
|
|
|
|
+ outputDir, Project.MSG_INFO); |
|
|
|
|
|
|
|
|
|
|
|
if (listFiles) { |
|
|
|
|
|
for (int i = 0; i < fileCount; i++) { |
|
|
|
|
|
log(compileList.get(i).toString()); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
// finally, lets execute the compiler!! |
|
|
// finally, lets execute the compiler!! |
|
|
if (!adapter.execute()) { |
|
|
if (!adapter.execute()) { |
|
|
throw new BuildException(ERROR_RMIC_FAILED, getLocation()); |
|
|
throw new BuildException(ERROR_RMIC_FAILED, getLocation()); |
|
|