1. Write the class so that it works under 1.1
2. Write the class so that it compiles under 1.1, perhaps with degraded functionality (i.e. touch task). This may require use of reflection to access non 1.1 functionality.
3. Make the class optional and provide checks in the build file to exclude the class from the build
For your own custom tasks, you can use whatever version of Java you want, providing your users have the appropriate JDK.
If the task is an optional task to be included in Ant you can use any version of the JDK in combination with option 3 above.
If the task is to be a core task, or another core component of ant, you should try to use option 1, if possible, falling back to option 2 if required.
Conor
Patrick (Gus) Heck wrote:
Wait, the docs (on writing tasks) said we had to be 1.1 compliant... is it 1.2 or 1.1? If I can use 1.2 I just wasted a bunch of time rewriting something that exists in 1.2 in 1.1 compliant form.
Stefan Bodewig wrote:
On 8 May 2002, <[EMAIL PROTECTED]> wrote:
Hopefully got jdk1.2 compatability back.
looks good.
Stefan
-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
