Chalk Tools

the Chalk Tools site
 
   

Quick start

by Nick Chalko

Ok, I want to use it. Now what

Ok, so you like the idea and want to start using it.

Here is a very quick guide on how to become productive right away.

Do this first

Download the latest to a directory of your choice.

Add chalktools.jar to yourr classpath

Ant Tasks

Note
TODO: Use the chalktools.cent

BuildVersion

Create a Java classes containing details of the build, at every compile.

 <taskdef name="buildVersion" classname="com.chalko.tools.ant.BuildVersionGenerator">
 </taskdef>
 <buildVersion
	name="${package-name}"
	major="${package-ver.V}"
	minor="${package-ver.v}"
    increment="${package-ver.fix}"
	tag="${package-ver.tag}"
	toDir="src/java"
	packageName="com.my.package"
/>
	     

Produces the following Java Class.

/* $Header: /cvsroot/chalktools/chalktools/src/documentation/content/xdocs/quickstart.xml,v 1.1 2002/12/08 08:12:51 chalko Exp $
 */
package com.chalko.tools.batch;

/**
 * A autogenerated BuiltVersion class.
 * @author com.chalko.tools.ant.BuildVersionGenerator  Revision: 1.1  
 * @version Mon Aug 19 23:55:27 PDT 2002
 * 
 */
public class BatchBuildVersion extends com.chalko.tools.rt.BuildVersion { 

    public static final BatchBuildVersion INSTANCE = new BatchBuildVersion();
    
    private BatchBuildVersion() {
        name="batch";
        date= new java.util.Date(1029826527964l);  //Mon Aug 19 23:55:27 PDT 2002
        tag="dev";
        major="0";
        minor="1";
        increment="0";
        host="baby/192.168.57.126";
        user="Owner";
        debug=false;
    }
    
    
    public final static BatchBuildVersion getInstance( ) { return INSTANCE;}
    
}