Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Ant and dynamic task names
Ant and dynamic task names [message #226711] Tue, 28 March 2006 15:33 Go to next message
Eclipse UserFriend
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 #226728 is a reply to message #226711] Tue, 28 March 2006 16:19 Go to previous messageGo to next message
Eclipse UserFriend
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
Re: Ant and dynamic task names [message #226864 is a reply to message #226728] Thu, 30 March 2006 10:15 Go to previous message
Eclipse UserFriend
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
>
>
Previous Topic:JDT's debug view does not refresh with new stack frames
Next Topic:Multiple sources versions in one project
Goto Forum:
  


Current Time: Fri Nov 07 06:48:04 EST 2025

Powered by FUDForum. Page generated in 0.06662 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top