Author: snicoll
Date: Sat Jan 14 05:34:26 2006
New Revision: 369021
URL: http://svn.apache.org/viewcvs?rev=369021&view=rev
Log:
Fixed checkstyle errors.
Added:
maven/maven-1/plugins-sandbox/trunk/source/src/main/org/apache/maven/source/package.html
(with props)
Modified:
maven/maven-1/plugins-sandbox/trunk/source/src/main/org/apache/maven/source/JavaSourceArtifactTypeHandler.java
Modified:
maven/maven-1/plugins-sandbox/trunk/source/src/main/org/apache/maven/source/JavaSourceArtifactTypeHandler.java
URL:
http://svn.apache.org/viewcvs/maven/maven-1/plugins-sandbox/trunk/source/src/main/org/apache/maven/source/JavaSourceArtifactTypeHandler.java?rev=369021&r1=369020&r2=369021&view=diff
==============================================================================
---
maven/maven-1/plugins-sandbox/trunk/source/src/main/org/apache/maven/source/JavaSourceArtifactTypeHandler.java
(original)
+++
maven/maven-1/plugins-sandbox/trunk/source/src/main/org/apache/maven/source/JavaSourceArtifactTypeHandler.java
Sat Jan 14 05:34:26 2006
@@ -17,9 +17,9 @@
* ====================================================================
*/
-import org.apache.maven.repository.ArtifactTypeHandler;
import org.apache.maven.MavenException;
import org.apache.maven.project.Project;
+import org.apache.maven.repository.ArtifactTypeHandler;
/**
* Java sources artifact type handler.
@@ -27,20 +27,23 @@
* @author <a href="[EMAIL PROTECTED]">Stephane Nicoll</a>
* @version $Id$
*/
-public class JavaSourceArtifactTypeHandler implements ArtifactTypeHandler
+public class JavaSourceArtifactTypeHandler
+ implements ArtifactTypeHandler
{
/**
* Map an artifact to a repository directory path.
*
* @param project the project for the artifact
- * @param type The type of the artifact
+ * @param type The type of the artifact
* @return the path
+ * @throws MavenException if an error occured while building the path
*/
- public String constructRepositoryDirectoryPath(String type, Project
project) throws MavenException
+ public String constructRepositoryDirectoryPath( String type, Project
project )
+ throws MavenException
{
StringBuffer path = new StringBuffer();
- path.append(project.getArtifactDirectory());
- path.append("/java-sources/");
+ path.append( project.getArtifactDirectory() );
+ path.append( "/java-sources/" );
return path.toString();
}
@@ -48,22 +51,26 @@
* Map an artifact to a repository path.
*
* @param project the project for the artifact
- * @param type The type of the artifact
- * @param version The version of the artifact (may be a snapshot)
+ * @param type The type of the artifact
+ * @param version The version of the artifact (may be a snapshot)
* @return the path
+ * @throws MavenException if an error occured while building the path
*/
- public String constructRepositoryFullPath(String type, Project project,
String version) throws MavenException
+ public String constructRepositoryFullPath( String type, Project project,
String version )
+ throws MavenException
{
- StringBuffer path = new
StringBuffer(constructRepositoryDirectoryPath(type, project));
- path.append(project.getArtifactId());
- path.append("-");
- path.append(version);
+ StringBuffer path = new StringBuffer(
constructRepositoryDirectoryPath( type, project ) );
+ path.append( project.getArtifactId() );
+ path.append( "-" );
+ path.append( version );
- if ( type.equals( "java-source" ) ) {
+ if ( type.equals( "java-source" ) )
+ {
path.append( "-sources.jar" );
}
- else {
- throw new MavenException("Unrecognised java-source type (is " +
type + ")");
+ else
+ {
+ throw new MavenException( "Unrecognised java-source type (is " +
type + ")" );
}
return path.toString();
Added:
maven/maven-1/plugins-sandbox/trunk/source/src/main/org/apache/maven/source/package.html
URL:
http://svn.apache.org/viewcvs/maven/maven-1/plugins-sandbox/trunk/source/src/main/org/apache/maven/source/package.html?rev=369021&view=auto
==============================================================================
---
maven/maven-1/plugins-sandbox/trunk/source/src/main/org/apache/maven/source/package.html
(added)
+++
maven/maven-1/plugins-sandbox/trunk/source/src/main/org/apache/maven/source/package.html
Sat Jan 14 05:34:26 2006
@@ -0,0 +1,27 @@
+<!--
+/*
+ * Copyright 2001-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.
+ * 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.
+ */
+ -->
+<html>
+<head>
+ <title>org.apache.maven.source</title>
+</head>
+<body>
+
+ <p>Handles source archive artifact.</p>
+
+</body>
+</html>
Propchange:
maven/maven-1/plugins-sandbox/trunk/source/src/main/org/apache/maven/source/package.html
------------------------------------------------------------------------------
svn:eol-style = native
Propchange:
maven/maven-1/plugins-sandbox/trunk/source/src/main/org/apache/maven/source/package.html
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision