Skip to main content

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

Cyrill

Hi
I am still having problems compiling my servlets with ant using iajc.

I have changed my compile target as follows, but iajc still cannot compile 
servlets:

<target name="compile" depends="init,ejbdoclet, webdoclet" 
description="Compiles the source code with aspects">
	 <mkdir dir="${build.classes.dir}"/>
                <iajc destDir="${build.classes.dir}">
                    <sourceroots>
                        <pathelement location="${build.gen-src.dir}" />
                        <pathelement location="${build.src.dir}/main" />
                        <pathelement location="${build.src.dir}/servlet" />
                    </sourceroots>
                    <classpath>
                    
		    <pathelement location="${catalina.home}/servlets-
common.jar"/>
		    <pathelement location="${catalina.home}/servlets-
default.jar"/>
		    <pathelement location="${catalina.home}/servlets-
invoker.jar"/>
		    <pathelement location="${catalina.home}/servlet-
webdev.jar"/>
                    
                    <pathelement location="${classpath}"/>
                    </classpath>
               
                </iajc>
        </target>

My aspect files are under "${build.src.dir}/main" directory.

As u may have noticed I do not include <aspectpath>. I am not really sure 
what's the function of <aspectpath> (I have read the Ant Task documentation but 
did not understand the explanation).

I will be grateful if someone can help me to compile.
regards



Back to the top