[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
RE: [aspectj-dev] iajc-task
|
Hi Oliver,
Here's an example of an iajc task that I am using that builds from multiple
sources successfully:
<iajc incremental="false" destdir="${testoutput.dir}"
x="${ajc.testxOptions}"
sourceRootCopyFilter="**/*.java,**/CVS/**,**/*~,**/*#*,**/.#*,**/%*%,**/.cvs
ignore">
<src location="${src.dir}" />
<src location="${testsrc.dir}" />
<src location="${etc.dir}" />
<exclude name="**/CVS/*" />
<classpath refid="test.class.path" />
<aspectpath refid="project.test.aspect.path" />
</iajc>
Another thing that has worked for me is:
<iajc outjar="${dist.dir}/glassboxInspectorDebug.jar" source="1.3"
target="1.3" debuglevel="source"
sourcerootcopyfilter="**/CVS/*,**/*.java,**/*.aj">
<sourceroots>
<pathelement location="utilsrc"/>
<pathelement location="src"/>
</sourceroots>
<classpath refid="project.class.path" />
<aspectpath>
<pathelement location="${monitor.jar}" />
</aspectpath>
</iajc>
Hope that helps...
-----Original Message-----
From: aspectj-dev-bounces@xxxxxxxxxxx
[mailto:aspectj-dev-bounces@xxxxxxxxxxx] On Behalf Of Oliver Böhm
Sent: Thursday, February 23, 2006 2:01 PM
To: AspectJ developer discussions
Cc: oliver.boehm@xxxxxxxxxx
Subject: Re: [aspectj-dev] iajc-task
Hi Kev,
thanks for the tip, but it seems not to work for me. Here the snippet of
the ant changed iajc task:
<target name="compile.test.aj"
depends="init"
description="AspectJ test compile">
<iajc destdir="${test-classes.dir}"
classpathref="project.classpath"
debug="on"
target="1.4"
source="1.4">
<src path="src/main/aspectj"/>
<src path="src/main/java"/>
<src path="src/main/resources"/>
<src path="src/test/aspectj"/>
<src path="src/test/java"/>
<src path="src/test/resources"/>
</iajc>
</target>
Also include/exclude statements doesn't help here.
Kev Jackson wrote:
...
> 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 is originally form the Ant manual. Look at the examples for the
javac task. Here you will find:
<javac srcdir="${src}:${src2}"
destdir="${build}"
includes="mypackage/p1/**,mypackage/p2/**"
excludes="mypackage/p1/testpackage/**"
classpath="xyz.jar"
debug="on"
/>
regards
Oliver
--
Oliver Böhm
http://www.javatux.de
_______________________________________________
aspectj-dev mailing list
aspectj-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/aspectj-dev