Hi Antoine,
I think the problems you are experiencing are due to iajc's default
source level compliance, which is 1.4 (even if you are actually using
a newer jdk). You can supply the source level in your iajc target in
your ant buildfile, like
<iajc source="1.5">
cheers,
- Gijs Peek
vtitou vergeos wrote:
Hi,
I've read again the documentation and change my build.xml file and I
get a lot of errors that seem to be linked to Java 5.0 ( annotations
not available, "parameterized types are only available if source
level is 5.0", ...) . For information, I've installed the
aspectj-1.6.0.jar and I've also previously the ajdt 1.5.1 for
Eclipse. Thank you for your help ...
Cordially
Antoine
> Date: Tue, 29 Apr 2008 07:59:53 -0700
> From: andrew.clement@xxxxxxxxx
> To: aspectj-users@xxxxxxxxxxx
> Subject: Re: [aspectj-users] (no subject)
>
> Hello Antoine,
>
> Did you see this bit of documentation that includes some working
Ant?
>
>
http://www.eclipse.org/aspectj/doc/next/devguide/antTasks-iajc.html
>
> The Ant is:
>
> <project name="simple-example" default="compile" >
> <taskdef
>
resource="org/aspectj/tools/ant/taskdefs/aspectjTaskdefs.properties">
> <classpath>
> <pathelement
location="${home.dir}/tools/aspectj/lib/aspectjtools.jar"/>
> </classpath>
> </taskdef>
>
> <target name="compile" >
> <iajc sourceroots="${home.dir}/ec/project/src"
> classpath="${home.dir}/tools/aspectj/lib/aspectjrt.jar"/>
> </target>
> </project>
>
> To port your compile step to use 'iajc' like above you should
just be
> able to change '<javac' to '<iajc', then add aspectjrt.jar
to the
> classpath - rather than rewriting an alternative task definition
that
> uses iajc and argFiles.
>
> Andy.
>
> 2008/4/29 vtitou vergeos <titou2511@xxxxxxxxxxx>:
> >
> > Hi,
> >
> > I need a little help one more time. Until now, I was using
Eclipse and
> > aspectJ Tools to use easily aspectJ in some examples. The
problem is that I
> > want to integrate in an already existing project which
compilation is
> > realized with Ant thanks to a build.xml . I must admit that
I'm lost ! I've
> > got one aspectJ file BoundWS.aj that I must weave with a
Java Class
> > TotoWSBean in an EJB Project. This TotoWSBean depends on a
lot of other Java
> > Files and libraries. I modify the compilation part of my
build.xml file like
> > that :
> >
> > <taskdef name="ajc"
> > classname="org.aspectj.tools.ant.taskdefs.Ajc10" >
> > </taskdef>
> >
> > <target name="compile" depends="init">
> > <ajc destdir="${build.classes.dir}"
> > argfiles="liste.lst">
> > <classpath>
> > <pathelement location="${basedir}/lib/aspectjrt.jar"/>
> > </classpath>
> > <classpath refid="classpath"/>
> > </ajc>
> > </target>
> >
> > The classpath refid was used in the javac task previously
and the liste.lst
> > file contains TotoWSBean.java and BoundWS.aj paths.
> >
> > The problem is that there's a lot of error with Ant
concerning my
> > TotoWSBean.java (error of resolving types, types
mismatches, etc ...!).
> >
> > I think I'm really on the wrong way but I don't find a
solution !!
> >
> > I really hope that someone could give me a sample or an
advice. I read all
> > the compilation examples there were in the aspectJ
distribution but in this
> > examples, it compiles all the files needed together with a
.lst file.
> >
> > Bye.
> >
> > Antoine
> >
> > ________________________________
> > Tous vos amis discutent sur Messenger, et vous ?
Téléchargez Messenger,
> > c'est gratuit !
> > _______________________________________________
> > aspectj-users mailing list
> > aspectj-users@xxxxxxxxxxx
> > https://dev.eclipse.org/mailman/listinfo/aspectj-users
> >
> >
> _______________________________________________
> aspectj-users mailing list
> aspectj-users@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/aspectj-users
Plus de 15 millions de français utilisent Windows Live Messenger ! Téléchargez
Messenger, c'est gratuit !
_______________________________________________
aspectj-users mailing list
aspectj-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/aspectj-users
|