1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 package org.apache.maven.plugins.war.stub;
20
21 import java.io.File;
22
23 import org.apache.maven.artifact.handler.ArtifactHandler;
24 import org.apache.maven.artifact.handler.DefaultArtifactHandler;
25
26 public class EJBClientArtifactStub extends AbstractArtifactStub {
27 protected String groupId;
28
29 public EJBClientArtifactStub(String _basedir) {
30 super(_basedir);
31 }
32
33 public void setGroupId(String id) {
34 groupId = id;
35 }
36
37 public String getGroupId() {
38 if (groupId != null) {
39 return groupId;
40 } else {
41 return "org.sample.ejb";
42 }
43 }
44
45 public String getType() {
46 return "ejb-client";
47 }
48
49 public String getClassifier() {
50 return "client";
51 }
52
53 public String getArtifactId() {
54 return "ejbclientartifact";
55 }
56
57 public File getFile() {
58 return new File(basedir, "/target/test-classes/unit/sample_wars/ejbclient.jar");
59 }
60
61 public ArtifactHandler getArtifactHandler() {
62 return new DefaultArtifactHandler() {
63 public String getExtension() {
64 return "jar";
65 }
66 };
67 }
68 }