1 package org.codehaus.mojo.webstart.generator;
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22 import org.apache.maven.project.MavenProject;
23
24 import java.io.File;
25
26
27
28
29
30
31
32 public class GeneratorTechnicalConfig
33 {
34
35 private final MavenProject mavenProject;
36
37 private final File outputFile;
38
39 private final String mainClass;
40
41 private final String encoding;
42
43 private final File resourceLoaderPath;
44
45 private final String defaultTemplateResourceName;
46
47 private final String inputFileTemplatePath;
48
49 private final String webstartJarURL;
50
51 public GeneratorTechnicalConfig( MavenProject mavenProject, File resourceLoaderPath,
52 String defaultTemplateResourceName, File outputFile, String inputFileTemplatePath,
53 String mainClass, String webstartJarURL, String encoding )
54 {
55 if ( mavenProject == null )
56 {
57 throw new IllegalArgumentException( "mavenProject must not be null" );
58 }
59
60 if ( resourceLoaderPath == null )
61 {
62 throw new IllegalArgumentException( "resourceLoaderPath must not be null" );
63 }
64
65 if ( outputFile == null )
66 {
67 throw new IllegalArgumentException( "outputFile must not be null" );
68 }
69
70
71
72
73
74
75 this.mavenProject = mavenProject;
76 this.outputFile = outputFile;
77 this.mainClass = mainClass;
78 this.encoding = encoding;
79 this.resourceLoaderPath = resourceLoaderPath;
80 this.defaultTemplateResourceName = defaultTemplateResourceName;
81 this.inputFileTemplatePath = inputFileTemplatePath;
82 this.webstartJarURL = webstartJarURL;
83 }
84
85 public MavenProject getMavenProject()
86 {
87 return mavenProject;
88 }
89
90 public File getOutputFile()
91 {
92 return outputFile;
93 }
94
95 public String getMainClass()
96 {
97 return mainClass;
98 }
99
100 public String getEncoding()
101 {
102 return encoding;
103 }
104
105 public File getResourceLoaderPath()
106 {
107 return resourceLoaderPath;
108 }
109
110 public String getDefaultTemplateResourceName()
111 {
112 return defaultTemplateResourceName;
113 }
114
115 public String getInputFileTemplatePath()
116 {
117 return inputFileTemplatePath;
118 }
119
120 public String getWebstartJarURL()
121 {
122 return webstartJarURL;
123 }
124 }