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.
ProjectProperties buildProperties = ProjectProperties.create(folderPath,
PropertyType.BUILD);
buildProperties.setProperty(ProjectProperties.PROPERTY_APP_PACKAGE, packageName);
+ if (isTestProject == true) {
+ buildProperties.setProperty(ProjectProperties.PROPERTY_TESTED_PROJECT, "..");
+ }
+
buildProperties.save();
// create the map for place-holders of values to replace in the templates
public final static String PROPERTY_SPLIT_BY_DENSITY = "split.density";
+ public final static String PROPERTY_TESTED_PROJECT = "tested.project.dir";
+
public static enum PropertyType {
BUILD("build.properties", BUILD_HEADER),
DEFAULT("default.properties", DEFAULT_HEADER),