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

Davy Toch commented on CACTUS-246:
----------------------------------

Or even cleaner:

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 depending on the 
Java environment property ${ant.version}.

This way you shouldn't add the attribute "ant_version=1.7" to <cactus>.


> 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