Add auto-generated tested.project.dir property

Adds tested.project.dir=".." to ProjectDir/tests/build.properties in order
to indicate automatically that this is a test project and point the
tested project directory.
This commit is contained in:
Piotr Gurgul
2009-09-22 13:58:28 -07:00
parent 780a7fa1f5
commit 28265ed42f
2 changed files with 6 additions and 0 deletions

View File

@@ -203,6 +203,10 @@ public class ProjectCreator {
ProjectProperties buildProperties = ProjectProperties.create(folderPath, ProjectProperties buildProperties = ProjectProperties.create(folderPath,
PropertyType.BUILD); PropertyType.BUILD);
buildProperties.setProperty(ProjectProperties.PROPERTY_APP_PACKAGE, packageName); buildProperties.setProperty(ProjectProperties.PROPERTY_APP_PACKAGE, packageName);
if (isTestProject == true) {
buildProperties.setProperty(ProjectProperties.PROPERTY_TESTED_PROJECT, "..");
}
buildProperties.save(); buildProperties.save();
// create the map for place-holders of values to replace in the templates // create the map for place-holders of values to replace in the templates

View File

@@ -46,6 +46,8 @@ public final class ProjectProperties {
public final static String PROPERTY_SPLIT_BY_DENSITY = "split.density"; public final static String PROPERTY_SPLIT_BY_DENSITY = "split.density";
public final static String PROPERTY_TESTED_PROJECT = "tested.project.dir";
public static enum PropertyType { public static enum PropertyType {
BUILD("build.properties", BUILD_HEADER), BUILD("build.properties", BUILD_HEADER),
DEFAULT("default.properties", DEFAULT_HEADER), DEFAULT("default.properties", DEFAULT_HEADER),