aboutsummaryrefslogtreecommitdiffstats
path: root/tests/java5/ataspectj/ajc-ant.xml
blob: 85f1367da61a5bebaefc181afce3f6030d52ab1e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<!-- ajc-ant script, not to be used from Ant commant line - see AntSpec -->
<project name="ltw" default="javac.ltw">

    <!-- using this we can debug the forked VM -->
    <property
        name="jdwp"
        value="-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=5005"/>

    <target name="compile:javac">
        <!-- compile only javac compilable stuff -->
        <javac destdir="${aj.sandbox}" classpathref="aj.path"
            srcdir="${basedir}"
            includes="ataspectj/*"
            debug="true">
        </javac>
    </target>

    <target name="ltw">
        <java fork="yes" classname="ataspectj.AllLTWTests" failonerror="yes">
            <classpath refid="aj.path"/>
            <!-- use META-INF/aop.xml style -->
            <classpath path="ataspectj/pathentry"/>
            <jvmarg value="-javaagent:${aj.root}/lib/test/loadtime5.jar"/>
            <!--<jvmarg line="${jdwp}"/>-->
        </java>
    </target>

    <target name="ltw.PerClauseTest">
        <java fork="yes" classname="ataspectj.PerClauseTest" failonerror="yes">
            <classpath refid="aj.path"/>
            <jvmarg value="-javaagent:${aj.root}/lib/test/loadtime5.jar"/>
            <jvmarg value="-Daj5.def=ataspectj/aop-perclausetest.xml"/>
        </java>
    </target>

    <target name="ltw.AroundInlineMungerTest">
        <java fork="yes" classname="ataspectj.AroundInlineMungerTest" failonerror="yes">
            <classpath refid="aj.path"/>
            <jvmarg value="-javaagent:${aj.root}/lib/test/loadtime5.jar"/>
            <jvmarg value="-Daj5.def=ataspectj/aop-aroundinlinemungertest.xml"/>
            <!--<jvmarg line="${jdwp}"/>--><!-- uncomment to debug with JDWP -->
        </java>
    </target>

    <target name="ltw.AroundInlineMungerTest2">
        <java fork="yes" classname="ataspectj.AroundInlineMungerTest2" failonerror="yes">
            <classpath refid="aj.path"/>
            <jvmarg value="-javaagent:${aj.root}/lib/test/loadtime5.jar"/>
            <jvmarg value="-Daj5.def=ataspectj/aop-aroundinlinemungertest2.xml"/>
        </java>
    </target>

    <target name="javac.ltw" depends="compile:javac, ltw"/>
</project>