\r
import org.apache.tools.ant.Project;\r
import java.io.File;\r
+import org.tianocore.build.global.PropertyManager;\r
\r
/**\r
OutputManager class is used to setup output directories (BIN_DIR, DEST_DIR_OUTPUT, \r
//\r
// Set properties\r
//\r
- project.setProperty("BUILD_DIR", buildDir.replaceAll("(\\\\)", "/"));\r
- project.setProperty("FV_DIR", fvDir.replaceAll("(\\\\)", "/"));\r
- project.setProperty("BIN_DIR", binDir.replaceAll("(\\\\)", "/"));\r
- project.setProperty("DEST_DIR_DEBUG", (destDir + File.separatorChar + "DEBUG").replaceAll("(\\\\)", "/"));\r
- project.setProperty("DEST_DIR_OUTPUT", (destDir + File.separatorChar + "OUTPUT").replaceAll("(\\\\)", "/"));\r
+ PropertyManager.setProperty(project, "BUILD_DIR", buildDir.replaceAll("(\\\\)", "/"));\r
+ PropertyManager.setProperty(project, "FV_DIR", fvDir.replaceAll("(\\\\)", "/"));\r
+ PropertyManager.setProperty(project, "BIN_DIR", binDir.replaceAll("(\\\\)", "/"));\r
+ PropertyManager.setProperty(project, "DEST_DIR_DEBUG", (destDir + File.separatorChar + "DEBUG").replaceAll("(\\\\)", "/"));\r
+ PropertyManager.setProperty(project, "DEST_DIR_OUTPUT", (destDir + File.separatorChar + "OUTPUT").replaceAll("(\\\\)", "/"));\r
\r
//\r
// Create all directory if necessary\r
//\r
// Set to property\r
//\r
- project.setProperty("BUILD_DIR", buildDir.replaceAll("(\\\\)", "/"));\r
+ PropertyManager.setProperty(project, "BUILD_DIR", buildDir.replaceAll("(\\\\)", "/"));\r
\r
//\r
// Create all directory if necessary\r