Bug 327552 - Calling ajc in Eclipse Application Run Configuration leads to unsupported "srcdir" attribute
Summary: Calling ajc in Eclipse Application Run Configuration leads to unsupported "sr...
Status: NEW
Alias: None
Product: AspectJ
Classification: Tools
Component: Runtime (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: aspectj inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-12 09:08 EDT by Holger CLA
Modified: 2013-06-24 11:06 EDT (History)
1 user (show)

See Also:


Attachments
ANT -d -v trace and stacktrace (3.74 KB, text/plain)
2010-10-12 09:10 EDT, Holger CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Holger CLA 2010-10-12 09:08:41 EDT
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
Comment 1 Holger CLA 2010-10-12 09:10:00 EDT
Created attachment 180664 [details]
ANT -d -v trace and stacktrace

added attachment
Comment 2 Andrew Clement CLA 2013-06-24 11:06:11 EDT
unsetting the target field which is currently set for something already released