I do the same resolve on the same project and same cache, etc. in both cases.
I guess that Ant running from Eclipse is slower than raw Ant from command line. The IvyDE resolve takes about 1.5-2 seconds while the same resolve from [EMAIL PROTECTED] takes about 6+ seconds. Maybe it a file-system issue on our net because we use net-drives (and clear case dynamic views that are also network drives). I wonder if other people have seen Ant slowness when running from Eclipse. On 2/1/07, Xavier Hanin <[EMAIL PROTECTED]> wrote:
On 2/1/07, easyproglife <[EMAIL PROTECTED]> wrote: > > Hi. > > I have an idea. > > Currently, I use ivy inside Ant and IvyDE in parallel. Ant script is > mainly > for command-line builds while IvyDE is for convenience development inside > Eclipse. > > When I run resolve from Ant from inside Eclipse, it takes a long time > relative to the time it takes for IvyDE to resolve. > > > My idea is to use IvyDE's resolve engine if Ant is asked to resolve, while > running from inside Eclipse. > > This may look a bit complex but as an example see how Ant stuff have > implemented the 'input' task: if it runs from command line it uses command > line input. If it runs from Eclipse, a popup is popped with Eclipse GUI > style. > > In input task they had kind of listener that could be different depending > on > the context Ant run from. > I think IvyDE could also have "listener" for Ant and ivy-ant code would > check for it. If it exists - IvyDE would eb used to resolve, otherwise the > default (current) way would be used. > > I hope you have understood my idea. > > I may contribute code implementing this if you find this feature useful. I think I see what you mean, but maybe you should first try to investigate to see why it's faster in IvyDE. Because I see no answer to this question, IvyDE uses Ivy engine as when you call Ivy from Ant. So why do you have such performance difference ? Are you sure the difference is in Ivy dependency resolution ? Are you sure that the difference is not due to the order in which you do the resolves, the cache may have an important impact on the performance of a resolve. - Xavier easyproglife. > >
