[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [aspectj-users] Ant task: choosing which aspect to weave
|
ajc, and hence iajc, only compiles the source files
you specify, so you can just omit aspects you don't want
to include. However, if you are using the -sourceroots option,
there is no way to exclude source files in a source root.
With iajc/Ant, you can use include/exclude
to create a file list.
But most people I know use the -argfile {file} option
of ajc to specify arguments; that saves everything,
is easy to edit, and can be used from the command-
line and Ant (and there's limited support in AJDT
for import and export).
See the development environment guide sections on
ajc and iajc for more details.
I hope this helps -
Wes
> ------------Original Message------------
> From: Camila Rocha <camilar@xxxxxxxxx>
> To: aspectj-users@xxxxxxxxxxx
> Date: Thu, Sep-23-2004 11:10 AM
> Subject: [aspectj-users] Ant task: choosing which aspect to weave
>
> Hello,
>
> Here I am again fighting with Ant.
> The older problem was solved, thanks Adrian and Wes. The jar file is
> created.
> But now I have another problem: I have a jar file with .class aspects,
> but I don't want all of them to be weaved into my code. I want to
> choose which aspects will be weaved.
> Is there a way of doing this, using something like <exclude>? What
> about command-line compiler?
> I've tried, but I am a dummy in Ant, so... It'm in trouble.
>
> Thanks,
>
> --
> Camila Rocha
> www.ic.unicamp.br/~ra022247
> _______________________________________________
> aspectj-users mailing list
> aspectj-users@xxxxxxxxxxx
> http://dev.eclipse.org/mailman/listinfo/aspectj-users
>