Package org.dspace.app.sitemap
Class GenerateSitemaps
java.lang.Object
org.dspace.app.sitemap.GenerateSitemaps
Command-line utility for generating HTML and Sitemaps.org protocol Sitemaps.
- Author:
- Robert Tansley, Stuart Lewis
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidDelete the sitemaps directory and its contents if it existsstatic voidgenerateSitemaps(boolean makeHTMLMap, boolean makeSitemapOrg) Generate sitemap.org protocol and/or basic HTML sitemaps.static voidRuns generate-sitemaps without any params for the scheduler (task-scheduler.xml).static void
-
Method Details
-
main
- Throws:
Exception
-
generateSitemapsScheduled
Runs generate-sitemaps without any params for the scheduler (task-scheduler.xml).- Throws:
SQLException- if a database error occurs.IOException- if IO error occurs.
-
deleteSitemaps
Delete the sitemaps directory and its contents if it exists- Throws:
IOException- if IO error occurs
-
generateSitemaps
public static void generateSitemaps(boolean makeHTMLMap, boolean makeSitemapOrg) throws SQLException, IOException Generate sitemap.org protocol and/or basic HTML sitemaps.- Parameters:
makeHTMLMap- iftrue, generate an HTML sitemap.makeSitemapOrg- iftrue, generate an sitemap.org sitemap.- Throws:
SQLException- if database error if a database error occurs.IOException- if IO error if IO error occurs.
-