Welcome to DeadEd.com
Sunday, May 11 2008 @ 07:24 PM CDT

SerialVerTask


Description
Generates a serial version ID for serializable classes. The ID is shown to the console, you must insert it into the class yourself.

To use this as an ANT task, you will need to add a taskdef to your build file:

<taskdef name="serialver" classname="com.deaded.ant.SerialVerTask"
	classpath="commonAntTasks.jar"/>

Parameters

Attribute Description Required
projectName The name of the WSAD project to get the classpath from Yes
packageName The package to go through. If no className is specified, then all classes in this package are gone through. Yes
className A certain classname to generate the ID for No

Example
This will go through all classes in the com.mycompany.xyz.something package:

<serialver projectName="${component.name}" 
    packageName="com.mycompany.xyz.something" className=""/>

This will use MyClass in the com.mycompany.xyz.something package:
<serialver projectName="${component.name}" 
    packageName="com.mycompany.xyz.something" className="MyClass"/>


Last Updated Monday, November 21 2005 @ 07:34 PM CST; 1,663 Hits View Printable Version