About the upload
- The uploaded file is called dist.zip (MD5: d930916c8506bdc563925385e7aa1162) and contains 2 folders : src and www.
- The src folder contains the Java source file
- The www folders contains all the files needed to generate a simple website. I didn't provide the exact files that I used for privacy reasons.
Dependencies
You can grab the required Jar dependencies from Maven repositories(click on the hyperlinks below) :
- cocoon-controller-3.0.0-alpha-2.jar
- cocoon-pipeline-3.0.0-alpha-2.jar
- cocoon-sax-3.0.0-alpha-2.jar
- cocoon-sitemap-3.0.0-alpha-2.jar
- cocoon-stringtemplate-3.0.0-alpha-2.jar
- cocoon-xml-2.0.2.jar
- commons-logging-1.1.jar
- xercesImpl-2.9.1.jar
- xml-apis-1.3.04.jar
- xalan-2.7.1.jar
- xml-serializer-2.7.1.jar
Running the application
- Create an Java project with the IDE of your choice and add the source file and the required dependencies(jar files).
- In the main method of the class StaticSiteGenerator, change the variable wwwRoot to point the the folder www folder extracted from the dist.zip archive.
- Run the class and the output will be generated in the www/out folder in HTML format.
No comments:
Post a Comment