You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Sebastien Brunot (JIRA)" <ji...@codehaus.org> on 2008/02/22 13:47:28 UTC

[jira] Commented: (MANTRUN-53) add ant optional task support

    [ http://jira.codehaus.org/browse/MANTRUN-53?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_124666 ] 

Sebastien Brunot commented on MANTRUN-53:
-----------------------------------------

The documentation explains ho to retrieve the different maven classpaths in an ant script, but it does not explains how to add optional tasks to the classpath that the ant instance launched by the maven-antrun-plugin uses. Any clue about this ?

> add ant optional task support
> -----------------------------
>
>                 Key: MANTRUN-53
>                 URL: http://jira.codehaus.org/browse/MANTRUN-53
>             Project: Maven 2.x Antrun Plugin
>          Issue Type: Improvement
>    Affects Versions: 1.2
>         Environment: windows 2000,java 1.4.2
>            Reporter: bingwuli
>            Assignee: Carlos Sanchez
>
> I use maven-antrun-plugin for my project recently. Althought this plugin give me some convenience, I find it doesn't support ant optional task. In my project ,I need to use native2ascii to convert my messages. When I put such ant segment  <tasks><native2ascii encoding="GBK" src="src/main/conf/message" dest="${project.build.outputDirectory}" includes="**/*.txt"  ext = ".properties"/></tasks> into plugin's configuration, it doesn't work. 
> After I carefully study plugin's docment ,I find the plugin doesn't depend on ant optional jar .After I add ant-optional jar into dependency path ,and rewrite ant segent as such ,it does work for me.
> <task><taskdef name="native2ascii" classname="org.apache.tools.ant.taskdefs.optional.Native2Ascii" classpathref = "maven.compile.classpath" /><native2ascii encoding="GBK" src="src/main/conf/message"dest="${project.build.outputDirectory}" includes="**/*.txt"  ext = ".properties"/></task>
> I think it good idea that this plugin  will support ant optional task.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira