// site from atlas project
{
File siteDir = new File(atlasDir, "site");
if( siteDir.exists() && siteDir.isDirectory() ) {
FSEntry siteEntry = new FSEntryFile(siteDir);
mergedEntries.add(siteEntry);
}
}
// Create atlas designator
{
StringWriter sw = new StringWriter();
PrintWriter pw = new PrintWriter(sw);
printAtlasVendorFile(pw, atlasProperties, DatabaseType.DOCUMENT_DATABASE);
FSEntry f = FSEntryBuffer.getPositionedBuffer("a/vendor/nunaliit2/atlas.js", sw.toString());
mergedEntries.add(f);
f = FSEntryBuffer.getPositionedBuffer("a/_attachments/lib/atlas.js", sw.toString());
mergedEntries.add(f);
}
// Template for _design/site
{
File siteDesignDocDir = PathComputer.computeSiteDesignDir( gs.getInstallDir() );
if( siteDesignDocDir.exists() && siteDesignDocDir.isDirectory() ){
FSEntry templateDir = new FSEntryFile(siteDesignDocDir);
mergedEntries.add(templateDir);
} else {
throw new Exception("Unable to find internal template for _design/site");
}
}