1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 package org.apache.maven.repository;
20
21 import org.apache.maven.artifact.handler.ArtifactHandler;
22
23
24
25
26
27
28 class TestArtifactHandler implements ArtifactHandler {
29
30 private String type;
31
32 private String extension;
33
34 public TestArtifactHandler(String type) {
35 this(type, type);
36 }
37
38 public TestArtifactHandler(String type, String extension) {
39 this.type = type;
40 this.extension = extension;
41 }
42
43 public String getClassifier() {
44 return null;
45 }
46
47 public String getDirectory() {
48 return getPackaging() + "s";
49 }
50
51 public String getExtension() {
52 return extension;
53 }
54
55 public String getLanguage() {
56 return "java";
57 }
58
59 public String getPackaging() {
60 return type;
61 }
62
63 public boolean isAddedToClasspath() {
64 return true;
65 }
66
67 public boolean isIncludesDependencies() {
68 return false;
69 }
70 }