Community
Participate
Working Groups
Build Identifier: M20100909-0800 I'm calling ajc in an ANT script in an Eclipse plugin using the AntRunner. As the plugin is currently being developed, I execute it using an Eclipse Application Run Configuration, i.e. it is executed in a second Eclipse instance. The ANT build is terminated with the message: ajc doesn't support the "srcdir" attribute. The ANT script includes the AspectJ runtime from a library. It seems that the error only occurs running the ANT script with the AntRunner class. It does neither occur when I execute the ANT script on the command line nor in an usual Eclipse instance (not started as Application Run Configuration) nor when executing the ANT task via the Eclipse Ant outline. Running the ANT script with -d -v as additional parameters shows +Datatype iajc org.eclipse.ajdt.core.ant.AjcTask which seems to occur due to the contributed claspath entry ajc_compiler_adapter.jar. When I disable the org.eclipse.ajdt.core plugin for the Application Run Configuration instance the ANT script works but then (obviously) also the AspectJ editor support etc. is disabled. Further trace information is/will be attached... The problem occurs since I switched to Eclipse 3.6.1 on 2010-10-01 (3.6. was very instable, I've installed all plugins into a freshly downloaded Eclipse). I tried to dynamically reconfigure AntRunner and related classes but the problem did not disappear. AspectJ: Version: 2.1.0.e36x-release-20100630-1500 AspectJ version: 1.6.9.20100629172100 Reproducible: Always Steps to Reproduce: 1. Start eclipse instance as Application Run Configuration instance 2. Call ajc via AntRunner from plugin
Created attachment 180664 [details] ANT -d -v trace and stacktrace added attachment
unsetting the target field which is currently set for something already released