Hi, Submitted alongwith is the Checksum task that I had proposed earlier. Thanks, Stefano, Stefan and Jose for your inputs.
Here are the highlights of the features: It allows the user to create/verify checksums. The generated checksum can be either written to files or to a property. It can also work as a nested element of the Condition task. Further details are in the task's HTML document. Magesh
Index: coretasklist.html =================================================================== RCS file: /home/cvspublic/jakarta-ant/docs/manual/coretasklist.html,v retrieving revision 1.21 diff -u -r1.21 coretasklist.html --- coretasklist.html 2001/10/30 10:05:33 1.21 +++ coretasklist.html 2001/11/06 18:45:31 @@ -28,6 +28,7 @@ <a href="CoreTasks/antstructure.html">AntStructure</a><br> <a href="CoreTasks/apply.html">Apply/<i>ExecOn</i></a><br> <a href="CoreTasks/available.html">Available</a><br> +<a href="CoreTasks/checksum.html">Checksum</a><br> <a href="CoreTasks/chmod.html">Chmod</a><br> <a href="CoreTasks/condition.html">Condition</a><br> <a href="CoreTasks/copy.html">Copy</a><br> Index: ConditionBase.java =================================================================== RCS file: /home/cvspublic/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/condition/ConditionBase.java,v retrieving revision 1.3 diff -u -r1.3 ConditionBase.java --- ConditionBase.java 2001/10/28 21:27:52 1.3 +++ ConditionBase.java 2001/11/06 18:46:43 @@ -62,6 +62,7 @@ import org.apache.tools.ant.ProjectComponent; import org.apache.tools.ant.taskdefs.Available; import org.apache.tools.ant.taskdefs.UpToDate; +import org.apache.tools.ant.taskdefs.Checksum; /** * Baseclass for the <condition> task as well as several @@ -69,7 +70,7 @@ * and the "container" conditions are in sync. * * @author <a href="mailto:[EMAIL PROTECTED]>Stefan Bodewig</a> - * @version $Revision: 1.3 $ + * @version $Revision: 1.4 $ */ public abstract class ConditionBase extends ProjectComponent { private Vector conditions = new Vector(); @@ -105,6 +106,11 @@ public void addUptodate(UpToDate u) {conditions.addElement(u);} /** + * Add an <checksum> condition. + */ + public void addChecksum(Checksum c) {conditions.addElement(c);} + + /** * Add an <not> condition "container". * * @since 1.1 @@ -166,7 +172,7 @@ } catch (ArrayIndexOutOfBoundsException e) { throw new NoSuchElementException(); } - + if (o instanceof ProjectComponent) { ((ProjectComponent) o).setProject(getProject()); }
Checksum.java
Description: Binary data
-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
