org.apache.commons.cli.CommandLine cli = parser.parse(options, args);
Sdk sdk = Sdk.getCurrent();
String targetHash = cli.getOptionValue("target");
IAndroidTarget target = sdk.getTargetFromHashString(targetHash);
Map<String,Object> parameters = new HashMap<String,Object>();
parameters.put("SDK_TARGET", target);
parameters.put("SRC_FOLDER", SdkConstants.FD_SOURCES);
parameters.put("IS_NEW_PROJECT", true);
parameters.put("SAMPLE_LOCATION", null);
parameters.put("IS_LIBRARY", cli.hasOption("library"));
parameters.put("ANDROID_SDK_TOOLS", AdtPlugin.getOsSdkToolsFolder());
parameters.put("PACKAGE", cli.getOptionValue("package"));
parameters.put("APPLICATION_NAME", "@string/app_name");
parameters.put("MIN_SDK_VERSION", target.getVersion().getApiString());
if (cli.hasOption("activity")){
parameters.put("ACTIVITY_NAME", cli.getOptionValue("activity"));
}
Map<String,String> dictionary = new HashMap<String,String>();