From c502b3b5c91101113e88c6bca46410b327ed04d5 Mon Sep 17 00:00:00 2001
From: Stefan Bodewig
If you have a look at the manual page of the java [5] - task you will see
If you have a look at the manual page of the Java task [5] + you will see that it:
For our task we have:
+Here is an example documentation page for our task:
<html> <head> <meta http-equiv="Content-Language" content="en-us"> -<title> Find Task</title> +<title>Find Task</title> </head> <body> @@ -697,7 +697,7 @@ If we decide to contribute our task, we should do some things:
Now we will check the "Checklist before submitting a new task" described in that guideline. @@ -734,7 +734,7 @@ tests in src/etc/testcases.
Now we integrate our work into Ants distribution. So first we do an update of our cvs tree. If not done yet, you have to checkout the ant module from Apaches cvs server as described in Access the Source Tree (AnonCVS) -[8] (password is anoncvs):
+[7] (password is anoncvs):cvs -d :pserver:anoncvs@cvs.apache.org:/home/cvspublic login //1 cvs -d :pserver:anoncvs@cvs.apache.org:/home/cvspublic checkout ant //2@@ -837,7 +837,7 @@ is the same as directly after the cvs update (without our modifications).Test on JDK 1.2
Until version 1.5 Ant must be able to run on a JDK 1.1. With version 1.6 this is not a requisite any more. But JDK 1.2 is a must-to-work-with. So we have to test that. You can download older -JDKs from Sun [9].
+JDKs from Sun [8].Clean the ANT_HOME variable, delete the build, bootstrap and dist directory and point JAVA_HOME to the JDK 1.2 home directory. Then do the build, set ANT_HOME @@ -849,11 +849,11 @@ and run ant test (like above).
Checkstyle
There are many things we have to ensure. Indentation with 4 spaces, blanks here and there, ... -(all described in the Ant Task Guidelines [7] which +(all described in the Ant Task Guidelines [6] which includes the Sun code style -[10]). Because there are so many things we would be happy to have a tool for do the checks. +[9]). Because there are so many things we would be happy to have a tool for do the checks. There is one: checkstyle. Checkstyle is available at -Sourceforge [11] and Ant provides with the check.xml a buildfile which will do the job +Sourceforge [10] and Ant provides with the check.xml a buildfile which will do the job for us.
Download it and put the checkstyle-*-all.jar into your %USERPROFILE%\.ant\lib directory. @@ -917,13 +917,13 @@ The other way - BugZilla - is slightly more difficult. But it has the advantage will not be forgotten (once per week a report is generated). So I will show this way.
You must have a BugZilla account for that. So open the -BugZilla Main Page [12] and follow the link -Open a new Bugzilla account [13] +BugZilla Main Page [11] and follow the link +Open a new Bugzilla account [12] and the steps described there if you haven't one.
- From the BugZilla main page choose Enter - a new bug report [14]
+ a new bug report [13]- Choose "Ant" as product
- Version is the last "Alpha (nightly)" (at this time 1.7)
- Component is "Core tasks"
@@ -955,14 +955,14 @@ Now the new task is uploaded into the bug database. [3] using.html#built-in-props
[4] http://ant-contrib.sourceforge.net/
[5] CoreTasks/java.html
- [7] ../ant_task_guidelines.html
- [8] http://ant.apache.org/cvs.html
- [9] http://java.sun.com/products/archive/index.html
- [10] http://java.sun.com/docs/codeconv/html/CodeConvTOC.doc.html
- [11] http://checkstyle.sourceforge.net/
- [12] http://issues.apache.org/bugzilla/
- [13] http://issues.apache.org/bugzilla/createaccount.cgi
- [14] http://issues.apache.org/bugzilla/enter_bug.cgi
+ [6] http://ant.apache.org/ant_task_guidelines.html
+ [7] http://ant.apache.org/cvs.html
+ [8] http://java.sun.com/products/archive/index.html
+ [9] http://java.sun.com/docs/codeconv/html/CodeConvTOC.doc.html
+ [10] http://checkstyle.sourceforge.net/
+ [11] http://issues.apache.org/bugzilla/
+ [12] http://issues.apache.org/bugzilla/createaccount.cgi
+ [13] http://issues.apache.org/bugzilla/enter_bug.cgi