| Ant and dynamic task names [message #226711] |
Tue, 28 March 2006 15:33  |
Eclipse User |
|
|
|
The goal I'm trying to achieve is to dynamically handle task names. In
oder words, a task name change should not affect the Java implementation.
In order to do this, two things are required:
1. The task definition in the plugin.xml should pick the task name from
plugin.properties
2. The parent element of the task should be able to dynamically handle it.
The first requirement is achiavable using as task name the property
defined in the plugin.properties prefixed with %. Although this works
with other extension points, it doesn't seem to work with antTask.
The second should be easily done using the polymorphism introduced in
Ant 1.6. In other words, using addConfigured(X) instead of
addConfiguredX(X). But this doesn't seem to work either. The message I
got is :
"The X type doesn't support the nested Y element"
Has anyone tried the any of the above ?
Driver used is eclipse-SDK-I20060322-1335-win32
|
|
|
|
| Re: Ant and dynamic task names [message #226864 is a reply to message #226728] |
Thu, 30 March 2006 10:15  |
Eclipse User |
|
|
|
I have tried it again and both requirements work. I'm still not sure why
it did not work the first time. I guess it was a sum of things that all
worked against me :-)
Darin Swanson wrote:
> I have not heard of anyone trying this.
>
> If you continue to have problems and believe it is a problem with the
> Eclipse Ant integration please log a bug report and I will investigate
>
> Thanks
> Darins
>
> "Laszlo Benedek" <lbenedek@ca.ibm.com> wrote in message
> news:e0c6j1$p5v$1@utils.eclipse.org...
>> The goal I'm trying to achieve is to dynamically handle task names. In
>> oder words, a task name change should not affect the Java implementation.
>> In order to do this, two things are required:
>> 1. The task definition in the plugin.xml should pick the task name from
>> plugin.properties
>> 2. The parent element of the task should be able to dynamically handle it.
>>
>> The first requirement is achiavable using as task name the property
>> defined in the plugin.properties prefixed with %. Although this works
>> with other extension points, it doesn't seem to work with antTask.
>>
>> The second should be easily done using the polymorphism introduced in
>> Ant 1.6. In other words, using addConfigured(X) instead of
>> addConfiguredX(X). But this doesn't seem to work either. The message I
>> got is :
>> "The X type doesn't support the nested Y element"
>>
>> Has anyone tried the any of the above ?
>> Driver used is eclipse-SDK-I20060322-1335-win32
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.06662 seconds