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="$"
packageName="com.mycompany.xyz.something" className=""/>
<serialver projectName="$"
packageName="com.mycompany.xyz.something" className="MyClass"/>
DeadEd.com
http://www.deaded.com/staticpages/index.php/serialvertask