nameEl.appendChild(doc.createTextNode(name));
data.appendChild(nameEl);
Element minant = doc.createElementNS(J2SEProjectType.PROJECT_CONFIGURATION_NAMESPACE, "minimum-ant-version"); // NOI18N
minant.appendChild(doc.createTextNode(MINIMUM_ANT_VERSION)); // NOI18N
data.appendChild(minant);
EditableProperties ep = h.getProperties(AntProjectHelper.PROJECT_PROPERTIES_PATH);
Element sourceRoots = doc.createElementNS(J2SEProjectType.PROJECT_CONFIGURATION_NAMESPACE,"source-roots"); //NOI18N
if (srcRoot != null) {
Element root = doc.createElementNS (J2SEProjectType.PROJECT_CONFIGURATION_NAMESPACE,"root"); //NOI18N
root.setAttribute ("id","src.dir"); //NOI18N
sourceRoots.appendChild(root);
ep.setProperty("src.dir", srcRoot); // NOI18N
}
data.appendChild (sourceRoots);
Element testRoots = doc.createElementNS(J2SEProjectType.PROJECT_CONFIGURATION_NAMESPACE,"test-roots"); //NOI18N
if (testRoot != null) {
Element root = doc.createElementNS (J2SEProjectType.PROJECT_CONFIGURATION_NAMESPACE,"root"); //NOI18N
root.setAttribute ("id","test.src.dir"); //NOI18N
testRoots.appendChild (root);
ep.setProperty("test.src.dir", testRoot); // NOI18N
}
data.appendChild (testRoots);
h.putPrimaryConfigurationData(data, true);
ep.setProperty("dist.dir", "dist"); // NOI18N
ep.setComment("dist.dir", new String[] {"# " + NbBundle.getMessage(J2SEProjectGenerator.class, "COMMENT_dist.dir")}, false); // NOI18N
ep.setProperty("dist.jar", "${dist.dir}/" + PropertyUtils.getUsablePropertyName(name) + ".jar"); // NOI18N
ep.setProperty("javac.classpath", new String[0]); // NOI18N
ep.setProperty("build.sysclasspath", "ignore"); // NOI18N
ep.setComment("build.sysclasspath", new String[] {"# " + NbBundle.getMessage(J2SEProjectGenerator.class, "COMMENT_build.sysclasspath")}, false); // NOI18N
ep.setProperty("run.classpath", new String[] { // NOI18N
"${javac.classpath}:", // NOI18N
"${build.classes.dir}", // NOI18N
});
ep.setProperty("debug.classpath", new String[] { // NOI18N
"${run.classpath}", // NOI18N
});
ep.setProperty("jar.compress", "false"); // NOI18N
if (!isLibrary) {
ep.setProperty("main.class", mainClass == null ? "" : mainClass); // NOI18N
}
ep.setProperty("javac.compilerargs", ""); // NOI18N
ep.setComment("javac.compilerargs", new String[] {
"# " + NbBundle.getMessage(J2SEProjectGenerator.class, "COMMENT_javac.compilerargs"), // NOI18N
}, false);
ep.setProperty("scalac.compilerargs", ""); // NOI18N
ep.setComment("scalac.compilerargs", new String[] {
"# " + NbBundle.getMessage(J2SEProjectGenerator.class, "COMMENT_scalac.compilerargs"), // NOI18N
}, false);
SpecificationVersion sourceLevel = getDefaultSourceLevel();
ep.setProperty("javac.source", sourceLevel.toString()); // NOI18N
ep.setProperty("javac.target", sourceLevel.toString()); // NOI18N
ep.setProperty("javac.deprecation", "false"); // NOI18N
ep.setProperty("scalac.deprecation", "no"); // NOI18N
ep.setProperty("scalac.unchecked", "no"); // NOI18N
ep.setProperty("javac.test.classpath", new String[] { // NOI18N
"${javac.classpath}:", // NOI18N
"${build.classes.dir}:", // NOI18N
"${libs.junit.classpath}:", // NOI18N
"${libs.junit_4.classpath}", //NOI18N
});
ep.setProperty("run.test.classpath", new String[] { // NOI18N
"${javac.test.classpath}:", // NOI18N
"${build.test.classes.dir}", // NOI18N
});
ep.setProperty("debug.test.classpath", new String[] { // NOI18N
"${run.test.classpath}", // NOI18N
});
ep.setProperty("build.generated.dir", "${build.dir}/generated"); // NOI18N
ep.setProperty("meta.inf.dir", "${src.dir}/META-INF"); // NOI18N
ep.setProperty("build.dir", "build"); // NOI18N
ep.setComment("build.dir", new String[] {"# " + NbBundle.getMessage(J2SEProjectGenerator.class, "COMMENT_build.dir")}, false); // NOI18N
ep.setProperty("build.classes.dir", "${build.dir}/classes"); // NOI18N
ep.setProperty("build.test.classes.dir", "${build.dir}/test/classes"); // NOI18N
ep.setProperty("build.test.results.dir", "${build.dir}/test/results"); // NOI18N
ep.setProperty("build.classes.excludes", "**/*.java,**/*.form,**/*.scala"); // NOI18N
ep.setProperty("dist.javadoc.dir", "${dist.dir}/scaladoc"); // NOI18N
ep.setProperty("platform.active", "default_platform"); // NOI18N
ep.setProperty("java.platform.active", "java_default_platform"); // NOI18N
ep.setProperty("run.jvmargs", ""); // NOI18N
ep.setComment("run.jvmargs", new String[] {
"# " + NbBundle.getMessage(J2SEProjectGenerator.class, "COMMENT_run.jvmargs"), // NOI18N
"# " + NbBundle.getMessage(J2SEProjectGenerator.class, "COMMENT_run.jvmargs_2"), // NOI18N
"# " + NbBundle.getMessage(J2SEProjectGenerator.class, "COMMENT_run.jvmargs_3"), // NOI18N
}, false);
ep.setProperty(J2SEProjectProperties.JAVADOC_PRIVATE, "false"); // NOI18N
ep.setProperty(J2SEProjectProperties.JAVADOC_NO_TREE, "false"); // NOI18N
ep.setProperty(J2SEProjectProperties.JAVADOC_USE, "true"); // NOI18N
ep.setProperty(J2SEProjectProperties.JAVADOC_NO_NAVBAR, "false"); // NOI18N
ep.setProperty(J2SEProjectProperties.JAVADOC_NO_INDEX, "false"); // NOI18N
ep.setProperty(J2SEProjectProperties.JAVADOC_SPLIT_INDEX, "true"); // NOI18N
ep.setProperty(J2SEProjectProperties.JAVADOC_AUTHOR, "false"); // NOI18N
ep.setProperty(J2SEProjectProperties.JAVADOC_VERSION, "false"); // NOI18N
ep.setProperty(J2SEProjectProperties.JAVADOC_WINDOW_TITLE, ""); // NOI18N
ep.setProperty(J2SEProjectProperties.JAVADOC_ENCODING, "${"+J2SEProjectProperties.SOURCE_ENCODING+"}"); // NOI18N
ep.setProperty(J2SEProjectProperties.JAVADOC_ADDITIONALPARAM, ""); // NOI18N
Charset enc = FileEncodingQuery.getDefaultEncoding();
ep.setProperty(J2SEProjectProperties.SOURCE_ENCODING, enc.name());
if (manifestFile != null) {
ep.setProperty("manifest.file", manifestFile); // NOI18N
}
h.putProperties(AntProjectHelper.PROJECT_PROPERTIES_PATH, ep);
return h;
}