[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.platform] Re: [HOW] Setting ANT_HOME properties in runtime

You are correct in that there is no programmatic way to set the Ant home
classpath entries without using internal or deprecated means.

The API for Ant core and Ant UI is very limited and there are no plans
currently to extend the API

Darins

"Alexey Kalmykoff" <alexey.kalmykoff@xxxxxxxx> wrote in message
news:33016848.1142762323015.JavaMail.root@xxxxxxxxxxxxxxxxxxxx
> >
> > Essentially you will need to call
> > antPreferences.setAntHomeClasspathEntries(IAntClasspat
> > hEntry)
> >
>
> The problem is that AntClasspathEntry (which implements
IAntClasspathEntry) is marked as "internal". I would like to avoid  relying
on "internal" classes. And as far as I can see there is no other way to
create AntClasspathEntry object.
>
> AntRuntimePreferencePage, the AntClasspathPage and
> the ClasspathModel also use a lot of "internal" structures and functions
which are hard to be reused.
>
> Possible solution could be antPreferences.setAntURLs. But it's deprecated.
I would like to avoid using deprecated methods.
>
> May be a better solution exists?
>
> Any suggestions would be very appreciated!
> Thanks in advance!