190 lines
8.6 KiB
XML
Executable File
190 lines
8.6 KiB
XML
Executable File
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!--
|
|
# BEGIN_HEADER - DO NOT EDIT
|
|
#
|
|
# The contents of this file are subject to the terms
|
|
# of the Common Development and Distribution License
|
|
# (the "License"). You may not use this file except
|
|
# in compliance with the License.
|
|
#
|
|
# You can obtain a copy of the license at
|
|
# https://open-jbi-components.dev.java.net/public/CDDLv1.0.html.
|
|
# See the License for the specific language governing
|
|
# permissions and limitations under the License.
|
|
#
|
|
# When distributing Covered Code, include this CDDL
|
|
# HEADER in each file and include the License file at
|
|
# https://open-jbi-components.dev.java.net/public/CDDLv1.0.html.
|
|
# If applicable add the following below this CDDL HEADER,
|
|
# with the fields enclosed by brackets "[]" replaced with
|
|
# your own identifying information: Portions Copyright
|
|
# [year] [name of copyright owner]
|
|
-->
|
|
|
|
<!--
|
|
# @(#)pom.xml
|
|
# Copyright 2006-2008 Sun Microsystems, Inc. All Rights Reserved.
|
|
#
|
|
# END_HEADER - DO NOT EDIT
|
|
-->
|
|
<project>
|
|
<parent>
|
|
<artifactId>build-common</artifactId>
|
|
<groupId>open-jbi-components</groupId>
|
|
<version>1.1</version>
|
|
<relativePath>../../build-common</relativePath>
|
|
</parent>
|
|
<modelVersion>4.0.0</modelVersion>
|
|
<groupId>open-jbi-components</groupId>
|
|
<artifactId>bpel-system-tests</artifactId>
|
|
<name>bpel-system-tests</name>
|
|
<version>${bpelse.artifact.version}</version>
|
|
<description>BPEL System Tests Project</description>
|
|
<build>
|
|
<testResources>
|
|
<testResource>
|
|
<directory>test</directory>
|
|
<excludes>
|
|
<!--
|
|
! need to replace the @variables@ in the .wsdl and .xml files
|
|
-->
|
|
<exclude>**/*.java</exclude>
|
|
<exclude>**/*.ref</exclude>
|
|
<exclude>**/.*</exclude>
|
|
<exclude>**/*.wsdl</exclude>
|
|
<exclude>**/*.pom</exclude>
|
|
</excludes>
|
|
</testResource>
|
|
</testResources>
|
|
<plugins>
|
|
<plugin>
|
|
<artifactId>maven-antrun-plugin</artifactId>
|
|
<executions>
|
|
<execution>
|
|
<id>${project.artifactId}-substitute-ant-variables</id>
|
|
<phase>process-test-resources</phase>
|
|
<goals>
|
|
<goal>run</goal>
|
|
</goals>
|
|
<configuration>
|
|
<tasks>
|
|
<property name="project.build.directory" value="${project.build.directory}"/>
|
|
<property name="project.build.testSourceDirectory" value="${project.build.testSourceDirectory}"/>
|
|
<property name="SRCROOT" value="${SRCROOT}"/>
|
|
<!-- create global filter rules: -->
|
|
<echo file="${project.build.directory}/filter" append="false">
|
|
SRCROOT=${SRCROOT}
|
|
alaska_root=${SRCROOT}/ojc-core
|
|
alaska_sharedlibrary=${SRCROOT}/ojc-core/component-common
|
|
asadmin_cmd=bin/asadmin
|
|
asant_cmd=bin/asant
|
|
drivertest_dir=${SRCROOT}/ojc-core/driver-tests
|
|
encoder_sharedlibrary=${SRCROOT}/ojc-core/encodersl/encoder-
|
|
shell_cmd=sh
|
|
jbicomps_home=${SRCROOT}/ojc-core
|
|
tempdir=/tmp
|
|
</echo>
|
|
<filter filtersfile="${project.build.directory}/filter"/>
|
|
<copy todir="${project.build.directory}/test" overwrite="true" filtering="true" verbose="true" failonerror="false">
|
|
<fileset dir="${project.build.testSourceDirectory}">
|
|
<include name="**/*.xml"/>
|
|
<include name="**/*.wsdl"/>
|
|
<include name="**/*.properties"/>
|
|
</fileset>
|
|
</copy>
|
|
</tasks>
|
|
</configuration>
|
|
</execution>
|
|
<execution>
|
|
<id>${project.artifactId}-run-junit-and-derby-via-ant</id>
|
|
<phase>test</phase>
|
|
<goals>
|
|
<goal>run</goal>
|
|
</goals>
|
|
<configuration>
|
|
<tasks>
|
|
<property name="derbydb" value="${project.build.directory}/javadb"/>
|
|
<property name="junit.srcroot" value="${SRCROOT}"/>
|
|
<property name="junit.suite.classpath" refid="maven.test.classpath"/>
|
|
<patternset id="jbicomps.junit.test.patternset">
|
|
<include name="**/*Test.java"/>
|
|
</patternset>
|
|
<!-- invoke derby and junit via ant -->
|
|
<ant antfile="${SRCROOT}/global-common/m2.ant" dir="${project.build.sourceDirectory}/.." target="run_junit_and_derby">
|
|
<property name="maven.test.skip" value="${maven.test.skip}"/>
|
|
<property name="maven.repo.local" value="${maven.repo.local}"/>
|
|
<property name="project.artifactId" value="${project.artifactId}"/>
|
|
<property name="project.build.directory" value="${project.build.directory}"/>
|
|
<property name="project.build.testSourceDirectory" value="${project.build.testSourceDirectory}"/>
|
|
<property name="work.dir" value="${project.build.directory}"/>
|
|
<property name="derbydb" value="${derbydb}"/>
|
|
<propertyset id="jbicomps.junit.sysproperties">
|
|
<propertyref name="junit.srcroot"/>
|
|
<propertyref name="junit.suite.classpath"/>
|
|
</propertyset>
|
|
<reference refid="maven.test.classpath"/>
|
|
<reference refid="jbicomps.junit.sysproperties"/>
|
|
<reference refid="jbicomps.junit.test.patternset"/>
|
|
</ant>
|
|
</tasks>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<plugin>
|
|
<artifactId>maven-surefire-plugin</artifactId>
|
|
<configuration>
|
|
<skip>true</skip>
|
|
</configuration>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>open-jbi-components</groupId>
|
|
<artifactId>bpelcore</artifactId>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>open-jbi-components</groupId>
|
|
<artifactId>bpeljbiadapter</artifactId>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>open-jbi-components</groupId>
|
|
<artifactId>common-util</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>xmlunit</groupId>
|
|
<artifactId>xmlunit</artifactId>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>junit</groupId>
|
|
<artifactId>junit</artifactId>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>ant</groupId>
|
|
<artifactId>ant-junit</artifactId>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>oracle.jdbc</groupId>
|
|
<artifactId>ojdbc14</artifactId>
|
|
<version>10.1.0.5</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>mysql</groupId>
|
|
<artifactId>mysql-connector-java</artifactId>
|
|
<version>5.1.6</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.apache.derby</groupId>
|
|
<artifactId>derbyclient</artifactId>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
</dependencies>
|
|
</project>
|