blob: 49f99f2094629bcdd8c20314d299b373aad25bf7 [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (c) 1997, 2021 Oracle and/or its affiliates. All rights reserved.
This program and the accompanying materials are made available under the
terms of the Eclipse Public License v. 2.0, which is available at
http://www.eclipse.org/legal/epl-2.0.
This Source Code may also be made available under the following Secondary
Licenses when the conditions for such availability set forth in the
Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
version 2 with the GNU Classpath Exception, which is available at
https://www.gnu.org/software/classpath/license.html.
SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.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">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.eclipse.ee4j</groupId>
<artifactId>project</artifactId>
<version>1.0</version>
<relativePath/>
</parent>
<groupId>org.glassfish.quicklook</groupId>
<artifactId>quicklook</artifactId>
<name>Glassfish Quicklook Bundle</name>
<packaging>jar</packaging>
<version>6.2.5-SNAPSHOT</version>
<description>This pom describes how to run QuickLook tests on the Glassfish Bundle</description>
<build>
<plugins>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<version>3.0.0</version>
<executions>
<execution>
<id>default-test</id>
<phase>test</phase>
<configuration>
<target>
<taskdef resource="net/sf/antcontrib/antcontrib.properties"
classpathref="maven.plugin.classpath" />
<property name="compile_classpath" refid="maven.compile.classpath"/>
<property name="plugin_classpath" refid="maven.plugin.classpath"/>
<echo message="compile classpath: ${compile_classpath}"/>
<echo message="plugin classpath: ${plugin_classpath}"/>
<if>
<equals arg1="${test.gd}" arg2="true" />
<then>
<ant dir="." antfile="build.xml" target="all">
<property name="glassfish.home" value="${glassfish.home}"/>
</ant>
</then>
</if>
<if>
<equals arg1="${test.wd}" arg2="true" />
<then>
<ant dir="." antfile="build.xml" target="all_wd">
<property name="glassfish.home" value="${glassfish.home}"/>
</ant>
</then>
</if>
<if>
<equals arg1="${test.em}" arg2="true" />
<then>
<ant dir="." antfile="build.xml" target="all_embedded">
<property name="glassfish.home" value="${glassfish.home}"/>
</ant>
</then>
</if>
<if>
<equals arg1="${test.ri}" arg2="true" />
<then>
<ant dir="." antfile="build.xml" target="all_ri">
<property name="glassfish.home" value="${glassfish.home}"/>
</ant>
</then>
</if>
<if>
<equals arg1="${test.wd.security}" arg2="true" />
<then>
<ant dir="." antfile="build.xml" target="all_wd_security">
<property name="glassfish.home" value="${glassfish.home}"/>
</ant>
</then>
</if>
<if>
<equals arg1="${start.wd.security}" arg2="true" />
<then>
<ant dir="." antfile="build.xml" target="start_server_with_security_manager_enabled">
<property name="glassfish.home" value="${glassfish.home}"/>
</ant>
</then>
</if>
<if>
<equals arg1="${stop.wd.security}" arg2="true" />
<then>
<ant dir="." antfile="build.xml" target="stop_server_with_security_manager_enabled">
<property name="glassfish.home" value="${glassfish.home}"/>
</ant>
</then>
</if>
<if>
<equals arg1="${test.gd.security}" arg2="true" />
<then>
<ant dir="." antfile="build.xml" target="all_gd_security">
<property name="glassfish.home" value="${glassfish.home}"/>
</ant>
</then>
</if>
<if>
<isset property="test.report" />
<then>
<ant dir="." antfile="build.xml" target="report"/>
</then>
</if>
<if>
<equals arg1="${test.debug}" arg2="true" />
<then>
<ant dir="." antfile="build.xml" target="dev_debug">
<property name="glassfish.home" value="${glassfish.home}"/>
</ant>
</then>
</if>
</target>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>org.apache.ant</groupId>
<artifactId>ant</artifactId>
<version>1.10.9</version>
</dependency>
<dependency>
<groupId>org.apache.ant</groupId>
<artifactId>ant-junit</artifactId>
<version>1.10.9</version>
</dependency>
<dependency>
<groupId>org.apache.ant</groupId>
<artifactId>ant-apache-regexp</artifactId>
<version>1.10.9</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>commons-codec</groupId>
<artifactId>commons-codec</artifactId>
<version>1.3</version>
</dependency>
<dependency>
<groupId>org.testng</groupId>
<artifactId>testng</artifactId>
<version>6.11</version>
</dependency>
<dependency>
<groupId>com.sun.jsftemplating</groupId>
<artifactId>jsftemplating-dynafaces</artifactId>
<version>0.1</version>
</dependency>
<dependency>
<groupId>commons-httpclient</groupId>
<artifactId>commons-httpclient</artifactId>
<version>3.1</version>
</dependency>
<dependency>
<groupId>jakarta-regexp</groupId>
<artifactId>jakarta-regexp</artifactId>
<version>1.4</version>
</dependency>
<dependency>
<groupId>ant-contrib</groupId>
<artifactId>ant-contrib</artifactId>
<version>1.0b3</version>
<exclusions>
<exclusion>
<groupId>ant</groupId>
<artifactId>ant</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>com.beust</groupId>
<artifactId>jcommander</artifactId>
<version>1.72</version>
</dependency>
</dependencies>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>report</id>
<properties>
<test.report>test-output</test.report>
</properties>
</profile>
<profile>
<id>all</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<properties>
<test.gd>true</test.gd>
</properties>
</profile>
<profile>
<id>test_wd</id>
<properties>
<test.wd>true</test.wd>
</properties>
</profile>
<profile>
<id>test_em</id>
<properties>
<test.em>true</test.em>
</properties>
</profile>
<profile>
<id>test_ri</id>
<properties>
<test.ri>true</test.ri>
</properties>
</profile>
<profile>
<id>test_wd_security</id>
<properties>
<test.wd.security>true</test.wd.security>
</properties>
</profile>
<profile>
<id>start_wd_security</id>
<properties>
<start.wd.security>true</start.wd.security>
</properties>
</profile>
<profile>
<id>stop_wd_security</id>
<properties>
<stop.wd.security>true</stop.wd.security>
</properties>
</profile>
<profile>
<id>test_gd_security</id>
<properties>
<test.gd.security>true</test.gd.security>
</properties>
</profile>
<profile>
<id>dev_debug</id>
<properties>
<test.debug>true</test.debug>
</properties>
</profile>
</profiles>
</project>