Community
Participate
Working Groups
I have a task that creates a new instance of AntRunner() to run an ant script that I generate in my task. To be precise: the eclipse.fetch task internally generates a retrieve.xml (which is an ant script) that is executed. I have a build.xml file that makes use of eclipse.fetch. When I run it as an external tool from the UI, I get an error saying that it not autorized to have two scripts running simultaneously. However if I run the same script headless, I do not get the error and my script works fine. Looking at the AntRunner code it seems that you do not set buildRunning in the method run(Object). The "buildRunning" var seems to have been introduced as a fix to bug #29318. I understand the reason for the fix, but it is a strong solution for a little inconvenience since now it prevents the antRunner to be re-entrant. Why is it not possible to do the test in a "UI level"? Thanx
The headless case should not be allowing two concurrent Ant builds either. Due to the design of Apache Ant and its use of System resources (such as System.out and System.err), it is not possible (read safe or deterministic) to run more than one Ant build in the same VM at the same time. There is no way to guarantee the property restoration of System.out, System.err, security managers, thread context class loaders ...
Can the eclipse.fetch task be modified to generate the retrieve.xml and then your build.xml <ant> retrieve.xml?
Where does the pde build still stand on this issue?
No plans to address in 3.0
As of now 'LATER' and 'REMIND' resolutions are no longer supported. Please reopen this bug if it is still valid for you.