The Blog - Step One
The first step is to prepare the project. First of all you need to download and install jZonic. We assume that you have already done so. Now change to the directory where jZonic is installed and start a new project by running ANT:
ant -f project_build.xml
Now you need to answer the three questions:
Please define the name of your application:
Please insert
blog
Next one is:
Now define the basepackage of your application:
Type in:
org.jzonic.blog
The last question is where the project should be located. Choose whatever directory you like. Please note that the directory should not include the application name since it will automatically appended. Use something like:
/home/myself/source/java
ANT will now create the project along with the directory structure and all files that you need.
You will get the following directories:
src - this will contain the java code etc - contains the configuration files lib - contains all required jar files resources - contains the web.xml file server - a jetty server that you can use to run the application templates - the templates that jZonic needs for the code generation process test - your unit tests should be here web - the place of your velocity templates
Also there are a bunch of files location in the main directory:
.classpath and .project - files for Eclipse build.xml - an ANT build file build.properties - a properties file used by the ANT build.xml
You can now import the application already into Eclipse and you are ready to start development.