diff --git a/announcement/.cvsignore b/announcement/.cvsignore new file mode 100644 index 00000000..9852215d --- /dev/null +++ b/announcement/.cvsignore @@ -0,0 +1,6 @@ +target +velocity.log +maven.log +build.properties +.classpath +.project diff --git a/announcement/plugin.jelly b/announcement/plugin.jelly new file mode 100644 index 00000000..4fb1744e --- /dev/null +++ b/announcement/plugin.jelly @@ -0,0 +1,49 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/announcement/plugin.properties b/announcement/plugin.properties new file mode 100644 index 00000000..54b3e33d --- /dev/null +++ b/announcement/plugin.properties @@ -0,0 +1,6 @@ +# ------------------------------------------------------------------- +# Properties for the Announcement plugin +# ------------------------------------------------------------------- + +# Version for which to create a release note. +maven.announcement.version = ${pom.currentVersion} diff --git a/announcement/project.properties b/announcement/project.properties new file mode 100644 index 00000000..6fc6f3df --- /dev/null +++ b/announcement/project.properties @@ -0,0 +1,6 @@ +# ------------------------------------------------------------------- +# 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 new file mode 100644 index 00000000..e3cea817 --- /dev/null +++ b/announcement/project.xml @@ -0,0 +1,40 @@ + + + + ../project.xml + 3 + maven-announcement-plugin + Maven Announcement plugin + 1.0-SNAPSHOT + Produce release announcement + http://maven.apache.org/reference/plugins/announcement/ + + http://jira.codehaus.org/BrowseProject.jspa?id=xxxx + /www/maven.apache.org/reference/plugins/announcement/ + + scm:cvs:pserver:anoncvs@cvs.apache.org:/home/cvspublic:maven-plugins/announcement/ + http://cvs.apache.org/viewcvs/maven-plugins/announcement/ + + + + Vincent Massol + vmassol + vmassol@pivolis.com + Pivolis + + Creator + Java Developer + + + + + + maven-changes-plugin + maven-changelog-plugin + maven-file-activity-plugin + maven-developer-activity-plugin + maven-file-activity-plugin + maven-license-plugin + maven-linkcheck-plugin + + diff --git a/announcement/src/main/org/apache/maven/announcement/Formatter.java b/announcement/src/main/org/apache/maven/announcement/Formatter.java new file mode 100644 index 00000000..106d39f5 --- /dev/null +++ b/announcement/src/main/org/apache/maven/announcement/Formatter.java @@ -0,0 +1,97 @@ +package org.apache.maven.announcement; + +/* ==================================================================== + * The Apache Software License, Version 1.1 + * + * Copyright (c) 2001 The Apache Software Foundation. All rights + * reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * 3. The end-user documentation included with the redistribution, + * if any, must include the following acknowledgment: + * "This product includes software developed by the + * Apache Software Foundation (http://www.apache.org/)." + * Alternately, this acknowledgment may appear in the software itself, + * if and wherever such third-party acknowledgments normally appear. + * + * 4. The names "Apache" and "Apache Software Foundation" and + * "Apache Maven" must not be used to endorse or promote products + * derived from this software without prior written permission. For + * written permission, please contact apache@apache.org. + * + * 5. Products derived from this software may not be called "Apache", + * "Apache Maven", nor may "Apache" appear in their name, without + * prior written permission of the Apache Software Foundation. + * + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES + * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR + * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF + * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, + * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT + * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + * ==================================================================== + * + * This software consists of voluntary contributions made by many + * individuals on behalf of the Apache Software Foundation. For more + * information on the Apache Software Foundation, please see + * . + * + * ==================================================================== + */ +import java.util.ArrayList; +import java.util.List; +import java.util.StringTokenizer; + +/** + * @author Vincent Massol + * + * @version $Id: Formatter.java,v 1.1 2003/11/16 22:48:57 vmassol Exp $ + */ +public class Formatter +{ + public static List format(String text, int column) + { + StringTokenizer st = new StringTokenizer(text, " \t\r\n"); + List strings = new ArrayList(); + StringBuffer buffer = new StringBuffer(); + while (st.hasMoreTokens()) + { + String token = (String) st.nextToken(); + if (buffer.length() + token.length() <= column) + { + buffer.append(token); + buffer.append(' '); + } + else + { + buffer.append('\r'); + buffer.append('\n'); + strings.add(buffer.toString()); + buffer = new StringBuffer(); + buffer.append(token); + buffer.append(' '); + } + } + buffer.append('\r'); + buffer.append('\n'); + strings.add(buffer.toString()); + return strings; + } +} \ No newline at end of file diff --git a/announcement/src/plugin-resources/announcement.jsl b/announcement/src/plugin-resources/announcement.jsl new file mode 100644 index 00000000..b1325f6c --- /dev/null +++ b/announcement/src/plugin-resources/announcement.jsl @@ -0,0 +1,64 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/announcement/xdocs/.cvsignore b/announcement/xdocs/.cvsignore new file mode 100644 index 00000000..cb6131bb --- /dev/null +++ b/announcement/xdocs/.cvsignore @@ -0,0 +1 @@ +stylesheets diff --git a/announcement/xdocs/changes.xml b/announcement/xdocs/changes.xml new file mode 100644 index 00000000..ed63555e --- /dev/null +++ b/announcement/xdocs/changes.xml @@ -0,0 +1,18 @@ + + + + Announcement plugin changes + Vincent Massol + + + + + + + Initial creation. + + + + + + diff --git a/announcement/xdocs/goals.xml b/announcement/xdocs/goals.xml new file mode 100644 index 00000000..749a28d8 --- /dev/null +++ b/announcement/xdocs/goals.xml @@ -0,0 +1,22 @@ + + + + + Maven Announcement plugin goals + Vincent Massol + + + +
+ + + + + + +
GoalDescription
announcement:text + Generate text release announcement. +
+
+ +
diff --git a/announcement/xdocs/index.xml b/announcement/xdocs/index.xml new file mode 100644 index 00000000..4eb02967 --- /dev/null +++ b/announcement/xdocs/index.xml @@ -0,0 +1,18 @@ + + + + + Maven Announcement plugin + Vincent Massol + + + +
+

+ Generates release announcements. It takes information from the + POM and from the changes.xml file and using a template + generates release information. +

+
+ +
diff --git a/announcement/xdocs/navigation.xml b/announcement/xdocs/navigation.xml new file mode 100644 index 00000000..f617df22 --- /dev/null +++ b/announcement/xdocs/navigation.xml @@ -0,0 +1,15 @@ + + + + Maven Announcement plugin + + + + + + + + + + + diff --git a/announcement/xdocs/properties.xml b/announcement/xdocs/properties.xml new file mode 100644 index 00000000..0ee4c583 --- /dev/null +++ b/announcement/xdocs/properties.xml @@ -0,0 +1,26 @@ + + + + + Announcement plugin properties + Vincent Massol + + + +
+ + + + + + + + +
PropertyOptional?DescriptionDefault
maven.announcement.versionYes + Version for which to create a release note. + + ${pom.currentVersion} +
+
+ +
diff --git a/project.properties b/project.properties index 5da4040a..5afc6dbb 100644 --- a/project.properties +++ b/project.properties @@ -5,6 +5,10 @@ maven.xdoc.date.format = dd MMMM yyyy HH:mm z # Enable HTML to xdoc transformation maven.html2xdoc.enabled=true +# Choose aggregators to use for the dashboard plugin report +maven.dashboard.aggregators = csall,clovertpc,cloverloc,cloverncloc +maven.clover.report.xml=true + #------------------------------------------------------------------ # M U L T I P R O J E C T - A L L P L U G I N G S #------------------------------------------------------------------