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 @Deprecated
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 @Override
44 public String getClassifier() {
45 return null;
46 }
47
48 @Override
49 public String getDirectory() {
50 return getPackaging() + "s";
51 }
52
53 @Override
54 public String getExtension() {
55 return extension;
56 }
57
58 @Override
59 public String getLanguage() {
60 return "java";
61 }
62
63 @Override
64 public String getPackaging() {
65 return type;
66 }
67
68 @Override
69 @Deprecated
70 public boolean isAddedToClasspath() {
71 return true;
72 }
73
74 @Override
75 public boolean isIncludesDependencies() {
76 return false;
77 }
78 }