Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [ajdt-dev] Unable to effectively develop w/ AJDT active duetoconstant recompiles

I tried it out and have found three significant causes of unnecessary
incremental compilation:

1. Incremental rebuilds are happening whenever ANY file changes in an
AspectJ project, not just in a source, classpath, aspectpath or inpath
entry. For example, if I create a new text file at the top-level not in my
source path, that triggers an incremental rebuild. If my running program
appends to a log file (again not in my source path), that does it too. So
when I run a unit test that writes to a log, that results in a rebuild. 

2. Incremental rebuilds trigger when a dependent project rebuilds, even if
there were no changes when rebuilding the project

3. I also believe that recompiling that generates new output triggers a
second rebuild: the new .class files make AJDT think something changed. I
find that if I do a rebuild that creates a class file, then refresh the
project it immediately kicks off another incremental build.

It would also be good to not regenerate crosscutting symbols unless there
were changes in an incremental AJDT build (that's where all the time is
taken).

-----Original Message-----
From: ajdt-dev-bounces@xxxxxxxxxxx [mailto:ajdt-dev-bounces@xxxxxxxxxxx] On
Behalf Of Matt Chapman
Sent: Friday, July 21, 2006 11:21 AM
To: AspectJ Development Tools developer discussions
Subject: Re: [ajdt-dev] Unable to effectively develop w/ AJDT active
duetoconstant recompiles

The Event Trace view with all categories turned on might offer some clues.
Presumably you perform some action which triggers a build? If it's not
the saving of a file, what is it?

On 21/07/06, Ron Bodkin <rbodkin@xxxxxxxxxxxxxx> wrote:
> Hi Matt,
>
> I've certainly seen very frequent incremental rebuilds even when no
sources
> or resources have changed. Is there any way to find out what is triggering
> an incremental build?
>
> -----Original Message-----
> From: ajdt-dev-bounces@xxxxxxxxxxx [mailto:ajdt-dev-bounces@xxxxxxxxxxx]
On
> Behalf Of Matt Chapman
> Sent: Friday, July 21, 2006 11:09 AM
> To: AspectJ Development Tools developer discussions
> Subject: Re: [ajdt-dev] Unable to effectively develop w/ AJDT active due
> toconstant recompiles
>
> Hi Jimisola,
>
> By constant recompiles, do you mean full builds when you expected
> incremental ones?
> I suggest you open the AJDT Event Trace view, use the filters button
> to turn on all Compiler messages, and then see what output is produced
> when a build occurs.
>
> Regards,
>
> Matt.
>
> On 21/07/06, Jimisola Laursen <lists@xxxxxxxxxxxx> wrote:
> >
> > Hi!
> >
> > I am using Eclipse 3.2 with AJDT 1.4. Ever since I converted my project
> from
> > a Java Application to an AspectJ/Java Application I am literally unable
to
> > develop due to _constant_ recompiles. It honestly compiles almost all
the
> > time!
> >
> > I have to inactivate AspectJ when I am not writing AspectJ code which is
> > very time-consuming.
> >
> > Why is AJDT recompiling the project all-the-time. I am using the Maven
2.x
> > Extension for Plugin (m2eclipse.codehaus.org in case that has anything
to
> do
> > with it).
> >
> > Regards,
> > Jimisola
> > --
> > View this message in context:
>
http://www.nabble.com/Unable-to-effectively-develop-w--AJDT-active-due-to-co
> nstant-recompiles-tf1981518.html#a5437869
> > Sent from the Eclipse Ajdt - Dev forum at Nabble.com.
> >
> > _______________________________________________
> > ajdt-dev mailing list
> > ajdt-dev@xxxxxxxxxxx
> > https://dev.eclipse.org/mailman/listinfo/ajdt-dev
> >
> _______________________________________________
> ajdt-dev mailing list
> ajdt-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/ajdt-dev
>
>
> _______________________________________________
> ajdt-dev mailing list
> ajdt-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/ajdt-dev
>
_______________________________________________
ajdt-dev mailing list
ajdt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/ajdt-dev




Back to the top