aboutsummaryrefslogtreecommitdiffstats
path: root/tests/ltw/ant-server.xml
blob: d4958e3e3ea120e518fd2004a9703a1a7a071090 (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
<!-- ajc-ant script, not to be used from Ant commant line - see AntSpec -->
<project name="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="TestServer with HelloWorld">
        <copy file="${aj.root}/tests/ltw/server-helloworld.properties"
              tofile="${aj.sandbox}/server.properties"/>
        <java fork="yes" classname="org.aspectj.testing.server.TestServer" failonerror="yes">
            <classpath refid="aj.path"/>
            <jvmarg value="-javaagent:${aj.root}/lib/test/loadtime5.jar"/>
            <jvmarg value="-Daj.weaving.verbose=true"/>
            <jvmarg value="-Dorg.aspectj.weaver.showWeaveInfo=true"/>
<!--            <jvmarg value="${aj.addOpensKey}"/>-->
<!--            <jvmarg value="${aj.addOpensValue}"/>-->
            <!--<jvmarg value="-Dorg.aspectj.testing.server.debug=true"/>-->
            <sysproperty key="org.aspectj.dump.directory" path="${aj.sandbox}"/>
            <arg path="${aj.sandbox}"/>
        </java>
    </target>

    <target name="TestServer with Parent and Child">
        <copy file="${aj.root}/tests/ltw/server-parentandchild.properties"
              tofile="${aj.sandbox}/server.properties"/>
        <java fork="yes" classname="org.aspectj.testing.server.TestServer" failonerror="yes">
            <classpath refid="aj.path"/>
            <jvmarg value="-javaagent:${aj.root}/lib/test/loadtime5.jar"/>
            <jvmarg value="-Daj.weaving.verbose=true"/>
            <jvmarg value="-Dorg.aspectj.weaver.showWeaveInfo=true"/>
<!--            <jvmarg value="${aj.addOpensKey}"/>-->
<!--            <jvmarg value="${aj.addOpensValue}"/>-->
            <!--<jvmarg value="-Dorg.aspectj.testing.server.debug=true"/>-->
            <sysproperty key="org.aspectj.dump.directory" path="${aj.sandbox}"/>
            <arg path="${aj.sandbox}"/>
        </java>
    </target>

</project>
s="w"> <scope>provided</scope> </dependency> <dependency> <groupId>org.apache.xmlgraphics</groupId> <artifactId>xmlgraphics-commons</artifactId> <version>${xmlgraphics.commons.version}</version> </dependency> <!-- test-only deps --> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>${junit.version}</version> <scope>test</scope> </dependency> </dependencies> <build> <plugins> <!-- generate event collector models --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-antrun-plugin</artifactId> <version>${antrun.plugin.version}</version> <executions> <execution> <id>codegen-test-events</id> <phase>process-test-classes</phase> <goals> <goal>run</goal> </goals> <configuration> <target> <taskdef name="collectEvents" classname="org.apache.fop.tools.EventProducerCollectorTask"> <classpath> <path refid="maven.compile.classpath"/> <path refid="maven.test.classpath"/> </classpath> </taskdef> <collectEvents destdir="${project.build.testOutputDirectory}"> <fileset dir="${project.basedir}/src/test/java"> <include name="**/events/TestEventProducer.java"/> </fileset> </collectEvents> </target> </configuration> </execution> </executions> </plugin> <!-- junit testing --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <configuration> <includes> <include>**/*TestCase.java</include> </includes> <redirectTestOutputToFile>true</redirectTestOutputToFile> </configuration> </plugin> <!-- code analysis - checkstyle --> <plugin> <artifactId>maven-checkstyle-plugin</artifactId> <configuration> <configLocation>${project.baseUri}../fop-core/src/tools/resources/checkstyle/checkstyle.xml</configLocation> <headerLocation>${project.baseUri}../fop-core/src/tools/resources/checkstyle/LICENSE.txt</headerLocation> <includeResources>false</includeResources> <includeTestResources>false</includeTestResources> <linkXRef>false</linkXRef> <logViolationsToConsole>true</logViolationsToConsole> <suppressionsLocation>${project.baseUri}../fop-core/src/tools/resources/checkstyle/suppressions.xml</suppressionsLocation> <violationSeverity>warning</violationSeverity> </configuration> </plugin> <!-- code analysis - findbugs --> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>findbugs-maven-plugin</artifactId> <version>${findbugs.plugin.version}</version> <configuration> <excludeFilterFile>../fop-core/src/tools/resources/findbugs/exclusions.xml</excludeFilterFile> <effort>Max</effort> <threshold>Low</threshold> </configuration> </plugin> </plugins> <resources> <resource> <directory>src/main/resources</directory> </resource> <resource> <directory>${basedir}/..</directory> <includes> <include>LICENSE</include> <include>NOTICE</include> </includes> <targetPath>META-INF</targetPath> </resource> </resources> <testResources> <testResource> <directory>src/test/resources</directory> <includes> <include>**/*</include> </includes> </testResource> </testResources> </build> </project>