UpdateSiteGenerator { public void generateIndex(String target) throws Exception { String indexHTML = new UpdateSiteIndex().generate(new UpdateSiteIndexGenerator(target)); FileOutputStream out = new FileOutputStream(new File(target, "index.html")); try { byte[] bytes = indexHTML.getBytes("UTF-8"); out.write(bytes); } finally { out.close(); } File targetFile = new File(target); if (targetFile.isDirectory()) { for (File child : targetFile.listFiles()) { if (child.isDirectory() && (new File(child, "compositeContent.jar").isFile() || new File(child, "content.jar").isFile())) { generateIndex(child.getPath()); } } } }  String getPromoteUpdateSiteDestination(String buildType, String name); File promoteUpdateSite(final String source, final String buildType, String buildTimestamp); File mirrorUpdateSite(final String source, final String buildType); String getVersion(String targetRepository); RepositoryAnalyzer getRepositoryAnalyzer(List<String> repositories); String getCompositeUpdateSiteDestination(String buildType, boolean latest); String composeUpdateSites(List<String> sources, final String buildType, final boolean latest); static URI createURI(String path); static URI createURI(File file); void generateIndex(String target); void generateDownloads(String target); static void sort(List<String> repositories); static String getCanonicalPath(File file); static File getArchiveFile(String repository); static File createArchive(String repository); static File getDigestFile(String target, String algorithm); static final int RETAINED_NIGHTLY_BUILDS; static final List<String> BUILD_TYPES; static final List<String> BUILD_TYPE_QUALIFIERS; static final String DOWNLOAD_ECLIPSE_ORG_FOLDER; static final String DOWLOAD_ROOT_FOLDER; static final String BUILDS_ROOT_FOLDER; }
@Test public void step07GenerateUpdateSiteIndex() throws Exception { UpdateSiteGenerator updateSiteGenerator = new UpdateSiteGenerator(); updateSiteGenerator.generateIndex(UpdateSiteGenerator.BUILDS_ROOT_FOLDER); }