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 2011/04/25 23:19:57 UTC
svn commit: r1096608 - in /maven/plugins/trunk/maven-ear-plugin/src:
main/java/org/apache/maven/plugin/ear/ site/apt/ site/apt/examples/
test/java/org/apache/maven/plugin/ear/it/
test/java/org/apache/maven/plugin/ear/output/
Author: hboutemy
Date: Mon Apr 25 21:19:56 2011
New Revision: 1096608
URL: http://svn.apache.org/viewvc?rev=1096608&view=rev
Log:
fixed typos
Modified:
maven/plugins/trunk/maven-ear-plugin/src/main/java/org/apache/maven/plugin/ear/AbstractEarModule.java
maven/plugins/trunk/maven-ear-plugin/src/main/java/org/apache/maven/plugin/ear/ApplicationXmlWriterContext.java
maven/plugins/trunk/maven-ear-plugin/src/main/java/org/apache/maven/plugin/ear/EarModule.java
maven/plugins/trunk/maven-ear-plugin/src/main/java/org/apache/maven/plugin/ear/EarMojo.java
maven/plugins/trunk/maven-ear-plugin/src/main/java/org/apache/maven/plugin/ear/JbossConfiguration.java
maven/plugins/trunk/maven-ear-plugin/src/site/apt/examples/unpacking-a-module.apt.vm
maven/plugins/trunk/maven-ear-plugin/src/site/apt/tests.apt
maven/plugins/trunk/maven-ear-plugin/src/test/java/org/apache/maven/plugin/ear/it/AbstractEarPluginIT.java
maven/plugins/trunk/maven-ear-plugin/src/test/java/org/apache/maven/plugin/ear/output/FileNameMappingFactoryTest.java
Modified: maven/plugins/trunk/maven-ear-plugin/src/main/java/org/apache/maven/plugin/ear/AbstractEarModule.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-ear-plugin/src/main/java/org/apache/maven/plugin/ear/AbstractEarModule.java?rev=1096608&r1=1096607&r2=1096608&view=diff
==============================================================================
--- maven/plugins/trunk/maven-ear-plugin/src/main/java/org/apache/maven/plugin/ear/AbstractEarModule.java (original)
+++ maven/plugins/trunk/maven-ear-plugin/src/main/java/org/apache/maven/plugin/ear/AbstractEarModule.java Mon Apr 25 21:19:56 2011
@@ -122,7 +122,7 @@ public abstract class AbstractEarModule
}
else
{
- throw new MojoFailureException( "Artifact[" + this + "] " + "is not a dependency of the project." );
+ throw new MojoFailureException( "Artifact[" + this + "] is not a dependency of the project." );
}
}
}
@@ -356,7 +356,7 @@ public abstract class AbstractEarModule
}
/**
- * Sets the URI of the module explicitely for testing purposes.
+ * Sets the URI of the module explicitly for testing purposes.
*
* @param uri the uri
*/
Modified: maven/plugins/trunk/maven-ear-plugin/src/main/java/org/apache/maven/plugin/ear/ApplicationXmlWriterContext.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-ear-plugin/src/main/java/org/apache/maven/plugin/ear/ApplicationXmlWriterContext.java?rev=1096608&r1=1096607&r2=1096608&view=diff
==============================================================================
--- maven/plugins/trunk/maven-ear-plugin/src/main/java/org/apache/maven/plugin/ear/ApplicationXmlWriterContext.java (original)
+++ maven/plugins/trunk/maven-ear-plugin/src/main/java/org/apache/maven/plugin/ear/ApplicationXmlWriterContext.java Mon Apr 25 21:19:56 2011
@@ -82,7 +82,7 @@ class ApplicationXmlWriterContext
}
/**
- * Returns the list of {ÂŽlink SecurityRole} instances.
+ * Returns the list of {@link SecurityRole} instances.
*
* @return the security roles
*/
Modified: maven/plugins/trunk/maven-ear-plugin/src/main/java/org/apache/maven/plugin/ear/EarModule.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-ear-plugin/src/main/java/org/apache/maven/plugin/ear/EarModule.java?rev=1096608&r1=1096607&r2=1096608&view=diff
==============================================================================
--- maven/plugins/trunk/maven-ear-plugin/src/main/java/org/apache/maven/plugin/ear/EarModule.java (original)
+++ maven/plugins/trunk/maven-ear-plugin/src/main/java/org/apache/maven/plugin/ear/EarModule.java Mon Apr 25 21:19:56 2011
@@ -99,12 +99,12 @@ public interface EarModule
/**
* Resolves the {@link Artifact} represented by the module. Note
- * that the {@link EarExecutionContext} might be used to customiz
+ * that the {@link EarExecutionContext} might be used to customize
* further the resolution.
*
* @param artifacts the project's artifacts
* @throws EarPluginException if the artifact could not be resolved
- * @throws MojoFailureException if an unexpected error occured
+ * @throws MojoFailureException if an unexpected error occurred
*/
public void resolveArtifact( Set artifacts )
throws EarPluginException, MojoFailureException;
Modified: maven/plugins/trunk/maven-ear-plugin/src/main/java/org/apache/maven/plugin/ear/EarMojo.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-ear-plugin/src/main/java/org/apache/maven/plugin/ear/EarMojo.java?rev=1096608&r1=1096607&r2=1096608&view=diff
==============================================================================
--- maven/plugins/trunk/maven-ear-plugin/src/main/java/org/apache/maven/plugin/ear/EarMojo.java (original)
+++ maven/plugins/trunk/maven-ear-plugin/src/main/java/org/apache/maven/plugin/ear/EarMojo.java Mon Apr 25 21:19:56 2011
@@ -48,7 +48,7 @@ import java.util.Iterator;
import java.util.List;
/**
- * Builds J2EE Enteprise Archive (EAR) files.
+ * Builds J2EE Enterprise Archive (EAR) files.
*
* @author <a href="snicoll@apache.org">Stephane Nicoll</a>
* @version $Id$
Modified: maven/plugins/trunk/maven-ear-plugin/src/main/java/org/apache/maven/plugin/ear/JbossConfiguration.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-ear-plugin/src/main/java/org/apache/maven/plugin/ear/JbossConfiguration.java?rev=1096608&r1=1096607&r2=1096608&view=diff
==============================================================================
--- maven/plugins/trunk/maven-ear-plugin/src/main/java/org/apache/maven/plugin/ear/JbossConfiguration.java (original)
+++ maven/plugins/trunk/maven-ear-plugin/src/main/java/org/apache/maven/plugin/ear/JbossConfiguration.java Mon Apr 25 21:19:56 2011
@@ -235,7 +235,7 @@ class JbossConfiguration
/**
* The unauthenticated-principal element specifies the name of the principal
* that will be returned by the EJBContext.getCallerPrincipal() method if there
- * is no authenticated user. This Principal has no roles or privaledges to call
+ * is no authenticated user. This Principal has no roles or privileges to call
* any other beans.
* <p/>
* Only available as from JBoss 4.
Modified: maven/plugins/trunk/maven-ear-plugin/src/site/apt/examples/unpacking-a-module.apt.vm
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-ear-plugin/src/site/apt/examples/unpacking-a-module.apt.vm?rev=1096608&r1=1096607&r2=1096608&view=diff
==============================================================================
--- maven/plugins/trunk/maven-ear-plugin/src/site/apt/examples/unpacking-a-module.apt.vm (original)
+++ maven/plugins/trunk/maven-ear-plugin/src/site/apt/examples/unpacking-a-module.apt.vm Mon Apr 25 21:19:56 2011
@@ -26,7 +26,7 @@
Unpacking A Module
- If you need to unpack artifacts in the generted EAR, you can configure it in
+ If you need to unpack artifacts in the generated EAR, you can configure it in
two ways:
* Specify the unpack attribute on the required artifact(s)
Modified: maven/plugins/trunk/maven-ear-plugin/src/site/apt/tests.apt
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-ear-plugin/src/site/apt/tests.apt?rev=1096608&r1=1096607&r2=1096608&view=diff
==============================================================================
--- maven/plugins/trunk/maven-ear-plugin/src/site/apt/tests.apt (original)
+++ maven/plugins/trunk/maven-ear-plugin/src/site/apt/tests.apt Mon Apr 25 21:19:56 2011
@@ -78,9 +78,9 @@ EAR Plugin Tests
* project-024: builds an EAR and make sure that a single classified dependency is detected when specifying the classifier
- * project-025: builds an EAR and make sure that a classified dependency with mutiple candidates is detected when specifying the classifier
+ * project-025: builds an EAR and make sure that a classified dependency with multiple candidates is detected when specifying the classifier
- * project-026: builds an EAR and make sure that the build fails if a unclassifed module configuration with mutiple candidates is specified
+ * project-026: builds an EAR and make sure that the build fails if a unclassified module configuration with multiple candidates is specified
* project-027: builds an EAR and make sure that provided dependencies are not included in the EAR
@@ -98,7 +98,7 @@ EAR Plugin Tests
* project-034: builds an EAR with custom security settings
- * project-035: builds an EAR with a full filename mapping and make sure that custom locations are not overriden
+ * project-035: builds an EAR with a full filename mapping and make sure that custom locations are not overridden
* project-036: builds an EAR with a full filename mapping and make sure that groupIds with dots are replaced by dashes in filenames
Modified: maven/plugins/trunk/maven-ear-plugin/src/test/java/org/apache/maven/plugin/ear/it/AbstractEarPluginIT.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-ear-plugin/src/test/java/org/apache/maven/plugin/ear/it/AbstractEarPluginIT.java?rev=1096608&r1=1096607&r2=1096608&view=diff
==============================================================================
--- maven/plugins/trunk/maven-ear-plugin/src/test/java/org/apache/maven/plugin/ear/it/AbstractEarPluginIT.java (original)
+++ maven/plugins/trunk/maven-ear-plugin/src/test/java/org/apache/maven/plugin/ear/it/AbstractEarPluginIT.java Mon Apr 25 21:19:56 2011
@@ -70,7 +70,7 @@ public abstract class AbstractEarPluginI
* @param projectName the name of the project
* @param properties extra properties to be used by the embedder
* @return the base directory of the project
- * @throws Exception if an error occured
+ * @throws Exception if an error occurred
*/
protected File executeMojo( final String projectName, final Properties properties, boolean expectNoError )
throws Exception
@@ -113,7 +113,7 @@ public abstract class AbstractEarPluginI
* @param projectName the name of the project
* @param properties extra properties to be used by the embedder
* @return the base directory of the project
- * @throws Exception if an error occured
+ * @throws Exception if an error occurred
*/
protected File executeMojo( final String projectName, final Properties properties )
throws Exception
@@ -128,7 +128,7 @@ public abstract class AbstractEarPluginI
* @param projectName the project to test
* @param expectedArtifacts the list of artifacts to be found in the EAR archive
* @param artifactsDirectory whether the artifact is an exploded artifactsDirectory or not
- * @param testDeploymentDescriptors whether we should test deployemnt descriptors
+ * @param testDeploymentDescriptors whether we should test deployment descriptors
* @return the base directory of the project
* @throws Exception
*/
@@ -175,7 +175,7 @@ public abstract class AbstractEarPluginI
*
* @param projectName the project to test
* @param expectedArtifacts the list of artifacts to be found in the EAR archive
- * @param testDeploymentDescriptors whether we should test deployemnt descriptors
+ * @param testDeploymentDescriptors whether we should test deployment descriptors
* @return the base directory of the project
* @throws Exception
*/
@@ -280,14 +280,7 @@ public abstract class AbstractEarPluginI
{
public boolean accept( File dir, String name )
{
- if ( name.equals( "META-INF" ) )
- {
- return false;
- }
- else
- {
- return true;
- }
+ return !name.equals( "META-INF" );
}
} );
@@ -424,7 +417,6 @@ public abstract class AbstractEarPluginI
{
return ddDirectory.listFiles( new FilenameFilter()
{
-
public boolean accept( File dir, String name )
{
return !name.equalsIgnoreCase( "manifest.mf" );
Modified: maven/plugins/trunk/maven-ear-plugin/src/test/java/org/apache/maven/plugin/ear/output/FileNameMappingFactoryTest.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-ear-plugin/src/test/java/org/apache/maven/plugin/ear/output/FileNameMappingFactoryTest.java?rev=1096608&r1=1096607&r2=1096608&view=diff
==============================================================================
--- maven/plugins/trunk/maven-ear-plugin/src/test/java/org/apache/maven/plugin/ear/output/FileNameMappingFactoryTest.java (original)
+++ maven/plugins/trunk/maven-ear-plugin/src/test/java/org/apache/maven/plugin/ear/output/FileNameMappingFactoryTest.java Mon Apr 25 21:19:56 2011
@@ -21,22 +21,6 @@ package org.apache.maven.plugin.ear.outp
import junit.framework.TestCase;
-/*
- * Copyright 2001-2006 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.
- * 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.
- */
-
/**
* @author <a href="snicoll@apache.org">Stephane Nicoll</a>
* @version $Id$