[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[List Home]
|
Re: [aspectj-users] problem with iajc
|
- From: "Andy Clement" <andrew.clement@xxxxxxxxx>
- Date: Thu, 7 Feb 2008 08:26:02 -0800
- Delivered-to: aspectj-users@eclipse.org
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=Lo5H2VgGp82i6zXWgeXASuWWwBJEB5/O4Piz7uQICmA=; b=K6njKA6z9lhI1TLSxoin7c4puCGInrSnneadRJSJoHYh3HyBEfwOp7OVHNeBs900PpOGvVavr1T5K8U5Nv4Xcyza1dyI0zfG4tMC+8NTczbYCk0TiJdB+ACfSq+nN2QuLJitq86Fx38hmk70nDgnWTaWtlkv9GmDdk4bUrK51gE=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=lkgzJnlG1vvo7JEeUlp7kQqA35105lSFMkl/LjCzvUi65kC28GOJ37MTuqUqtzh/bAi1Qr4vHwCC7nK2clqJn8zLqrAte1z7y2tiy01innCae5Qsj9koFrFiih5EevisI2crW8qf/sVLkwRINPrZ1bqWiJKnltzXyEKhB9+PSSQ=
I've never defined the iajc task like that before, it is possible the
library does not implement something that kind of declaration needs.
I always use:
<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>
Andy.
On 07/02/2008, Luca Ferrari <fluca1978@xxxxxxxxxxx> wrote:
> Hi,
> I've got a problem with ant and iajc within Eclipse (3.3, Ant 1.7, Aspectj
> 1.5). My ant file has the following definition:
>
> <project basedir="." default="init" name="HRPM"
> xmlns:aspectj="antlib:org.aspectj">
>
> ...
> <target name="_AspectJCompile" depends="init" description="Compiles the
> project using AspectJ compiler." >
> <aspectj:iajc srcDir="${src.dir}" destDir="${build.dir}"
> classpath="/sviluppo/java//jars/aspectjrt.jar" source="1.5" />
> </target>
> ....
> </project>
>
>
>
> When I run the task, I get:
>
>
> BUILD FAILED
> /opt/sviluppo/java/eclipseWorkspace/HRPM/build.xml:159: Problem: failed to
> create task or type antlib:org.aspectj:iajc
> Cause: The name is undefined.
> Action: Check the spelling.
> Action: Check that any custom tasks/types have been declared.
> Action: Check that any <presetdef>/<macrodef> declarations have taken place.
>
> This appears to be an antlib declaration.
> Action: Check that the implementing library exists in one of:
> -/opt/sviluppo/java/eclipse3.3/plugins/org.apache.ant_1.7.0.v200706080842/lib
> -/home/luca/.ant/lib
> -a directory added on the command line with the -lib argument
>
>
> Now, I've checked and the aspectjtools.jar is in the
> plugins/org.apache.ant_1.7.0.v200706080842/lib directory, thus I don't know
> what the problem is. I didn't find any solution thru google.
> Any idea?
>
> Thanks,
> Luca
> _______________________________________________
> aspectj-users mailing list
> aspectj-users@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/aspectj-users
>