Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-users] problem with iajc

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
>


Back to the top