KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > maven > MavenArtifactFilterManager


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

16
17 package org.apache.maven;
18
19 import org.apache.maven.artifact.resolver.filter.ArtifactFilter;
20 import org.apache.maven.artifact.resolver.filter.ExclusionSetFilter;
21
22 import java.util.Set JavaDoc;
23 import java.util.HashSet JavaDoc;
24
25 /**
26  * @author <a HREF="mailto:jason@maven.org">Jason van Zyl</a>
27  * @version $Id: MavenArtifactFilterManager.java 386444 2006-03-16 19:55:47Z jdcasey $
28  * @todo this should probably be a component with some dynamic control of filtering
29  */

30 public class MavenArtifactFilterManager
31 {
32     public static ArtifactFilter createStandardFilter()
33     {
34         // TODO: configure this from bootstrap or scan lib
35
Set JavaDoc artifacts = new HashSet JavaDoc();
36
37         artifacts.add( "classworlds" );
38         artifacts.add( "commons-cli" );
39         artifacts.add( "doxia-sink-api" );
40         artifacts.add( "jsch" );
41         artifacts.add( "maven-artifact" );
42         artifacts.add( "maven-artifact-manager" );
43         artifacts.add( "maven-core" );
44         artifacts.add( "maven-error-diagnoser" );
45         artifacts.add( "maven-model" );
46         artifacts.add( "maven-monitor" );
47         artifacts.add( "maven-plugin-api" );
48         artifacts.add( "maven-plugin-descriptor" );
49         artifacts.add( "maven-plugin-parameter-documenter" );
50         artifacts.add( "maven-plugin-registry" );
51         artifacts.add( "maven-profile" );
52         artifacts.add( "maven-project" );
53         artifacts.add( "maven-reporting-api" );
54         artifacts.add( "maven-repository-metadata" );
55         artifacts.add( "maven-settings" );
56         artifacts.add( "plexus-container-default" );
57         artifacts.add( "plexus-interactivity-api" );
58         artifacts.add( "plexus-utils" );
59         artifacts.add( "wagon-provider-api" );
60         artifacts.add( "wagon-file" );
61         artifacts.add( "wagon-http-lightweight" );
62         artifacts.add( "wagon-ssh" );
63         artifacts.add( "wagon-ssh-external" );
64
65         return new ExclusionSetFilter( artifacts );
66     }
67 }
68
Popular Tags