maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hbout...@apache.org
Subject svn commit: r1601326 - in /maven/plugins/trunk/maven-site-plugin/src/it/MSITE-627: invoker.properties pom.xml src/main/java/org/apache/maven/plugins/it/MyReport.java
Date Mon, 09 Jun 2014 08:57:36 GMT
Author: hboutemy
Date: Mon Jun  9 08:57:36 2014
New Revision: 1601326

URL: http://svn.apache.org/r1601326
Log:
simplified execution

Modified:
    maven/plugins/trunk/maven-site-plugin/src/it/MSITE-627/invoker.properties
    maven/plugins/trunk/maven-site-plugin/src/it/MSITE-627/pom.xml
    maven/plugins/trunk/maven-site-plugin/src/it/MSITE-627/src/main/java/org/apache/maven/plugins/it/MyReport.java

Modified: maven/plugins/trunk/maven-site-plugin/src/it/MSITE-627/invoker.properties
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-site-plugin/src/it/MSITE-627/invoker.properties?rev=1601326&r1=1601325&r2=1601326&view=diff
==============================================================================
--- maven/plugins/trunk/maven-site-plugin/src/it/MSITE-627/invoker.properties (original)
+++ maven/plugins/trunk/maven-site-plugin/src/it/MSITE-627/invoker.properties Mon Jun  9 08:57:36
2014
@@ -15,7 +15,7 @@
 # specific language governing permissions and limitations
 # under the License.
 
-invoker.goals.1 = clean
-invoker.goals.2 = install
-invoker.goals.3 = site
+invoker.goals.1 = clean install
+invoker.debug.1 = false
+invoker.goals.2 = site
 invoker.maven.version = 3.0+
\ No newline at end of file

Modified: maven/plugins/trunk/maven-site-plugin/src/it/MSITE-627/pom.xml
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-site-plugin/src/it/MSITE-627/pom.xml?rev=1601326&r1=1601325&r2=1601326&view=diff
==============================================================================
--- maven/plugins/trunk/maven-site-plugin/src/it/MSITE-627/pom.xml (original)
+++ maven/plugins/trunk/maven-site-plugin/src/it/MSITE-627/pom.xml Mon Jun  9 08:57:36 2014
@@ -31,6 +31,10 @@ under the License.
   <name>it-plugin-test Maven Mojo</name>
   <url>http://maven.apache.org</url>
 
+  <properties>
+    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+  </properties>
+
   <dependencies>
     <dependency>
       <groupId>org.apache.maven.reporting</groupId>

Modified: maven/plugins/trunk/maven-site-plugin/src/it/MSITE-627/src/main/java/org/apache/maven/plugins/it/MyReport.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-site-plugin/src/it/MSITE-627/src/main/java/org/apache/maven/plugins/it/MyReport.java?rev=1601326&r1=1601325&r2=1601326&view=diff
==============================================================================
--- maven/plugins/trunk/maven-site-plugin/src/it/MSITE-627/src/main/java/org/apache/maven/plugins/it/MyReport.java
(original)
+++ maven/plugins/trunk/maven-site-plugin/src/it/MSITE-627/src/main/java/org/apache/maven/plugins/it/MyReport.java
Mon Jun  9 08:57:36 2014
@@ -1,19 +1,22 @@
 package org.apache.maven.plugins.it;
 
 /*
- * Copyright 2001-2005 The Apache Software Foundation.
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
  *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
+ *   http://www.apache.org/licenses/LICENSE-2.0
  *
- *      http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
  */
 
 import org.apache.maven.doxia.sink.Sink;
@@ -27,48 +30,60 @@ import java.util.Locale;
 
 /**
  * Goal which creates a sink in a report.
- *
+ * 
  * @goal test
  * @phase site
  */
-public class MyReport extends AbstractMavenReport {
+public class MyReport
+    extends AbstractMavenReport
+{
 
-    public String getOutputName() {
+    public String getOutputName()
+    {
         return "MSITE-627";
     }
 
-    public String getName(Locale locale) {
+    public String getName( Locale locale )
+    {
         return "MSITE-627";
     }
 
-    public String getDescription(Locale locale) {
+    public String getDescription( Locale locale )
+    {
         return "Test Report for MSITE-672";
     }
 
     @Override
-    protected Renderer getSiteRenderer() {
+    protected Renderer getSiteRenderer()
+    {
         return null;
     }
 
     @Override
-    protected String getOutputDirectory() {
+    protected String getOutputDirectory()
+    {
         return null;
     }
 
     @Override
-    protected MavenProject getProject() {
+    protected MavenProject getProject()
+    {
         return null;
     }
 
     @Override
-    protected void executeReport(Locale locale) throws MavenReportException {
+    protected void executeReport( Locale locale )
+        throws MavenReportException
+    {
         final Sink s = getSink();
-        final Sink sa = new SinkAdapter() {
+        final Sink sa = new SinkAdapter()
+        {
             @Override
-            public void text(String text) {                
-                s.text(text.replace("OK", "passed"));
-            }            
+            public void text( String text )
+            {
+                s.text( text.replace( "OK", "passed" ) );
+            }
         };
-        sa.text("Test OK");
+        sa.text( "Test OK" );
     }
 }



Mime
View raw message