KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > maven > artifact > deployer > ArtifactDeployer


1 package org.apache.maven.artifact.deployer;
2
3 /*
4  * Copyright 2001-2005 The Apache Software Foundation.
5  *
6  * Licensed under the Apache License, Version 2.0 (the "License");
7  * you may not use this file except in compliance with the License.
8  * You may obtain a copy of the License at
9  *
10  * http://www.apache.org/licenses/LICENSE-2.0
11  *
12  * Unless required by applicable law or agreed to in writing, software
13  * distributed under the License is distributed on an "AS IS" BASIS,
14  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15  * See the License for the specific language governing permissions and
16  * limitations under the License.
17  */

18
19 import org.apache.maven.artifact.Artifact;
20 import org.apache.maven.artifact.repository.ArtifactRepository;
21
22 import java.io.File JavaDoc;
23
24 public interface ArtifactDeployer
25 {
26     String JavaDoc ROLE = ArtifactDeployer.class.getName();
27
28     /**
29      * Deploy an artifact from a particular directory. The artifact handler is used to determine the filename
30      * of the source file.
31      *
32      * @param basedir the directory where the artifact is stored
33      * @param finalName the name of the artifact sans extension
34      * @param artifact the artifact definition
35      * @param deploymentRepository the repository to deploy to
36      * @param localRepository the local repository to install into
37      * @throws ArtifactDeploymentException if an error occurred deploying the artifact
38      * @deprecated to be removed before 2.0 after the instlal/deploy plugins use the alternate method
39      */

40     void deploy( String JavaDoc basedir, String JavaDoc finalName, Artifact artifact, ArtifactRepository deploymentRepository,
41                  ArtifactRepository localRepository )
42         throws ArtifactDeploymentException;
43
44     /**
45      * Deploy an artifact from a particular file.
46      *
47      * @param source the file to deploy
48      * @param artifact the artifact definition
49      * @param deploymentRepository the repository to deploy to
50      * @param localRepository the local repository to install into
51      * @throws ArtifactDeploymentException if an error occurred deploying the artifact
52      */

53     void deploy( File JavaDoc source, Artifact artifact, ArtifactRepository deploymentRepository,
54                  ArtifactRepository localRepository )
55         throws ArtifactDeploymentException;
56 }
57
Popular Tags