<?xml version="1.0"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<parent>
<groupId>org.jruby</groupId>
<artifactId>shared</artifactId>
<version>0.9.9</version>
<relativePath>../../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
<groupId>org.jruby</groupId>
<artifactId>jruby</artifactId>
<packaging>jar</packaging>
<version>0.9.9</version>
<name>JRuby</name>
<dependencies>
<dependency>
<groupId>requireTest</groupId>
<artifactId>requireTest</artifactId>
<version>SNAPSHOT</version>
<scope>system</scope>
<systemPath>${project.basedir}/../../test/requireTest.jar</systemPath>
</dependency>
</dependencies>
<build>
<sourceDirectory>${basedir}/../../src</sourceDirectory>
<testSourceDirectory>${basedir}/../../test</testSourceDirectory>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<includes>
<!-- <include>org/jruby/test/MainTestSuite.java</include> -->
<!-- <include>org/jruby/test/ScriptTestSuite.java</include> -->
<!-- <include>org/jruby/test/TestUnitTestSuite.java</include> -->
</includes>
<excludes>
<exclude>**/*.java</exclude>
</excludes>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<id>serialize</id>
<phase>process-classes</phase>
<configuration>
<tasks>
<taskdef name="jruby-serialize" classname="org.jruby.util.ant.JRubySerialize">
<classpath path="${project.build.outputDirectory}"/>
</taskdef>
<jruby-serialize destdir="${project.build.outputDirectory}">
<fileset dir="${project.build.sourceDirectory}">
<include name="builtin/**/*.rb"/>
</fileset>
</jruby-serialize>
</tasks>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
<execution>
<id>tests</id>
<phase>test</phase>
<configuration>
<tasks>
<mkdir dir="${project.build.directory}/surefire-reports"/>
<taskdef name="junit" classname="org.apache.tools.ant.taskdefs.optional.junit.JUnitTask"
classpathref="maven.plugin.classpath"/>
<junit fork="yes" forkMode="once" haltonfailure="true" dir="${project.build.testOutputDirectory}" maxmemory="384M">
<classpath refid="maven.test.classpath"/>
<formatter type="plain"/>
<formatter type="xml"/>
<formatter type="brief" usefile="false"/>
<sysproperty key="java.awt.headless" value="true"/>
<sysproperty key="basedir" value="${basedir}"/>
<sysproperty key="jruby.home" value="${basedir}/../.."/>
<sysproperty key="jruby.base" value="${basedir}/../.."/>
<sysproperty key="jruby.lib" value="${basedir}/../../lib"/>
<test name="org.jruby.test.MainTestSuite" unless="maven.test.skip" todir="${project.build.directory}/surefire-reports"/>
<test name="org.jruby.test.ScriptTestSuite" unless="maven.test.skip" todir="${project.build.directory}/surefire-reports"/>
<test name="org.jruby.test.TestUnitTestSuite" unless="maven.test.skip" todir="${project.build.directory}/surefire-reports"/>
</junit>
</tasks>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
|