Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-users] Problems with the iajc-ant-task

I can only imagine it is duplication somewhere on the paths you are providing.  Can you run ant with -verbose and determine the issue from the verbose output (it should include the full command line being used to call the compiler).  Can you run this command line outside of Ant successfully?

Andy.

2009/1/13 Tobias Demuth <tobias.demuth@xxxxxxxxxx>
Hi,

I have some problems compiling my project using Ant and the iajc-task:

The project contains classes and aspects, aspects are named .aj. If I run the following Ant-script, I always get "already defined"-errors for all of my classes:

 <!-- Load the AspectJ-Tasks -->
 <taskdef
     resource="org/aspectj/tools/ant/taskdefs/aspectjTaskdefs.properties"
     classpath=".;${AJ_TOOLS}"
 />
 <target name="compile" depends="prepare">
     <path id="classpath">
         <pathelement path="." />
         <pathelement path="${AJ_RT}" />
         <pathelement path="${JRE_LIB}" />
     </path>
               <path id="srcRoots">
         <dirset dir="./src" id="id">
             <include name="**/*" />
             <exclude name="**/test/**"/><!-- Exclude test-packages -->
         </dirset>
     </path>
           <iajc sourceRootsRef="srcRoots" classpathRef="classpath" destdir="${BUILD_LOC}" source="1.5" />
 </target>

What am I doing wrong?

kind regards
Tobias
_______________________________________________
aspectj-users mailing list
aspectj-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/aspectj-users


Back to the top