[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-dev] Re: [ajdt-dev] AJDT Integration Problem

Hi Ron -

You might be right about the size of the project.
Also try building with ajbrowser.  The implementation
stack is something like this (view with constant-width
font):

  ajc             ant          ajbrowser      ajdt
  ---             ---          ---------      ----
                  AjcTask    ajbrowser.Main   AJDT
  ajc. Main       ajc.Main   AJDE             AJDE
  AjdtCommand     {same..}   CompilerAdapter  {same..}
  AjBuildManager             AjBuildManager

So if it works from the command line and Ant but not
ajbrowser or AJDT, then the problem is probably in AJDE
or CompilerAdapter.  If it works in ajbrowser also,
then the problem is probably in AJDT or eclipse -- which
I doubt, since AJDT mostly just passes the config file
to AJDE.  If the problem shows up in ajbrowser, it's
worth submitting a bug to the AspectJ IDE component:

 http://dev.eclipse.org/bugs/enter_bug.cgi?product=AspectJ

Wes

P.S. -
I'm sure you've also verified the version of Java is the
same for both Ant and AJDT runs.  For ajc and ajbrowser
scripts, it's the one you installed with.  For Ant, when
running in-process it is the Ant VM, and when forking
it's the one set by the JAVA_HOME environment variable
passed to Ant.  In AJDT I believe it is the eclipse VM
(possibly set using -vm on the command line).  (It's
not a difference that should make a difference, but
when size matters, it seems to.)

P.P.S. - Not sent to ajdt-dev pending their recognition
that I'm a subscriber.

DiFrango, Ron wrote:

Wes,

So the short answer is that ajc from within ANT works fine and you are
correct that it works with read only files.  I tried checking out all the
files that are actually affected by aspects and it did not help.

The listing file that I using within Eclipse is the same one that I use for
my ANT process.  I did confirm that it does not contain any duplicate
records.  Actually, we have a custom ANT to take do this for us.

From what I can tell, it purely has to do with the size of project (1440
files).  As I mentioned below, I had to increase the memory for Eclipse to
384MB just to get the compile to even fully complete, but our ANT process
only needs 256MB.

Thanks,

Ron


-----Original Message-----
From: Wes Isberg [mailto:wes@xxxxxxxxxxxxxx] Sent: Friday, May 30, 2003 3:14 PM
To: aspectj-dev@xxxxxxxxxxx
Cc: ajdt-dev@xxxxxxxxxxxxxxx; 'Adrian_Colyer@xxxxxxxxxx'
Subject: Re: [aspectj-dev] Re: [ajdt-dev] AJDT Integration Problem



Ajc should be able to read read-only files.

This error can happen when the file containing MyClass is listed twice, so
you might check the configuration file(s) for duplicate references that
could resolve to MyClass.java.

Wes

DiFrango, Ron wrote:

Adrian,

Could it be that the files are read only? The files that are to be aspected are stored in a ClearCase and therefore are read-only.

Thanks,

Ron DiFrango

-----Original Message-----
From: DiFrango, Ron
Sent: Thursday, May 29, 2003 5:28 PM
To: 'aspectj-dev@xxxxxxxxxxx'; ajdt-dev@xxxxxxxxxxxxxxx
Cc: 'Adrian_Colyer@xxxxxxxxxx'
Subject: RE: [aspectj-dev] Re: [ajdt-dev] AJDT Integration Problem


Adrian,

I do not have any other source files that declare a type called MyClass, nor do I have duplicate definitions of MyClass.java. I can take this same source tree and compile it successfully via ANT. I did not enable incremental compilation.

For our project, I have over 1400 classes that are involved and need to run through the aspectj compiler. During our ANT process this takes at least 5 minutes to run. In order to even get Eclipse (AJDT) to compile this I had to increase the memory to 384MB. I just re-created the project and re-compiled my code I get the same error.

Also, I did get linked directories to work with this version.

Thanks,

Ron DiFrango

-----Original Message-----
From: Adrian Colyer [mailto:adrian_colyer@xxxxxxxxxx]
Sent: Thursday, May 29, 2003 3:54 PM
To: ajdt-dev@xxxxxxxxxxxxxxx
Cc: aspectj-dev@xxxxxxxxxxx
Subject: [aspectj-dev] Re: [ajdt-dev] AJDT Integration Problem



Hi Ron,
Could you tell me a little more about your project? Do you have another
source file (other than MyClass.java) that also declares a type "MyClass"

?

Do you have two class declarations within the MyClass.java file by

accident?

Failing that, are you using the incremental compilation feature (this has

to

be explicitly enabled so if you haven't taken any conscious action you
won't be) ?


Thanks... A.

-- Adrian
Adrian_Colyer@xxxxxxxxxx




"DiFrango, Ron" <ron.difrango@xxxxxxxxxxxxxx>
Sent by: ajdt-dev-admin@xxxxxxxxxxxxxxx



29/05/2003 19:12
Please respond to ajdt-dev


To: "'ajdt-dev@xxxxxxxxxxxxxxx'" <ajdt-dev@xxxxxxxxxxxxxxx>


cc: aspectj-dev@xxxxxxxxxxx Subject: [ajdt-dev] AJDT Integration Problem



Folks,
I am using the Eclipse 2.1 with aspectj 1.1.2 and the AJDT 1.1.2 plug-in and all the classes that are affected by an aspect, I get the following error:


The type MyClass is already defined MyClass.java
Has anyone else experienced this? If so how do I get around it? Thanks,
Ron


**********************************************************************
****
The information transmitted herewith is sensitive information intended

only

for use by the individual or entity to which it is addressed. If the

reader

of this message is not the intended recipient, you are hereby notified

that

any review, retransmission, dissemination, distribution, copying or other
use of, or taking of any action in reliance upon this information is
strictly prohibited. If you have received this communication in error,
please contact the sender and delete the material from your computer.





********************************************************************** **** The information transmitted herewith is sensitive information intended

only

for use by the individual or entity to which it is addressed. If the

reader

of this message is not the intended recipient, you are hereby notified

that

any review, retransmission, dissemination, distribution, copying or other
use of, or taking of any action in reliance upon this information is
strictly prohibited. If you have received this communication in error,
please contact the sender and delete the material from your computer.


********************************************************************** **** The information transmitted herewith is sensitive information intended

only

for use by the individual or entity to which it is addressed. If the

reader

of this message is not the intended recipient, you are hereby notified

that

any review, retransmission, dissemination, distribution, copying or other
use of, or taking of any action in reliance upon this information is
strictly prohibited. If you have received this communication in error,
please contact the sender and delete the material from your computer.



_______________________________________________
aspectj-dev mailing list
aspectj-dev@xxxxxxxxxxx http://dev.eclipse.org/mailman/listinfo/aspectj-dev
**************************************************************************
The information transmitted herewith is sensitive information intended only
for use by the individual or entity to which it is addressed. If the reader
of this message is not the intended recipient, you are hereby notified that
any review, retransmission, dissemination, distribution, copying or other
use of, or taking of any action in reliance upon this information is
strictly prohibited. If you have received this communication in error,
please contact the sender and delete the material from your computer.
_______________________________________________
aspectj-dev mailing list
aspectj-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/aspectj-dev