[ 
https://issues.apache.org/jira/browse/CACTUS-246?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12487135
 ] 

Jeffrey Bennett commented on CACTUS-246:
----------------------------------------

An alternative (and cleaner) proposal:

Change CactusTask such that it holds an instance of Ant 1.7 and an Ant 1.6 
task.  Modify it such that rather than extending, it delegates (to 1.6 by 
default, but an optional argument "ant_version=1.7" can cause it to delegate 
otherwise).

Upgrading then consists of changing <cactus> to <cactus ant_version=1.7>


> Jakarta Cactus 1.7.2 won't work with Apache ANT 1.7.0.
> ------------------------------------------------------
>
>                 Key: CACTUS-246
>                 URL: https://issues.apache.org/jira/browse/CACTUS-246
>             Project: Cactus
>          Issue Type: Bug
>          Components: Ant Integration
>    Affects Versions: 1.7.2
>         Environment: - Win XP
> - Apache ANT 1.7.0Beta3
> - JDK 1.5
>            Reporter: Davy Toch
>         Attachments: build-246.patch
>
>
> Doing a quick test with Jakarta Cactus 1.7.2 on the latest beta release of 
> Apache ANT 1.7.0 revealed the following
> error message in Cactus:
> java.lang.NoSuchMethodError: 
> org.apache.cactus.integration.ant.CactusTask.addClasspathEntry(Ljava/lang/String;)V
> Reason: in ant-junit.jar the signature of the method 'addClasspathEntry' of 
> the class JUnitTask has been modified between ANT 1.6.5 and ANT 1.7.0:
> ANT 1.6.5:
>   protected void addClasspathEntry(String resource)
> ANT 1.7.0:
>   protected boolean addClasspathEntry(String resource)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to