|
@@ -11,7 +11,7 @@ |
11 |
11 |
|
import static com.esotericsoftware.scar.support.Parameter.*; |
12 |
12 |
|
|
13 |
13 |
|
@SuppressWarnings({"UnusedDeclaration"}) |
14 |
|
- |
public class ProjectParameters extends FileUtil { |
|
14 |
+ |
public class ProjectParameters extends FileUtils { |
15 |
15 |
|
public static final Parameter NAME = def( "name", Form.STRING, |
16 |
16 |
|
"The name of the project. Used to name the JAR.", // |
17 |
17 |
|
"Default:\n" + // |
|
@@ -29,11 +29,18 @@ |
29 |
29 |
|
"Default: The directory containing the project YAML file, plus 'build'." ); |
30 |
30 |
|
|
31 |
31 |
|
public static final Parameter DEPENDENCIES = def( "dependencies", Form.STRING_LIST, |
32 |
|
- |
"Relative or absolute path(s) to dependency project directories or YAML files." ); |
|
32 |
+ |
"Relative or absolute path(s) to dependent projects (directories or YAML files)\n" + |
|
33 |
+ |
"with an optional jars path reference (e.g. '|| xyzzy') should the dependent project be unreachable.\n" + |
|
34 |
+ |
"Note: IS included in actual ClassPath." ); |
|
35 |
+ |
|
|
36 |
+ |
public static final Parameter COMPILEDEPENDENCIES = def( "compiledependencies", Form.STRING_LIST, |
|
37 |
+ |
"Relative or absolute path(s) to dependent projects (directories or YAML files)\n" + |
|
38 |
+ |
"with an optional jars path reference (e.g. '|| xyzzy') should the dependent project be unreachable.\n" + |
|
39 |
+ |
"Note: Is NOT included in actual ClassPath." ); |
33 |
40 |
|
|
34 |
41 |
|
public static final Parameter COMPILECLASSPATH = def( "compileclasspath", Form.PATHS, |
35 |
|
- |
"Wildcard patterns for the file(s) to include on the 'compile' classpath.", // |
36 |
|
- |
"Note: automatically includes the ClassPath(s)." ); |
|
42 |
+ |
"Wildcard patterns for the file(s) to include on the 'compile' classpath.\n" + // |
|
43 |
+ |
"Note: automatically includes the ClassPath(s), but is NOT included in actual ClassPath." ); |
37 |
44 |
|
|
38 |
45 |
|
public static final Parameter CLASSPATH = def( "classpath", Form.PATHS, |
39 |
46 |
|
"Wildcard patterns for the file(s) to include on the classpath (both, compile & runtime/deployment).", // |
|
@@ -101,7 +108,6 @@ |
101 |
108 |
|
public static final Parameter GWTcr = def( "GWTcr", Form.STRING, |
102 |
109 |
|
"indicates that a GWT Compile Report is requested." ); |
103 |
110 |
|
|
104 |
|
- |
|
105 |
111 |
|
public static final String GWT_DEV = "gwt-dev.jar"; |
106 |
112 |
|
public static final String GWT_USER = "gwt-user.jar"; |
107 |
113 |
|
public static final String GWT_SERVLET = "gwt-servlet.jar"; |
|
@@ -267,6 +273,11 @@ |
267 |
273 |
|
return (zResult != null) ? zResult : Collections.<String>emptyList(); |
268 |
274 |
|
} |
269 |
275 |
|
|
|
276 |
+ |
public List<String> getCompileDependencies() { |
|
277 |
+ |
List<String> zResult = mManager.getCachedWithConversion( COMPILEDEPENDENCIES.getName(), FORMATTED_LIST_STRING ); |
|
278 |
+ |
return (zResult != null) ? zResult : Collections.<String>emptyList(); |
|
279 |
+ |
} |
|
280 |
+ |
|
270 |
281 |
|
public Paths getCompileClasspath() { |
271 |
282 |
|
return getPaths( COMPILECLASSPATH.getName() ); |
272 |
283 |
|
} |