public ModelFile buildFile() throws Exception { ModelFile modelXhtmlFile = new ModelFile(); modelXhtmlFile.setTargetFile("serviceList.xhtml"); modelXhtmlFile.setTargetFolder("src/main/webapp/pages"); modelXhtmlFile.setTargetPath(context.getTargetPath() + "/" + modelXhtmlFile.getTargetFolder()); modelXhtmlFile.setTextContent(getXhtmlContent(false)); return modelXhtmlFile; }
public ModelFile buildFile(Information information, Element element) throws Exception { String elementName = ModelLayerHelper.getElementNameUncapped(element); String folderName = ModelLayerHelper.getElementWebappFolder(element); String fileName = elementName + "TreeActions.xhtml"; if (elementName.equals("Application")) { element.setParentType("Project"); element.getSubTypes().clear(); element.getSubTypes().add(""); } ModelFile modelFile = createMainWebappFile(folderName, fileName); modelFile.setTextContent(getFileContent(element)); return modelFile; }