You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by hb...@apache.org on 2012/11/25 21:31:20 UTC
svn commit: r1413408 - in
/maven/core-integration-testing/trunk/core-it-suite/src/test/resources:
mng-5338/project/src/main/java/org/apache/maven/its/mng5338/
mng-5382/src/main/java/org/apache/maven/plugins/
Author: hboutemy
Date: Sun Nov 25 20:31:17 2012
New Revision: 1413408
URL: http://svn.apache.org/viewvc?rev=1413408&view=rev
Log:
code formatting and license
Modified:
maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-5338/project/src/main/java/org/apache/maven/its/mng5338/App.java
maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-5382/src/main/java/org/apache/maven/plugins/Jsr330Component.java
maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-5382/src/main/java/org/apache/maven/plugins/Jsr330Mojo.java
Modified: maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-5338/project/src/main/java/org/apache/maven/its/mng5338/App.java
URL: http://svn.apache.org/viewvc/maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-5338/project/src/main/java/org/apache/maven/its/mng5338/App.java?rev=1413408&r1=1413407&r2=1413408&view=diff
==============================================================================
--- maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-5338/project/src/main/java/org/apache/maven/its/mng5338/App.java (original)
+++ maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-5338/project/src/main/java/org/apache/maven/its/mng5338/App.java Sun Nov 25 20:31:17 2012
@@ -1,5 +1,24 @@
package org.apache.maven.its.mng5338;
+/*
+ * 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
+ *
+ * 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.
+ */
+
/**
* Hello world!
*
Modified: maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-5382/src/main/java/org/apache/maven/plugins/Jsr330Component.java
URL: http://svn.apache.org/viewvc/maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-5382/src/main/java/org/apache/maven/plugins/Jsr330Component.java?rev=1413408&r1=1413407&r2=1413408&view=diff
==============================================================================
--- maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-5382/src/main/java/org/apache/maven/plugins/Jsr330Component.java (original)
+++ maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-5382/src/main/java/org/apache/maven/plugins/Jsr330Component.java Sun Nov 25 20:31:17 2012
@@ -1,17 +1,38 @@
package org.apache.maven.plugins;
+/*
+ * 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
+ *
+ * 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.
+ */
+
import javax.inject.Named;
import javax.inject.Singleton;
@Named
@Singleton
-public class Jsr330Component {
+public class Jsr330Component
+{
- public void hello() {
- System.out.println();
- System.out.println();
- System.out.println("Hello! I am a component that is being used via constructor injection! That's right, I'm a JSR330 badass.");
- System.out.println();
- System.out.println();
- }
+ public void hello()
+ {
+ System.out.println();
+ System.out.println();
+ System.out.println( "Hello! I am a component that is being used via constructor injection! That's right, I'm a JSR330 badass." );
+ System.out.println();
+ System.out.println();
+ }
}
Modified: maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-5382/src/main/java/org/apache/maven/plugins/Jsr330Mojo.java
URL: http://svn.apache.org/viewvc/maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-5382/src/main/java/org/apache/maven/plugins/Jsr330Mojo.java?rev=1413408&r1=1413407&r2=1413408&view=diff
==============================================================================
--- maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-5382/src/main/java/org/apache/maven/plugins/Jsr330Mojo.java (original)
+++ maven/core-integration-testing/trunk/core-it-suite/src/test/resources/mng-5382/src/main/java/org/apache/maven/plugins/Jsr330Mojo.java Sun Nov 25 20:31:17 2012
@@ -1,5 +1,24 @@
package org.apache.maven.plugins;
+/*
+ * 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
+ *
+ * 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.
+ */
+
import javax.inject.Inject;
import org.apache.maven.plugin.AbstractMojo;
@@ -7,20 +26,25 @@ import org.apache.maven.plugin.MojoExecu
import org.apache.maven.plugins.annotations.LifecyclePhase;
import org.apache.maven.plugins.annotations.Mojo;
-@Mojo(name = "hello", defaultPhase = LifecyclePhase.VALIDATE, requiresProject = false)
-public class Jsr330Mojo extends AbstractMojo {
+@Mojo( name = "hello", defaultPhase = LifecyclePhase.VALIDATE, requiresProject = false )
+public class Jsr330Mojo
+ extends AbstractMojo
+{
+
+ private Jsr330Component component;
+
+ @Inject
+ public Jsr330Mojo( Jsr330Component component )
+ {
+ this.component = component;
+ }
- private Jsr330Component component;
-
- @Inject
- public Jsr330Mojo(Jsr330Component component) {
- this.component = component;
- }
-
- public void execute() throws MojoExecutionException {
- //
- // Say hello to the world, my little constructor injected component!
- //
- component.hello();
- }
+ public void execute()
+ throws MojoExecutionException
+ {
+ //
+ // Say hello to the world, my little constructor injected component!
+ //
+ component.hello();
+ }
}