hi,
the attachments caused my mail to bounce so you can access the files
using this link (combined to a single file, 8KB in total) :
http://ramfree17.org/hasty/maven/antrun_issue.zip
ciao!
On 11/7/05, Anuerin Diaz <[EMAIL PROTECTED]> wrote:
> hi,
>
> 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-optinoal package.
> anybody have an idea how to work around this?
>
> thanks.
>
> [1] http://ant.apache.org/manual/develop.html#set-magic
>
> ciao!
>
> --
>
> "Programming, an artform that fights back"
>
> Anuerin G. Diaz
> Registered Linux User #246176
> Friendly Linux Board @ http://mandrivausers.org/index.php
> http://capsule.ramfree17.org , when you absolutely have nothing else
> better to do
>
>
>
--
"Programming, an artform that fights back"
Anuerin G. Diaz
Registered Linux User #246176
Friendly Linux Board @ http://mandrivausers.org/index.php
http://capsule.ramfree17.org , when you absolutely have nothing else
better to do
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]