[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [aspectj-dev] iajc-task
|
Here a snippet of my ant task:
<target name="compile.aj"
depends="init"
description="AspectJ compile">
<iajc srcdir="src/main/java:src/main/resources:src/main/aspectj"
destdir="${classes.dir}"
classpathref="project.classpath"
debug="on"
target="1.4"
source="1.4">
</iajc>
</target>
I remember there was a problem with the srcdir parameter of the
compiler, but I'm not sure.
Hi,
Coming from an ant developer, your srcdir value doesn't look right - (I
know iajc is developed externally by the AspectJ guys, so it may be a
different beast altogether).
Typically the compiler tasks (javac, jikes, gcj etc) use a nested
<include> <exclude> to specify which files should be considered by the
compiler. It's also common practice to simply specify the root dir in
the src dir (or <src>) and then use include/exclude to filter out
unwanted files. And I've never seen the dir:dir:dir structure before in
ant - almost looks like a classpath for unix :)
This manual page contains more info
http://ant.apache.org/manual/index.html
Kev
PS What happened to the link to iajc on the external tasks page? Did
someone request for it to be removed? Or am I imagining the whole thing?