|
Glassfish example source code file (build.xml)
The Glassfish build.xml source code<?xml version="1.0" encoding="UTF-8"?> <!-- DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. Copyright (c) 1997-2011 Oracle and/or its affiliates. All rights reserved. The contents of this file are subject to the terms of either the GNU General Public License Version 2 only ("GPL") or the Common Development and Distribution License("CDDL") (collectively, the "License"). You may not use this file except in compliance with the License. You can obtain a copy of the License at https://glassfish.dev.java.net/public/CDDL+GPL_1_1.html or packager/legal/LICENSE.txt. See the License for the specific language governing permissions and limitations under the License. When distributing the software, include this License Header Notice in each file and include the License file at packager/legal/LICENSE.txt. GPL Classpath Exception: Oracle designates this particular file as subject to the "Classpath" exception as provided by Oracle in the GPL Version 2 section of the License file that accompanied this code. Modifications: If applicable, add the following below the License Header, with the fields enclosed by brackets [] replaced by your own identifying information: "Portions Copyright [year] [name of copyright owner]" Contributor(s): If you wish your version of this file to be governed by only the CDDL or only the GPL Version 2, indicate your decision by adding "[Contributor] elects to include this software in this distribution under the [CDDL or GPL Version 2] license." If you don't indicate a single choice of license, a recipient has the option to distribute your version of this file under either the CDDL, the GPL Version 2 or to extend the choice of license to its licensees as provided above. However, if you add GPL Version 2 code and therefore, elected the GPL Version 2 license, then the option applies only if the new code is made subject to such option by the copyright holder. --> <project name="GlassFish-V3-QuickLook" default="all" basedir="."> <property environment="env"/> <property file="build.properties"/> <property file="${basedir}/gfproject/derby.properties"/> <import file="${basedir}/gfproject/db-targets.xml"/> <import file="${basedir}/gfproject/utils.xml"/> <description>Builds, tests, and runs the project V3 Quicklook <target name="all_cluster"> <record name="allrun.output" action="start"/> <antcall target="start-server-felix"/> <antcall target="build-cluster"/> <antcall target="runtest"> <param name="testng.xml" value="testng/testng_cluster.xml"/> </antcall> <antcall target="stop-server"/> <antcall target="testng-summary"/> <record name="allrun.output" action="stop"/> </target> <target name="all_embedded"> <record name="embeddedrun.output" action="start"/> <ant dir="ejb/embedded" target="build"/> <antcall target="runtest-embedded"> <param name="testng.xml" value="testng/testng_em.xml"/> </antcall> <record name="embeddedrun.output" action="stop"/> </target> <target name="build-cluster"> <ant dir="cluster/clustersetup" target="build"/> <ant dir="cluster/helloworld" target="build"/> <ant dir="cluster/clusterteardown" target="build"/> </target> <!-- target name="all_wd" depends="clean" --> <target name="all_wd" > <record name="allrun.output" action="start"/> <property name="env.security_manager" value="OFF"/> <antcall target="verify-xml"/> <antcall target="start-derby"/> <antcall target="start-server-felix"/> <antcall target="build-deploy"/> <antcall target="runtest"> <param name="testng.xml" value="testng/testng_wd.xml"/> <antcall target="undeploy"/> <antcall target="quicklook-summary"/> <antcall target="stop-server"/> <antcall target="stop-derby"/> <copy file="test-output/emailable-report.html" tofile="test-output/QL-WP-report.html"/> <antcall target="check-logged-messages"/> <antcall target="testng-summary"/> <record name="allrun.output" action="stop"/> </target> <target name="all_wd_security"> <record name="allrun.output" action="start"/> <antcall target="add-quicklook-policy-grants" /> <property name="env.security_manager" value="ON"/> <antcall target="start_server_with_security_manager_enabled" /> <antcall target="build-deploy"/> <antcall target="runtest"> <param name="testng.xml" value="testng/testng_wd.xml"/> <antcall target="undeploy"/> <antcall target="quicklook-summary"/> <antcall target="remove-quicklook-policy-grants" /> <antcall target="stop_server_with_security_manager_enabled" /> <copy file="test-output/emailable-report.html" tofile="test-output/QL-WP-report.html"/> <antcall target="check-logged-messages"/> <antcall target="testng-summary"/> <record name="allrun.output" action="stop"/> </target> <target name="start_server_with_security_manager_enabled"> <property name="env.security_manager" value="ON"/> <antcall target="verify-xml"/> <antcall target="start-derby"/> <antcall target="start-server-felix"/> <antcall target="enable-security-manager"/> <antcall target="stop-server"/> <antcall target="start-server-felix"/> </target> <target name="stop_server_with_security_manager_enabled"> <property name="env.security_manager" value="ON"/> <antcall target="disable-security-manager"/> <antcall target="stop-server"/> <antcall target="stop-derby"/> </target> <!-- Target for testing glassfish distribution (containing EJB) --> <target name="all" depends="clean"> <record name="allrun.output" action="start"/> <property name="env.security_manager" value="OFF"/> <antcall target="verify-xml"/> <antcall target="start-derby"/> <antcall target="start-server-felix"/> <antcall target="build-deploy"/> <antcall target="build-deploy-gd"/> <antcall target="build-cluster"/> <antcall target="runtest"> <param name="testng.xml" value="testng/testng_gd.xml"/> <antcall target="undeploy"/> <antcall target="undeploy-gd"/> <antcall target="quicklook-summary"/> <antcall target="stop-server"/> <antcall target="stop-derby"/> <copy file="test-output/emailable-report.html" tofile="test-output/QL-GP-report.html" failonerror="false"/> <antcall target="check-logged-messages"/> <antcall target="testng-summary"/> <record name="allrun.output" action="stop"/> </target> <!-- Target for testing glassfish distribution (containing EJB) --> <target name="all_ri" depends="clean"> <record name="allrun.output" action="start"/> <property name="env.security_manager" value="OFF"/> <antcall target="verify-xml"/> <antcall target="start-derby"/> <antcall target="start-server-felix"/> <antcall target="build-deploy"/> <antcall target="build-deploy-gd"/> <antcall target="runtest"> <param name="testng.xml" value="testng/testng_ri.xml"/> <antcall target="undeploy"/> <antcall target="undeploy-gd"/> <antcall target="quicklook-summary"/> <antcall target="stop-server"/> <antcall target="stop-derby"/> <copy file="test-output/emailable-report.html" tofile="test-output/QL-GP-report.html" failonerror="false"/> <antcall target="check-logged-messages"/> <antcall target="testng-summary"/> <record name="allrun.output" action="stop"/> </target> <!-- Target for testing glassfish distribution (containing EJB) --> <target name="all_gd_security" depends="clean"> <record name="allrun.output" action="start"/> <antcall target="add-quicklook-policy-grants" /> <property name="env.security_manager" value="ON"/> <antcall target="verify-xml"/> <antcall target="start-derby"/> <antcall target="start-server-felix"/> <antcall target="enable-security-manager"/> <antcall target="stop-server"/> <antcall target="start-server-felix"/> <antcall target="build-deploy"/> <antcall target="build-deploy-gd"/> <antcall target="build-cluster"/> <antcall target="runtest"> <param name="testng.xml" value="testng/testng_gd.xml"/> <antcall target="undeploy"/> <antcall target="undeploy-gd"/> <antcall target="quicklook-summary"/> <antcall target="remove-quicklook-policy-grants" /> <antcall target="disable-security-manager"/> <antcall target="stop-server"/> <antcall target="stop-derby"/> <copy file="test-output/emailable-report.html" tofile="test-output/QL-GP-report.html" failonerror="false"/> <antcall target="check-logged-messages"/> <antcall target="testng-summary"/> <record name="allrun.output" action="stop"/> </target> <!-- Target for testing glassfish distribution (containing EJB) --> <target name="dev_debug" depends="clean"> <record name="allrun.output" action="start"/> <antcall target="verify-xml"/> <antcall target="start-derby"/> <antcall target="build-deploy"/> <antcall target="runtest"> <param name="testng.xml" value="testng/testng_debug.xml"/> <antcall target="undeploy"/> <antcall target="stop-derby"/> <antcall target="check-logged-messages"/> <antcall target="testng-summary"/> <record name="allrun.output" action="stop"/> </target> <target name="build-deploy"> <record name="build.output" action="start"/> <echo message="ANT PROJECT ${ant.project.name}"/> <ant dir="amx" target="build"/> <ant dir="admin" target="build"/> <ant dir="admincli" target="build"/> <ant dir="adminconsole" target="build"/> <ant dir="rest" target="build"/> <ant dir="web/helloworld" target="build-deploy"/> <ant dir="web/jsfastrologer" target="build-deploy"/> <ant dir="web/jsfinjection" target="build-deploy"/> <ant dir="jdbc/jdbcusertx" target="build-deploy"/> <ant dir="persistence/jpainjectemf" target="build-deploy"/> <ant dir="persistence/jpavalidation" target="build-deploy"/> <ant dir="security/helloworld" target="build-deploy"/> <ant dir="security/basicauth" target="build-deploy"/> <ant dir="ejb/slsbnicmt" target="build-deploy"/> <ant dir="ejb/sfulnoi" target="build-deploy"/> <ant dir="bean-validator/simple-bv-servlet" target="build-deploy"/> <ant dir="weld/numberguess" target="build-deploy"/> <ant dir="weld/osgiweld" target="build-deploy"/> <ant dir="weld/extensions" target="build-deploy"/> <record name="build.output" action="stop"/> </target> <target name="build-deploy-gd"> <echo message="Glassfish Distribution Build Deploy"/> <ant dir="ejb/remoteview" target="build-deploy"/> <ant dir="ejb/singleton" target="build-deploy"/> <ant dir="ejb/cmp" target="build-deploy"/> <ant dir="ejb/mdb" target="build"/> <!-- Temporarily jruby test is commented, because we need to integrate a newer version for the test to pass. We are waiting for RE to release a newer version. <ant dir="web/jruby" target="build-deploy"/> --> <ant dir="wsit/JaxwsFromWsdl" target="build-deploy"/> <ant dir="wsit/jaxbosgi" target="build-deploy"/> </target> <target name="undeploy"> <record name="undeploy.output" action="start"/> <ant dir="web/helloworld" target="undeploy"/> <ant dir="web/jsfastrologer" target="undeploy"/> <ant dir="web/jsfinjection" target="undeploy"/> <ant dir="jdbc/jdbcusertx" target="undeploy"/> <ant dir="persistence/jpainjectemf" target="undeploy"/> <ant dir="persistence/jpavalidation" target="undeploy"/> <ant dir="security/helloworld" target="undeploy"/> <ant dir="security/basicauth" target="undeploy"/> <ant dir="ejb/slsbnicmt" target="undeploy"/> <ant dir="ejb/sfulnoi" target="undeploy"/> <ant dir="bean-validator/simple-bv-servlet" target="undeploy"/> <ant dir="weld/numberguess" target="undeploy"/> <ant dir="weld/osgiweld" target="undeploy"/> <ant dir="weld/extensions" target="undeploy"/> <record name="undeploy.output" action="stop"/> </target> <target name="undeploy-gd"> <ant dir="ejb/singleton" target="undeploy"/> <ant dir="ejb/remoteview" target="undeploy"/> <ant dir="ejb/cmp" target="undeploy"/> <!-- Temporarily jruby test is commented, because we need to integrate a newer version for the test to pass. We are waiting for RE to release a newer version. <ant dir="web/jruby" target="undeploy"/> --> <ant dir="wsit/JaxwsFromWsdl" target="undeploy"/> <ant dir="wsit/jaxbosgi" target="undeploy"/> </target> <!-- Target is re-definted here as didn't want to specify ws.root property --> <target name="clean"> <delete dir="${basedir}/classes"/> <delete verbose="true" includeemptydirs="true"> <fileset dir="${basedir}" includes="**/classes"/> </delete> <delete dir="${basedir}/test-output" includeemptydirs="true"/> <delete dir="${basedir}/dist" includeemptydirs="true"/> <!-- Temporarily jruby test is commented, because we need to integrate a newer version for the test to pass. We are waiting for RE to release a newer version. <delete dir="${basedir}/web/jruby/helloworld" includeemptydirs="true"/> --> <delete includeemptydirs="true"> <fileset dir="${basedir}"> <include name="**/*.output"/> </fileset> </delete> </target> <taskdef name="testng" classname="org.testng.TestNGAntTask"> <classpath> <pathelement path="${plugin_classpath}"/> </classpath> </taskdef> <!-- Target is re-definted here as didn't want to specify ws.root property --> <target name="runtest" depends="initprops,setOSConditions,asenv-unix,asenv-windows"> <record name="runtestng.output" action="start"/> <echo message="=============Starting TestNG functional tests from ${testng.xml} ============"/> <property name="hasTestNGXML" value="true"/> <mkdir dir="${test.report}"/> <testng outputdir="${test.report}" classpathref="run.testng.classpath"> <jvmarg value="-Djava.compiler=NONE"/> <jvmarg value="-Dhttp.host=${glassfish.http.host}"/> <jvmarg value="-Dhttp.port=${glassfish.http.port}"/> <jvmarg value="-Djava.endorsed.dirs=${glassfish.home}/modules/endorsed" /> <jvmarg value="-DASADMIN=${ASADMIN}" /> <jvmarg value="-DAPPCLIENT=${APPCLIENT}"/> <sysproperty key="glassfish.home" value="${glassfish.home}"/> <sysproperty key="BASEDIR" value="${basedir}"/> <!-- Other Glassfish examples (source code examples)Here is a short list of links related to this Glassfish build.xml source code file: |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2024 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.