You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by pe...@apache.org on 2004/12/01 18:52:25 UTC
cvs commit: ant/src/main/org/apache/tools/ant/taskdefs Sleep.java Exit.java Input.java
peterreilly 2004/12/01 09:52:25
Modified: src/main/org/apache/tools/ant AntClassLoader.java
Executor.java
src/main/org/apache/tools/ant/taskdefs Sleep.java Exit.java
Input.java
Log:
checkstyle
Revision Changes Path
1.87 +3 -3 ant/src/main/org/apache/tools/ant/AntClassLoader.java
Index: AntClassLoader.java
===================================================================
RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/AntClassLoader.java,v
retrieving revision 1.86
retrieving revision 1.87
diff -u -r1.86 -r1.87
--- AntClassLoader.java 22 Nov 2004 09:23:26 -0000 1.86
+++ AntClassLoader.java 1 Dec 2004 17:52:25 -0000 1.87
@@ -47,7 +47,7 @@
*/
public class AntClassLoader extends ClassLoader implements SubBuildListener {
- private static final FileUtils fileUtils = FileUtils.newFileUtils();
+ private static final FileUtils FILE_UTILS = FileUtils.newFileUtils();
/**
* An enumeration of all resources of a given name found within the
@@ -909,7 +909,7 @@
if (resource.exists()) {
try {
- return fileUtils.getFileURL(resource);
+ return FILE_UTILS.getFileURL(resource);
} catch (MalformedURLException ex) {
return null;
}
@@ -924,7 +924,7 @@
ZipEntry entry = zipFile.getEntry(resourceName);
if (entry != null) {
try {
- return new URL("jar:" + fileUtils.getFileURL(file)
+ return new URL("jar:" + FILE_UTILS.getFileURL(file)
+ "!/" + entry);
} catch (MalformedURLException ex) {
return null;
1.2 +1 -1 ant/src/main/org/apache/tools/ant/Executor.java
Index: Executor.java
===================================================================
RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/Executor.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- Executor.java 31 Aug 2004 22:32:53 -0000 1.1
+++ Executor.java 1 Dec 2004 17:52:25 -0000 1.2
@@ -27,7 +27,7 @@
* Execute the specified Targets for the specified Project.
* @param project the Ant Project.
* @param targetNames String[] of Target names.
- * @throws BuildException.
+ * @throws BuildException on error
*/
void executeTargets(Project project, String[] targetNames)
throws BuildException;
1.20 +1 -0 ant/src/main/org/apache/tools/ant/taskdefs/Sleep.java
Index: Sleep.java
===================================================================
RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/taskdefs/Sleep.java,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -r1.19 -r1.20
--- Sleep.java 9 Mar 2004 16:48:06 -0000 1.19
+++ Sleep.java 1 Dec 2004 17:52:25 -0000 1.20
@@ -121,6 +121,7 @@
try {
Thread.sleep(millis);
} catch (InterruptedException ie) {
+ // Ignore Exception
}
}
1.37 +1 -1 ant/src/main/org/apache/tools/ant/taskdefs/Exit.java
Index: Exit.java
===================================================================
RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/taskdefs/Exit.java,v
retrieving revision 1.36
retrieving revision 1.37
diff -u -r1.36 -r1.37
--- Exit.java 22 Nov 2004 09:23:27 -0000 1.36
+++ Exit.java 1 Dec 2004 17:52:25 -0000 1.37
@@ -106,7 +106,7 @@
* The error message is constructed from the text fields, from
* the nested condition (if specified), or finally from
* the if and unless parameters (if present).
- * @throws BuildException
+ * @throws BuildException on error
*/
public void execute() throws BuildException {
boolean fail = (nestedConditionPresent()) ? testNestedCondition()
1.29 +1 -1 ant/src/main/org/apache/tools/ant/taskdefs/Input.java
Index: Input.java
===================================================================
RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/taskdefs/Input.java,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -r1.28 -r1.29
--- Input.java 9 Mar 2004 16:48:05 -0000 1.28
+++ Input.java 1 Dec 2004 17:52:25 -0000 1.29
@@ -95,7 +95,7 @@
/**
* Actual method executed by ant.
- * @throws BuildException
+ * @throws BuildException on error
*/
public void execute () throws BuildException {
if (addproperty != null
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org