\r
private String[] includes;\r
\r
- public ModuleBuildFileGenerator(Project project, String ffsKeyword, FpdModuleIdentification fpdModuleId, String[] includes) {\r
+ private SurfaceAreaQuery saq = null;\r
+ \r
+ public ModuleBuildFileGenerator(Project project, String ffsKeyword, FpdModuleIdentification fpdModuleId, String[] includes, SurfaceAreaQuery saq) {\r
this.project = project;\r
this.fpdModuleId = fpdModuleId;\r
this.ffsKeyword = ffsKeyword;\r
this.includes = includes;\r
+ this.saq = saq;\r
}\r
\r
/**\r
Error throws during BaseName_build.xml generating. \r
**/\r
public void genBuildFile(String buildFilename) throws BuildException {\r
- FfsProcess fp = new FfsProcess();\r
+ FfsProcess fp = new FfsProcess(saq);\r
DocumentBuilderFactory domfac = DocumentBuilderFactory.newInstance();\r
try {\r
DocumentBuilder dombuilder = domfac.newDocumentBuilder();\r
@param root Root element for current\r
**/\r
private void applyLibraryInstance(Document document, Node root) {\r
- ModuleIdentification[] libinstances = SurfaceAreaQuery.getLibraryInstance(fpdModuleId.getArch());\r
+ ModuleIdentification[] libinstances = saq.getLibraryInstance(fpdModuleId.getArch());\r
for (int i = 0; i < libinstances.length; i++) {\r
//\r
// Put package file path to module identification\r
//\r
// sourceFiles[][0] is FileType, [][1] is File name relative to Module_Dir\r
//\r
- String[][] sourceFiles = SurfaceAreaQuery.getSourceFiles(fpdModuleId.getArch());\r
+ String[][] sourceFiles = saq.getSourceFiles(fpdModuleId.getArch());\r
\r
FileProcess fileProcess = new FileProcess();\r
fileProcess.init(project, includes, document);\r