add ant optional task support ----------------------------- Key: MANTRUN-53 URL: http://jira.codehaus.org/browse/MANTRUN-53 Project: Maven 2.x Antrun Plugin Type: Improvement
Versions: 1.2 Environment: windows 2000,java 1.4.2 Reporter: bingwuli Fix For: 1.2 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