Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-users] Compiling Servlets

Hello,



Any idea what I may be missing?


<target name="compile_aspect" depends="init,configuration"
			description="Compiles the source code with aspects">
<iajc fork="true" destDir="${dir.compile.source}" classpath="${jar.aspectjrt}">
		    <sourceroots>
		        <pathelement location="${dir.source}" />
		        <pathelement location="${dir.aspectj}" />
		    </sourceroots>
		    <classpath>
		        <pathelement location="${jar.junit}"/>
		    </classpath>
		    <aspectpath>
                <pathelement location="${jar.vmunit}"/>
            </aspectpath>
		</iajc>
	</target>


- include fork="true" if you start the build.xml within Eclipse
- sourceroots inludes your source files to compile
- classpath should include all libraries the compiler needs
- aspectpath included libraries with aspects --> you will not use it in your project!


Regards,

Cyrill



Back to the top