- Added some reports (javadoc, checkstyle, jxr)

- Fixed checkstyle errors
- Removed unneeded properties (they are now inherited from top level project.properties)


git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@115117 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
vmassol committed 2004-05-01 09:15:39 +00:00
1 parent 6f7994ba55
commit c81c44ea59
4 files changed
+38 -9

No files matched your search

-3
View File
@@ -17,6 +17,3 @@
# -------------------------------------------------------------------
# P R O J E C T P R O P E R T I E S
# -------------------------------------------------------------------
maven.xdoc.date=left
## maven.xdoc.version=${pom.currentVersion}
maven.license.licenseFile=${basedir}/../LICENSE.txt
+3
View File
@@ -73,10 +73,13 @@
<reports>
<report>maven-changes-plugin</report>
<report>maven-changelog-plugin</report>
<report>maven-javadoc-plugin</report>
<report>maven-checkstyle-plugin</report>
<report>maven-file-activity-plugin</report>
<report>maven-developer-activity-plugin</report>
<report>maven-file-activity-plugin</report>
<report>maven-license-plugin</report>
<report>maven-linkcheck-plugin</report>
<report>maven-jxr-plugin</report>
</reports>
</project>
@@ -1,7 +1,7 @@
package org.apache.maven.announcement;
/* ====================================================================
* Copyright 2001-2004 The Apache Software Foundation.
* Copyright 2003-2004 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -22,13 +22,30 @@ import java.util.List;
import java.util.StringTokenizer;
/**
* Format text by wrapping it if it goes beyond some column position.
*
* @author <a href="mailto:vmassol@apache.org">Vincent Massol</a>
*
* @version $Id: Formatter.java,v 1.3 2004/03/02 14:53:58 evenisse Exp $
* @version $Id: Formatter.java,v 1.4 2004/05/01 09:15:39 vmassol Exp $
*/
public class Formatter
public final class Formatter
{
public static List format(String text, int column)
/**
* Private constructor to prevent anyone from instantiating this utility
* class.
*/
private Formatter()
{
}
/**
* Format text by wrapping it if it goes beyond the passed column value.
*
* @param text the text to format
* @param column the max column position
* @return the wrapped text
*/
public static List format(final String text, final int column)
{
StringTokenizer st = new StringTokenizer(text, " \t\r\n");
List strings = new ArrayList();
@@ -46,10 +63,10 @@ public class Formatter
strings.add(buffer.toString());
buffer = new StringBuffer();
buffer.append(token);
buffer.append(' ');
buffer.append(' ');
}
}
strings.add(buffer.toString());
return strings;
}
}
}
@@ -0,0 +1,12 @@
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
<title></title>
</head>
<body>
<p>
Contains utility classes to perform operations that cannot be easily
implemented in Jelly.
</p>
</body>
</html>