dion 02/05/22 18:18:45
Modified: src/java/org/apache/maven ProjectVerifier.java
Log:
CheckStyle issues submitted by Vincent Massol
Revision Changes Path
1.6 +25 -17
jakarta-turbine-maven/src/java/org/apache/maven/ProjectVerifier.java
Index: ProjectVerifier.java
===================================================================
RCS file:
/home/cvs/jakarta-turbine-maven/src/java/org/apache/maven/ProjectVerifier.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- ProjectVerifier.java 22 May 2002 17:49:32 -0000 1.5
+++ ProjectVerifier.java 23 May 2002 01:18:45 -0000 1.6
@@ -81,7 +81,8 @@
* and make sure they are all here before trying to compile.
*
* @author <a href="[EMAIL PROTECTED]">Jason van Zyl</a>
- * @version $Id: ProjectVerifier.java,v 1.5 2002/05/22 17:49:32 tcopeland Exp $
+ * @author <a href="[EMAIL PROTECTED]">Vincent Massol</a>
+ * @version $Id: ProjectVerifier.java,v 1.6 2002/05/23 01:18:45 dion Exp $
* @task Create a list of all things that could go wrong and then protect
* against them.
* @task Merge the XML POM validation mechanism in here.
@@ -131,7 +132,8 @@
* Name of the file in the maven.remoteRepo that enumerates the
* JARs that cannot be distributed by Maven.
*/
- private static final String NON_DIST_JAR_LIST = "non-distributable-jars.list";
+ private static final String NON_DIST_JAR_LIST =
+ "non-distributable-jars.list";
/**
* Default ctor.
@@ -197,9 +199,7 @@
}
/**
- * Execute the task.
- *
- * @throws BuildException
+ * @see ProjectExecutor#doExecute()
*/
public void doExecute()
throws Exception
@@ -214,7 +214,8 @@
private void verifyDependencies()
throws Exception
{
- for (Iterator i = getMavenProject().getDependencies().iterator();
i.hasNext();)
+ for (Iterator i = getMavenProject().getDependencies().iterator();
+ i.hasNext();)
{
Dependency dependency = (Dependency)i.next();
String jar = dependency.getJar();
@@ -268,14 +269,18 @@
{
if (!destinationFile.exists())
{
- String[] entry =
Strings.split((String)nonDistMap.get(dependency),"$");
+ String[] entry = Strings.split(
+ (String)nonDistMap.get(dependency),"$");
String downloadLocation = entry[0];
String additionalNotes = entry[1];
-
warnings.append("-------------------------------------------------\n");
+ warnings.append("---------------------------------" +
+ "----------------\n");
warnings.append("W A R N I N G\n");
-
warnings.append("------------------------------------------------\n");
- warnings.append("The following JAR must be downloaded
manually:\n");
+ warnings.append("---------------------------------" +
+ "---------------\n");
+ warnings.append("The following JAR must be " +
+ "downloaded manually:\n");
warnings.append(dependency + "\n");
warnings.append("\n");
warnings.append("You can find the JAR here:\n");
@@ -289,12 +294,14 @@
if (!getRemoteFile( dependency, destinationFile ))
{
-
warnings.append("-------------------------------------------------\n")
- .append("W A R N I N G\n")
-
.append("------------------------------------------------\n")
- .append("Failed to download dependent file ")
- .append(dependency)
- .append("\n\n");
+ warnings.append("-------------------------------------" +
+ "------------\n");
+ warnings.append("W A R N I N G\n");
+ warnings.append("-------------------------------------" +
+ "-----------\n");
+ warnings.append("Failed to download dependent file ");
+ warnings.append(dependency);
+ warnings.append("\n\n");
}
}
}
@@ -361,7 +368,8 @@
// Allow comments to be placed in the payload
// descriptor.
- if (line.startsWith("#") || line.startsWith("--") || line.length()
< 1)
+ if (line.startsWith("#") || line.startsWith("--") ||
+ line.length() < 1)
{
continue;
}
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>