In version 0.9 ashkelon now has the capability to auto-fetch API source code from either subversion or cvs version control systems. ashkelon therefore will use a temporary directory as the base path for keeping a cache of source code.
In the file src/org/ashkelon/ashkelon-config.xml, specify the base path that ashkelon will use for its source cache. If the path does not exist, ashkelon will attempt to create the specified directory.
![]() | Note |
|---|---|
As you read this section, substitute the database type you'll be using (mysql or postgres) wherever you see the "placeholder" text ${dbtype} | |
Edit db/ ${dbtype} /org/ashkelon/db/conn-info.properties to specify the proper database connection information:
#
dbtype=mysql
jdbcDriverName=com.mysql.jdbc.Driver
connectionURL=jdbc:mysql://localhost/ashkelon
user=ashkelon
password=ashkelon
or
#
dbtype=postgres
jdbcDriverName=org.postgresql.Driver
connectionURL=jdbc:postgresql://localhost/ashkelon
user=ashkelon
password=ashkelon
Create the ashkelon database:
Generate the schema. Run script: db/${dbtype} /org/ashkelon/db/init.sql
Build and create the ashkelon jar file:
Rather than specify dbtype from the command line, feel free to edit the build.xml file directly. This way you won't have to remember how to construct your ant command line each time.
Verify that the "ashkelon" command works. Invoke it with no parameters from the command line.
$ ashkelon
should produce this help/usage screen
Ashkelon Repository Manager (v 0.9)
----------
Description:
Manages a Java Documentation Repository.
For more information, visit http://ashkelon.sourceforge.net/
Examples:
ashkelon reset
ashkelon add hibernate.xml
ashkelon list
ashkelon remove Hibernate
ashkelon html -d junit-javadocs apis/junit.xml
Usage:
ashkelon {command} [options]
Valid commands:
add Add an API to repository
remove Remove specified API from the repository
update Update an API
list List APIs currently residing in the repository
reset Reset repository (i.e. delete everything, use with care)
export Dump list of APIs as XML to System.out
html Produce static HTML pages (with ashkelon look and feel)
For command-specific help, type:
ashkelon {command} -h
Caveats:
No work done yet to support J2SE 5.
----------
Copyleft