Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » AJDT » Use AJDT with ant
Use AJDT with ant [message #50585] Mon, 18 April 2005 18:54 Go to next message
harry sheng is currently offline harry shengFriend
Messages: 41
Registered: July 2009
Member
Hi,

I am using eclipse3.0 and ajdt. I have already compiled my aspects, I
won't need more aspects for the time-being. I want to remove the AspectJ
feature from my project to get better compiling performance and let the
ANT build take care of the compile and weave at night.

But aspectjtools.jar does not come with AJDT? I eventually found the
org.aspectj.tools.ant package in ajde.jar, but this package seems having
been customized, I always get the ClassDefNotFound exception. Do I have to
download the AspectJ distribution for my ANT build?

By the way, the size of aspectjrt.jar in AJDT is slightly different from
that in AspectJ distribution. Will the output of ADJT be any difference
from that of the AspectJ distribution?

Harry Sheng
Re: Use AJDT with ant [message #50613 is a reply to message #50585] Tue, 19 April 2005 06:58 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: clemas.uk.ibm.com

Hi Harry,

ajde.jar is tailored so that we get tighter integration with Eclipse.
You don't get (currently) aspectjtools.jar with AJDT as well as the
distribution would be massively bloated. For now you need to download a
separate aspectj distribution and install it - it is advisable to make
sure you have the equivalent to the version of AJDT you are running
with. For example if you are on AJDT1.2.0M3 then you should take
AspectJ1.5.0M2.

If you don't have a matching version of AspectJ then, yes, the output of
an ANT build outside of AJDT can be slightly different to that of AJDT -
the compiler moves faster than AJDT so you may pick up fixes that aren't
in AJDT yet. However, there should be no surprises, the woven code
should behave exactly the same when you build it either way.

Andy


Harry Sheng wrote:
> Hi,
>
> I am using eclipse3.0 and ajdt. I have already compiled my aspects, I
> won't need more aspects for the time-being. I want to remove the AspectJ
> feature from my project to get better compiling performance and let the
> ANT build take care of the compile and weave at night.
>
> But aspectjtools.jar does not come with AJDT? I eventually found the
> org.aspectj.tools.ant package in ajde.jar, but this package seems having
> been customized, I always get the ClassDefNotFound exception. Do I have
> to download the AspectJ distribution for my ANT build?
>
> By the way, the size of aspectjrt.jar in AJDT is slightly different from
> that in AspectJ distribution. Will the output of ADJT be any difference
> from that of the AspectJ distribution?
>
> Harry Sheng
>
>
>
Re: Use AJDT with ant [message #51193 is a reply to message #50613] Mon, 02 May 2005 12:32 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: sebastien.alonzo.wanadoo.fr

Hi Andy,

So what is the recommended way to use ANT to build AJDT projects :
- use ANT tasks defined in ajde.jar ?
- download AspectJ1.5.0M2 and use ANT tasks defined in aspectjtools.jar ?

I do need to know because I intend to use ANT to build my applications
(with or without aspects)

Andy Clement wrote:
> Hi Harry,
>
> ajde.jar is tailored so that we get tighter integration with Eclipse.
> You don't get (currently) aspectjtools.jar with AJDT as well as the
> distribution would be massively bloated. For now you need to download a
> separate aspectj distribution and install it - it is advisable to make
> sure you have the equivalent to the version of AJDT you are running
> with. For example if you are on AJDT1.2.0M3 then you should take
> AspectJ1.5.0M2.
>
> If you don't have a matching version of AspectJ then, yes, the output of
> an ANT build outside of AJDT can be slightly different to that of AJDT -
> the compiler moves faster than AJDT so you may pick up fixes that aren't
> in AJDT yet. However, there should be no surprises, the woven code
> should behave exactly the same when you build it either way.
>
> Andy
>
>
> Harry Sheng wrote:
>
>> Hi,
>>
>> I am using eclipse3.0 and ajdt. I have already compiled my aspects, I
>> won't need more aspects for the time-being. I want to remove the
>> AspectJ feature from my project to get better compiling performance
>> and let the ANT build take care of the compile and weave at night.
>>
>> But aspectjtools.jar does not come with AJDT? I eventually found the
>> org.aspectj.tools.ant package in ajde.jar, but this package seems
>> having been customized, I always get the ClassDefNotFound exception.
>> Do I have to download the AspectJ distribution for my ANT build?
>>
>> By the way, the size of aspectjrt.jar in AJDT is slightly different
>> from that in AspectJ distribution. Will the output of ADJT be any
>> difference from that of the AspectJ distribution?
>>
>> Harry Sheng
>>
>>
>>
Re: Use AJDT with ant [message #51219 is a reply to message #51193] Tue, 03 May 2005 09:32 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: clemas.uk.ibm.com

For AspectJ projects, my recommendation would be to download
AspectJ1.5.0M2 and use the tasks defined in it. Basically use
aspectjtools.jar that comes with the standalone compiler in preference
to ajde.jar which does not contain everything you need. I could
describe to you how to get your ANT script to work using the tasks
defined in ajde.jar but the classpath would be utterly hideous.

cheers,
Andy.

S├ębastien Alonzo wrote:
> Hi Andy,
>
> So what is the recommended way to use ANT to build AJDT projects :
> - use ANT tasks defined in ajde.jar ?
> - download AspectJ1.5.0M2 and use ANT tasks defined in aspectjtools.jar ?
>
> I do need to know because I intend to use ANT to build my applications
> (with or without aspects)
>
> Andy Clement wrote:
>
>> Hi Harry,
>>
>> ajde.jar is tailored so that we get tighter integration with Eclipse.
>> You don't get (currently) aspectjtools.jar with AJDT as well as the
>> distribution would be massively bloated. For now you need to download
>> a separate aspectj distribution and install it - it is advisable to
>> make sure you have the equivalent to the version of AJDT you are
>> running with. For example if you are on AJDT1.2.0M3 then you should
>> take AspectJ1.5.0M2.
>>
>> If you don't have a matching version of AspectJ then, yes, the output
>> of an ANT build outside of AJDT can be slightly different to that of
>> AJDT - the compiler moves faster than AJDT so you may pick up fixes
>> that aren't in AJDT yet. However, there should be no surprises, the
>> woven code should behave exactly the same when you build it either way.
>>
>> Andy
>>
>>
>> Harry Sheng wrote:
>>
>>> Hi,
>>>
>>> I am using eclipse3.0 and ajdt. I have already compiled my aspects, I
>>> won't need more aspects for the time-being. I want to remove the
>>> AspectJ feature from my project to get better compiling performance
>>> and let the ANT build take care of the compile and weave at night.
>>>
>>> But aspectjtools.jar does not come with AJDT? I eventually found the
>>> org.aspectj.tools.ant package in ajde.jar, but this package seems
>>> having been customized, I always get the ClassDefNotFound exception.
>>> Do I have to download the AspectJ distribution for my ANT build?
>>>
>>> By the way, the size of aspectjrt.jar in AJDT is slightly different
>>> from that in AspectJ distribution. Will the output of ADJT be any
>>> difference from that of the AspectJ distribution?
>>>
>>> Harry Sheng
>>>
>>>
>>>
Re: Use AJDT with ant [message #51244 is a reply to message #51219] Tue, 03 May 2005 12:26 Go to previous message
Eclipse UserFriend
Originally posted by: mchapman.uk.ibm.com

Absolutely. The only exception is if building Eclipse plugins. Then you
can just right-click your plugin.xml and do "PDE Tools > Create Ant Build
file with AspectJ support". The utterly hideous classpath is then
generated for you. You could actually reuse this classpath for non-plugin
projects, but only if you're happy for your build to require Eclipse -
otherwise stick with aspectjtools.jar.

Regards,

Matt.

On Tue, 03 May 2005 10:32:59 +0100, Andy Clement wrote:
> For AspectJ projects, my recommendation would be to download
> AspectJ1.5.0M2 and use the tasks defined in it. Basically use
> aspectjtools.jar that comes with the standalone compiler in preference
> to ajde.jar which does not contain everything you need. I could
> describe to you how to get your ANT script to work using the tasks
> defined in ajde.jar but the classpath would be utterly hideous.
>
> cheers,
> Andy.
Re: Use AJDT with ant [message #587712 is a reply to message #50585] Tue, 19 April 2005 06:58 Go to previous message
Andrew Clement is currently offline Andrew ClementFriend
Messages: 162
Registered: July 2009
Senior Member
Hi Harry,

ajde.jar is tailored so that we get tighter integration with Eclipse.
You don't get (currently) aspectjtools.jar with AJDT as well as the
distribution would be massively bloated. For now you need to download a
separate aspectj distribution and install it - it is advisable to make
sure you have the equivalent to the version of AJDT you are running
with. For example if you are on AJDT1.2.0M3 then you should take
AspectJ1.5.0M2.

If you don't have a matching version of AspectJ then, yes, the output of
an ANT build outside of AJDT can be slightly different to that of AJDT -
the compiler moves faster than AJDT so you may pick up fixes that aren't
in AJDT yet. However, there should be no surprises, the woven code
should behave exactly the same when you build it either way.

Andy


Harry Sheng wrote:
> Hi,
>
> I am using eclipse3.0 and ajdt. I have already compiled my aspects, I
> won't need more aspects for the time-being. I want to remove the AspectJ
> feature from my project to get better compiling performance and let the
> ANT build take care of the compile and weave at night.
>
> But aspectjtools.jar does not come with AJDT? I eventually found the
> org.aspectj.tools.ant package in ajde.jar, but this package seems having
> been customized, I always get the ClassDefNotFound exception. Do I have
> to download the AspectJ distribution for my ANT build?
>
> By the way, the size of aspectjrt.jar in AJDT is slightly different from
> that in AspectJ distribution. Will the output of ADJT be any difference
> from that of the AspectJ distribution?
>
> Harry Sheng
>
>
>
Re: Use AJDT with ant [message #587928 is a reply to message #50613] Mon, 02 May 2005 12:32 Go to previous message
Eclipse UserFriend
Originally posted by: sebastien.alonzo.wanadoo.fr

Hi Andy,

So what is the recommended way to use ANT to build AJDT projects :
- use ANT tasks defined in ajde.jar ?
- download AspectJ1.5.0M2 and use ANT tasks defined in aspectjtools.jar ?

I do need to know because I intend to use ANT to build my applications
(with or without aspects)

Andy Clement wrote:
> Hi Harry,
>
> ajde.jar is tailored so that we get tighter integration with Eclipse.
> You don't get (currently) aspectjtools.jar with AJDT as well as the
> distribution would be massively bloated. For now you need to download a
> separate aspectj distribution and install it - it is advisable to make
> sure you have the equivalent to the version of AJDT you are running
> with. For example if you are on AJDT1.2.0M3 then you should take
> AspectJ1.5.0M2.
>
> If you don't have a matching version of AspectJ then, yes, the output of
> an ANT build outside of AJDT can be slightly different to that of AJDT -
> the compiler moves faster than AJDT so you may pick up fixes that aren't
> in AJDT yet. However, there should be no surprises, the woven code
> should behave exactly the same when you build it either way.
>
> Andy
>
>
> Harry Sheng wrote:
>
>> Hi,
>>
>> I am using eclipse3.0 and ajdt. I have already compiled my aspects, I
>> won't need more aspects for the time-being. I want to remove the
>> AspectJ feature from my project to get better compiling performance
>> and let the ANT build take care of the compile and weave at night.
>>
>> But aspectjtools.jar does not come with AJDT? I eventually found the
>> org.aspectj.tools.ant package in ajde.jar, but this package seems
>> having been customized, I always get the ClassDefNotFound exception.
>> Do I have to download the AspectJ distribution for my ANT build?
>>
>> By the way, the size of aspectjrt.jar in AJDT is slightly different
>> from that in AspectJ distribution. Will the output of ADJT be any
>> difference from that of the AspectJ distribution?
>>
>> Harry Sheng
>>
>>
>>
Re: Use AJDT with ant [message #587940 is a reply to message #51193] Tue, 03 May 2005 09:32 Go to previous message
Andrew Clement is currently offline Andrew ClementFriend
Messages: 162
Registered: July 2009
Senior Member
For AspectJ projects, my recommendation would be to download
AspectJ1.5.0M2 and use the tasks defined in it. Basically use
aspectjtools.jar that comes with the standalone compiler in preference
to ajde.jar which does not contain everything you need. I could
describe to you how to get your ANT script to work using the tasks
defined in ajde.jar but the classpath would be utterly hideous.

cheers,
Andy.

S├ębastien Alonzo wrote:
> Hi Andy,
>
> So what is the recommended way to use ANT to build AJDT projects :
> - use ANT tasks defined in ajde.jar ?
> - download AspectJ1.5.0M2 and use ANT tasks defined in aspectjtools.jar ?
>
> I do need to know because I intend to use ANT to build my applications
> (with or without aspects)
>
> Andy Clement wrote:
>
>> Hi Harry,
>>
>> ajde.jar is tailored so that we get tighter integration with Eclipse.
>> You don't get (currently) aspectjtools.jar with AJDT as well as the
>> distribution would be massively bloated. For now you need to download
>> a separate aspectj distribution and install it - it is advisable to
>> make sure you have the equivalent to the version of AJDT you are
>> running with. For example if you are on AJDT1.2.0M3 then you should
>> take AspectJ1.5.0M2.
>>
>> If you don't have a matching version of AspectJ then, yes, the output
>> of an ANT build outside of AJDT can be slightly different to that of
>> AJDT - the compiler moves faster than AJDT so you may pick up fixes
>> that aren't in AJDT yet. However, there should be no surprises, the
>> woven code should behave exactly the same when you build it either way.
>>
>> Andy
>>
>>
>> Harry Sheng wrote:
>>
>>> Hi,
>>>
>>> I am using eclipse3.0 and ajdt. I have already compiled my aspects, I
>>> won't need more aspects for the time-being. I want to remove the
>>> AspectJ feature from my project to get better compiling performance
>>> and let the ANT build take care of the compile and weave at night.
>>>
>>> But aspectjtools.jar does not come with AJDT? I eventually found the
>>> org.aspectj.tools.ant package in ajde.jar, but this package seems
>>> having been customized, I always get the ClassDefNotFound exception.
>>> Do I have to download the AspectJ distribution for my ANT build?
>>>
>>> By the way, the size of aspectjrt.jar in AJDT is slightly different
>>> from that in AspectJ distribution. Will the output of ADJT be any
>>> difference from that of the AspectJ distribution?
>>>
>>> Harry Sheng
>>>
>>>
>>>
Re: Use AJDT with ant [message #587949 is a reply to message #51219] Tue, 03 May 2005 12:26 Go to previous message
Matt Chapman is currently offline Matt ChapmanFriend
Messages: 429
Registered: July 2009
Senior Member
Absolutely. The only exception is if building Eclipse plugins. Then you
can just right-click your plugin.xml and do "PDE Tools > Create Ant Build
file with AspectJ support". The utterly hideous classpath is then
generated for you. You could actually reuse this classpath for non-plugin
projects, but only if you're happy for your build to require Eclipse -
otherwise stick with aspectjtools.jar.

Regards,

Matt.

On Tue, 03 May 2005 10:32:59 +0100, Andy Clement wrote:
> For AspectJ projects, my recommendation would be to download
> AspectJ1.5.0M2 and use the tasks defined in it. Basically use
> aspectjtools.jar that comes with the standalone compiler in preference
> to ajde.jar which does not contain everything you need. I could
> describe to you how to get your ANT script to work using the tasks
> defined in ajde.jar but the classpath would be utterly hideous.
>
> cheers,
> Andy.
Previous Topic:Looking for Class File ByteCode Weaving for Eclipse 2.1
Next Topic:Aspect priority(weaving order)
Goto Forum:
  


Current Time: Sat Nov 29 06:43:46 GMT 2014

Powered by FUDForum. Page generated in 0.18835 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software