[ http://jira.codehaus.org/browse/MANTRUN-25?page=all ]
Jason van Zyl moved MNG-1490 to MANTRUN-25:
-------------------------------------------
Version: (was: 2.0)
Component: (was: maven-antrun-plugin)
Workflow: jira (was: Maven)
Key: MANTRUN-25 (was: MNG-1490)
Project: Maven 2.x Antrun Plugin (was: Maven 2)
> antrun fails if task åarameters if of type EnumeratedAttributes
> ---------------------------------------------------------------
>
> Key: MANTRUN-25
> URL: http://jira.codehaus.org/browse/MANTRUN-25
> Project: Maven 2.x Antrun Plugin
> Type: Bug
> Environment: Windows XP Professional/JDK 1.4.2_04
> Reporter: Anuerin Diaz
> Attachments: sample.zip, testbed-src.zip, testbed.zip
>
>
> the ant-run plugin (or the launcher) seems unable to properly convert
> attributes that are of the type EnumeratedAttribute[1]. the execution always
> fail with an error that the attribute being set is not supported by the class.
> i have attached 3 files to serve as a test case for this.
> 1. "sample.zip" - contains the project that will serve as the main test
> case. it really is just the plugin tutorial and i just added the followign in
> the pom.xml so my test Task will be called during compile time:
> <build>
> <extensions>
> <extension>
> <groupId>testbed</groupId>
> <artifactId>tests</artifactId>
> <version>1.0</version>
> </extension>
> <extension>
> <groupId>ant</groupId>
> <artifactId>ant</artifactId>
> <version>1.5</version>
> </extension>
> </extensions>
> <plugins>
> <plugin>
> <artifactId>maven-antrun-plugin</artifactId>
> <executions>
> <execution>
> <phase>compile</phase>
> <configuration>
> <tasks>
> <ant
> target = "test-run"
> antfile = "${basedir}/build.xml">
> <property name="paramValue" value="FirstValue"/>
> </ant>
> </tasks>
> </configuration>
> <goals>
> <goal>run</goal>
> </goals>
> </execution>
> </executions>
> </plugin>
> </plugins>
> </build>
> 2. "testbed.zip" - contains the test Ant Task jar file. the test task has
> one attribute that is derived from EnumeratedAttribute.
> 3. "testbed-src.zip" - contains the source code for the testbed artifact
> (in case somebody is interested).
> i think the problem is just with the launcher since the task runs fairly
> well from normal Ant invocation. i found this problem when i was trying to
> use the <ejbjar/> task in the ant-optional package.
> thanks.
> [1] http://ant.apache.org/manual/develop.html#set-magic
--
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
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]