mirror of https://github.com/apache/maven.git
Added javadoc and war handlers
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@163304 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
4f8b150004
commit
91c2856267
|
@ -0,0 +1,44 @@
|
|||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
package org.apache.maven.artifact.handler;
|
||||
|
||||
import org.apache.maven.artifact.Artifact;
|
||||
|
||||
import java.io.File;
|
||||
|
||||
/**
|
||||
* @author <a href="mailto:carlos@apache.org">Carlos Sanchez </a>
|
||||
* @version $Id$
|
||||
*/
|
||||
public class JavadocHandler
|
||||
extends AbstractArtifactHandler
|
||||
{
|
||||
public File source( String basedir, Artifact artifact )
|
||||
{
|
||||
return new File( basedir, artifact.getArtifactId() + "-" + artifact.getVersion() + "-javadocs." + extension() );
|
||||
}
|
||||
|
||||
public String extension()
|
||||
{
|
||||
return "jar";
|
||||
}
|
||||
|
||||
public String directory()
|
||||
{
|
||||
return "javadocs";
|
||||
}
|
||||
}
|
|
@ -0,0 +1,35 @@
|
|||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
package org.apache.maven.artifact.handler;
|
||||
|
||||
/**
|
||||
* @author <a href="mailto:carlos@apache.org">Carlos Sanchez</a>
|
||||
* @version $Id$
|
||||
*/
|
||||
public class WarHandler
|
||||
extends AbstractArtifactHandler
|
||||
{
|
||||
public String extension()
|
||||
{
|
||||
return "war";
|
||||
}
|
||||
|
||||
public String directory()
|
||||
{
|
||||
return "wars";
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue