Search in sources :

Example 1 with XPage

use of org.openntf.nsfodp.commons.odp.XPage in project org.openntf.nsfodp by OpenNTF.

the class ODPCompiler method importXPages.

private void importXPages(NDXLImporter importer, NDatabase database, JavaSourceClassLoader classLoader, Set<String> compiledClassNames) throws Exception {
    subTask(Messages.ODPCompiler_importingXPages);
    List<XPage> xpages = odp.getXPages();
    for (XPage xpage : xpages) {
        Document dxlDoc = importXSP(importer, database, classLoader, compiledClassNames, xpage);
        importDxl(importer, NSFODPDomUtil.getXmlString(dxlDoc, null), database, MessageFormat.format(Messages.ODPCompiler_XPageLabel, xpage.getPageName()));
    }
}
Also used : XPage(org.openntf.nsfodp.commons.odp.XPage) Document(org.w3c.dom.Document)

Example 2 with XPage

use of org.openntf.nsfodp.commons.odp.XPage in project org.openntf.nsfodp by OpenNTF.

the class ODPCompiler method compileXPages.

private Map<XPage, XSPCompilationResult> compileXPages(JavaSourceClassLoader classLoader) throws Exception {
    subTask(Messages.ODPCompiler_compilingXPages);
    Map<XPage, XSPCompilationResult> result = new LinkedHashMap<>();
    for (XPage xpage : odp.getXPages()) {
        XSPCompilationResult compilationResult = compileXSP(xpage, classLoader);
        result.put(xpage, compilationResult);
    }
    return result;
}
Also used : XPage(org.openntf.nsfodp.commons.odp.XPage) XSPCompilationResult(org.openntf.nsfodp.commons.odp.XSPCompilationResult) LinkedHashMap(java.util.LinkedHashMap)

Aggregations

XPage (org.openntf.nsfodp.commons.odp.XPage)2 LinkedHashMap (java.util.LinkedHashMap)1 XSPCompilationResult (org.openntf.nsfodp.commons.odp.XSPCompilationResult)1 Document (org.w3c.dom.Document)1