mirror of https://github.com/apache/maven.git
o Removed dead code
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@991141 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
2df157de23
commit
98ba2c1f3d
|
@ -1,83 +0,0 @@
|
|||
package org.apache.maven.repository;
|
||||
|
||||
/*
|
||||
* 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 java.io.File;
|
||||
|
||||
import org.apache.maven.artifact.Artifact;
|
||||
import org.apache.maven.artifact.repository.ArtifactRepository;
|
||||
|
||||
/**
|
||||
* Describes an event to be consumed by {@link LocalRepositoryMaintainer}.
|
||||
*
|
||||
* @author Benjamin Bentmann
|
||||
*/
|
||||
public class DefaultLocalRepositoryMaintainerEvent
|
||||
implements LocalRepositoryMaintainerEvent
|
||||
{
|
||||
private ArtifactRepository localRepository;
|
||||
|
||||
private Artifact artifact;
|
||||
|
||||
private File file;
|
||||
|
||||
public DefaultLocalRepositoryMaintainerEvent( ArtifactRepository localRepository, Artifact artifact, File file )
|
||||
{
|
||||
this.localRepository = localRepository;
|
||||
this.artifact = artifact;
|
||||
this.file = ( file != null ) ? file : artifact.getFile();
|
||||
}
|
||||
|
||||
public ArtifactRepository getLocalRepository()
|
||||
{
|
||||
return localRepository;
|
||||
}
|
||||
|
||||
public String getGroupId()
|
||||
{
|
||||
return artifact.getGroupId();
|
||||
}
|
||||
|
||||
public String getArtifactId()
|
||||
{
|
||||
return artifact.getArtifactId();
|
||||
}
|
||||
|
||||
public String getClassifier()
|
||||
{
|
||||
return artifact.hasClassifier() ? artifact.getClassifier() : "";
|
||||
}
|
||||
|
||||
public String getVersion()
|
||||
{
|
||||
return artifact.getVersion();
|
||||
}
|
||||
|
||||
public String getType()
|
||||
{
|
||||
return artifact.getType();
|
||||
}
|
||||
|
||||
public File getFile()
|
||||
{
|
||||
return file;
|
||||
}
|
||||
|
||||
}
|
|
@ -1,46 +0,0 @@
|
|||
package org.apache.maven.repository;
|
||||
|
||||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Performs housekeeping tasks in response to updates to the local repository. This provides an extension point to
|
||||
* integrators to performs things like updating indexes.
|
||||
*
|
||||
* @author Benjamin Bentmann
|
||||
*/
|
||||
public interface LocalRepositoryMaintainer
|
||||
{
|
||||
|
||||
/**
|
||||
* Notifies the maintainer of the addition of an artifact to the local repository by a local build.
|
||||
*
|
||||
* @param event The event that holds details about the artifact, must not be {@code null}.
|
||||
*/
|
||||
void artifactInstalled( LocalRepositoryMaintainerEvent event );
|
||||
|
||||
/**
|
||||
* Notifies the maintainer of the addition of an artifact to the local repository by download from a remote
|
||||
* repository.
|
||||
*
|
||||
* @param event The event that holds details about the artifact, must not be {@code null}.
|
||||
*/
|
||||
void artifactDownloaded( LocalRepositoryMaintainerEvent event );
|
||||
|
||||
}
|
|
@ -1,83 +0,0 @@
|
|||
package org.apache.maven.repository;
|
||||
|
||||
/*
|
||||
* 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 java.io.File;
|
||||
|
||||
import org.apache.maven.artifact.repository.ArtifactRepository;
|
||||
|
||||
/**
|
||||
* Describes an event to be consumed by {@link LocalRepositoryMaintainer}.
|
||||
*
|
||||
* @author Benjamin Bentmann
|
||||
*/
|
||||
public interface LocalRepositoryMaintainerEvent
|
||||
{
|
||||
|
||||
/**
|
||||
* The local ArtifactRepository instance that generated the event.
|
||||
*
|
||||
* @return Source artifact repository, never {@code null}.
|
||||
*/
|
||||
ArtifactRepository getLocalRepository();
|
||||
|
||||
/**
|
||||
* The group id of the artifact.
|
||||
*
|
||||
* @return The group id of the artifact, never {@code null}.
|
||||
*/
|
||||
String getGroupId();
|
||||
|
||||
/**
|
||||
* The artifact id of the artifact.
|
||||
*
|
||||
* @return The artifact id of the artifact, never {@code null}.
|
||||
*/
|
||||
String getArtifactId();
|
||||
|
||||
/**
|
||||
* The version of the artifact.
|
||||
*
|
||||
* @return The version of the artifact, never {@code null}.
|
||||
*/
|
||||
String getVersion();
|
||||
|
||||
/**
|
||||
* The classifier of the artifact.
|
||||
*
|
||||
* @return The classifier of the artifact or an empty string if none, never {@code null}.
|
||||
*/
|
||||
String getClassifier();
|
||||
|
||||
/**
|
||||
* The type of the artifact.
|
||||
*
|
||||
* @return The type of the artifact, never {@code null}.
|
||||
*/
|
||||
String getType();
|
||||
|
||||
/**
|
||||
* The path to the artifact.
|
||||
*
|
||||
* @return The path to the artifact, never {@code null}.
|
||||
*/
|
||||
File getFile();
|
||||
|
||||
}
|
Loading…
Reference in New Issue