From c81c44ea59003f328146b2af3a09ce571bffd6a7 Mon Sep 17 00:00:00 2001 From: vmassol Date: Sat, 1 May 2004 09:15:39 +0000 Subject: [PATCH] - 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 --- announcement/project.properties | 3 -- announcement/project.xml | 3 ++ .../apache/maven/announcement/Formatter.java | 29 +++++++++++++++---- .../apache/maven/announcement/package.html | 12 ++++++++ 4 files changed, 38 insertions(+), 9 deletions(-) create mode 100644 announcement/src/main/org/apache/maven/announcement/package.html diff --git a/announcement/project.properties b/announcement/project.properties index f50b37af..d66f96c3 100644 --- a/announcement/project.properties +++ b/announcement/project.properties @@ -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 diff --git a/announcement/project.xml b/announcement/project.xml index e0380a1c..fa022f9d 100644 --- a/announcement/project.xml +++ b/announcement/project.xml @@ -73,10 +73,13 @@ maven-changes-plugin maven-changelog-plugin + maven-javadoc-plugin + maven-checkstyle-plugin maven-file-activity-plugin maven-developer-activity-plugin maven-file-activity-plugin maven-license-plugin maven-linkcheck-plugin + maven-jxr-plugin diff --git a/announcement/src/main/org/apache/maven/announcement/Formatter.java b/announcement/src/main/org/apache/maven/announcement/Formatter.java index c828bf13..9730d545 100644 --- a/announcement/src/main/org/apache/maven/announcement/Formatter.java +++ b/announcement/src/main/org/apache/maven/announcement/Formatter.java @@ -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 Vincent Massol * - * @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; } -} \ No newline at end of file +} diff --git a/announcement/src/main/org/apache/maven/announcement/package.html b/announcement/src/main/org/apache/maven/announcement/package.html new file mode 100644 index 00000000..7ee3435e --- /dev/null +++ b/announcement/src/main/org/apache/maven/announcement/package.html @@ -0,0 +1,12 @@ + + + + + + +

+ Contains utility classes to perform operations that cannot be easily + implemented in Jelly. +

+ +