Skip to main content

Source code file content

Revision: 63126

fix issue https://java.net/jira/browse/GLASSFISH-20980 ("Convert private JDK API usage to new public equivalent (web container)")
» Project Revision History

» Checkout URL

svn / trunk / v2 / appserv-tests / devtests / cdi / javaee-integration / no-interface-local-view-proxy-serializable / build.xml

Size: 4570 bytes, 1 line
<?xml version="1.0" encoding="ISO-8859-1"?>
<!--
 DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.

 Copyright 2010 Sun Microsystems, Inc. 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.html
 or glassfish/bootstrap/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 glassfish/bootstrap/legal/LICENSE.txt.
 Sun designates this particular file as subject to the "Classpath" exception
 as provided by Sun in the GPL Version 2 section of the License file that
 accompanied this code.  If applicable, add the following below the License
 Header, with the fields enclosed by brackets [] replaced by your own
 identifying information: "Portions Copyrighted [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.
-->
<!DOCTYPE project [
<!ENTITY commonSetup SYSTEM "./../../../../config/properties.xml">
<!ENTITY commonBuild SYSTEM "./../../../../config/common.xml">
<!ENTITY run SYSTEM "./../../../../config/run.xml">
<!ENTITY testproperties SYSTEM "./build.properties">
]>

<project name="webcontainer_unittest" default="all" basedir=".">

    &commonSetup;
    &commonBuild;
    &testproperties;
    &run;

    <target name="all" depends="build,create-resources,deploy,run,undeploy,delete-resources" />

	<target name="clean" depends="init-common">
		<antcall target="clean-common" />
		<delete>
			<fileset dir="." includes="*.class" />
			<fileset dir="client/test/client" includes="*.class" />
		</delete>
	</target>

	<target name="compile" depends="clean">
		<antcall target="compile-common">
			<param name="src" value="servlet" />
		</antcall>
	</target>

	<target name="build" depends="compile">
		<property name="hasWebclient" value="yes" />
		<antcall target="webclient-war-common">
			<param name="hasWebclient" value="yes" />
			<param name="webclient.war.classes" value="**/*.class" />
		</antcall>

		<javac srcdir="client" classpath="${env.APS_HOME}/lib/reportbuilder.jar" includes="test/client/WebTest.java" />

	</target>

	<target name="build-publish-war" depends="build, publish-war-common" />

	<target name="deploy" depends="init-common">
		<antcall target="deploy-war-common" />
	</target>

	<target name="create-resources" depends="init-common">
		<antcall target="create-jdbc-connpool-common">
			<param name="jdbc.connpool.name" value="jdbc-dev-test-pool" />
		</antcall>
		<antcall target="create-jdbc-resource-common">
			<param name="jdbc.connpool.name" value="jdbc-dev-test-pool" />
			<param name="jdbc.resource.name" value="jdbc/jdbc-dev-test-resource" />
		</antcall>
	</target>


	<target name="run" depends="init-common">
		<java classname="test.client.WebTest">
			<arg value="${http.host}" />
			<arg value="${http.port}" />
			<arg value="${contextroot}" />
			<classpath>
				<pathelement location="${env.APS_HOME}/lib/reportbuilder.jar" />
				<pathelement location="client" />
			</classpath>
		</java>
	</target>

	<target name="undeploy" depends="init-common">
		<antcall target="undeploy-war-common" />
	</target>

	<target name="delete-resources" depends="init-common">
		<antcall target="delete-jdbc-resource-common">
			<param name="jdbc.resource.name" value="jdbc/jdbc-dev-test-resource" />
		</antcall>

		<antcall target="delete-jdbc-connpool-common">
			<param name="jdbc.connpool.name" value="jdbc-dev-test-pool" />
		</antcall>
	</target>

	<target name="usage">
		<antcall target="usage-common" />
	</target>
</project>
 
 
Close
loading
Please Confirm
Close