214 new StandardBundlerParam<>(
215 Arguments.CLIOptions.COPYRIGHT.getId(),
216 String.class,
217 params -> MessageFormat.format(I18N.getString(
218 "param.copyright.default"), new Date()),
219 (s, p) -> s
220 );
221
222 @SuppressWarnings("unchecked")
223 static final StandardBundlerParam<List<String>> ARGUMENTS =
224 new StandardBundlerParam<>(
225 Arguments.CLIOptions.ARGUMENTS.getId(),
226 (Class<List<String>>) (Object) List.class,
227 params -> Collections.emptyList(),
228 (s, p) -> splitStringWithEscapes(s)
229 );
230
231 @SuppressWarnings("unchecked")
232 static final StandardBundlerParam<List<String>> JVM_OPTIONS =
233 new StandardBundlerParam<>(
234 Arguments.CLIOptions.JVM_ARGS.getId(),
235 (Class<List<String>>) (Object) List.class,
236 params -> Collections.emptyList(),
237 (s, p) -> Arrays.asList(s.split("\n\n"))
238 );
239
240 // note that each bundler is likely to replace this one with
241 // their own converter
242 static final StandardBundlerParam<String> VERSION =
243 new StandardBundlerParam<>(
244 Arguments.CLIOptions.VERSION.getId(),
245 String.class,
246 params -> I18N.getString("param.version.default"),
247 (s, p) -> s
248 );
249
250 @SuppressWarnings("unchecked")
251 public static final StandardBundlerParam<String> LICENSE_FILE =
252 new StandardBundlerParam<>(
253 Arguments.CLIOptions.LICENSE_FILE.getId(),
254 String.class,
|
214 new StandardBundlerParam<>(
215 Arguments.CLIOptions.COPYRIGHT.getId(),
216 String.class,
217 params -> MessageFormat.format(I18N.getString(
218 "param.copyright.default"), new Date()),
219 (s, p) -> s
220 );
221
222 @SuppressWarnings("unchecked")
223 static final StandardBundlerParam<List<String>> ARGUMENTS =
224 new StandardBundlerParam<>(
225 Arguments.CLIOptions.ARGUMENTS.getId(),
226 (Class<List<String>>) (Object) List.class,
227 params -> Collections.emptyList(),
228 (s, p) -> splitStringWithEscapes(s)
229 );
230
231 @SuppressWarnings("unchecked")
232 static final StandardBundlerParam<List<String>> JVM_OPTIONS =
233 new StandardBundlerParam<>(
234 Arguments.CLIOptions.JAVA_OPTIONS.getId(),
235 (Class<List<String>>) (Object) List.class,
236 params -> Collections.emptyList(),
237 (s, p) -> Arrays.asList(s.split("\n\n"))
238 );
239
240 // note that each bundler is likely to replace this one with
241 // their own converter
242 static final StandardBundlerParam<String> VERSION =
243 new StandardBundlerParam<>(
244 Arguments.CLIOptions.VERSION.getId(),
245 String.class,
246 params -> I18N.getString("param.version.default"),
247 (s, p) -> s
248 );
249
250 @SuppressWarnings("unchecked")
251 public static final StandardBundlerParam<String> LICENSE_FILE =
252 new StandardBundlerParam<>(
253 Arguments.CLIOptions.LICENSE_FILE.getId(),
254 String.class,
|