| <?xml version="1.0" encoding="ISO-8859-1"?> |
| <!DOCTYPE project [ |
| <!-- |
| |
| Copyright (c) 2018 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 |
| |
| --> |
| |
| <!ENTITY commonSetup SYSTEM "file:./../../../../config/properties.xml"> |
| <!ENTITY commonBuild SYSTEM "file:./../../../../config/common.xml"> |
| <!ENTITY testproperties SYSTEM "file:./build.properties"> |
| ]> |
| |
| <project name="showWithLib" default="usage" basedir="."> |
| |
| |
| &commonSetup; |
| &commonBuild; |
| &testproperties; |
| |
| <property name="src" value="."/> |
| |
| <import file="../../appclient.xml"/> |
| |
| <!-- Props that allow reuse from showWithSignedLib --> |
| <property name="lib.jar.path" value="lib.jar"/> |
| |
| <target name="build" depends="build.ear"/> |
| |
| <target name="sign.jar" depends="build.lib"> |
| <signjar verbose="true" jar="${assemble.dir}/lib/lib.jar" alias="s1as" storepass="changeit" |
| keypass="changeit" keystore="${env.S1AS_HOME}/domains/domain1/config/keystore.jks" |
| signedjar="${assemble.dir}/lib/signedlib.jar"/> |
| </target> |
| |
| <target name="build.ear" depends="build.lib,build.client"> |
| <delete file="${assemble.dir}/${appname}App.ear"/> |
| <mkdir dir="${assemble.dir}"/> |
| <mkdir dir="${build.classes.dir}/META-INF"/> |
| <!-- <copy file="${src}/sun-application.xml" tofile="${build.classes.dir}"/> --> |
| <copy file="ear/application.xml" tofile="${build.classes.dir}"/> |
| <jar jarfile="${assemble.dir}/${appname}App.ear"> |
| <fileset dir="${assemble.dir}"> |
| <include name="*.jar"/> |
| <include name="lib/${lib.jar.path}"/> |
| </fileset> |
| <fileset dir="${build.classes.dir}"> |
| <include name="META-INF/sun-application.xml"/> |
| <include name="META-INF/application.xml"/> |
| </fileset> |
| </jar> |
| </target> |
| |
| <target name="build.lib" depends="compile"> |
| <mkdir dir="${assemble.dir}"/> |
| <mkdir dir="${assemble.dir}/lib"/> |
| <jar jarfile="${assemble.dir}/lib/lib.jar"> |
| <fileset dir="${build.classes.dir}"> |
| <include name="**/lib/*.class"/> |
| </fileset> |
| </jar> |
| </target> |
| |
| <target name="compile" depends="clean"> |
| <antcall target="compile-common"> |
| <param name="src" value="."/> |
| </antcall> |
| </target> |
| |
| <target name="build.client" depends="compile"> |
| <mkdir dir="${assemble.dir}"/> |
| <antcall target="package-appclientjar-common"> |
| <param name="appclientjar.files" value="${build.classes.dir}"/> |
| <param name="application-client.xml" value="client/application-client.xml"/> |
| <param name="sun-application-client.xml" value="client/sun-application-client.xml"/> |
| <param name="appclientjar.classes" value="**/client/*.class" /> |
| <param name="appclient.jar" value="${assemble.dir}/${appname}-client.jar"/> |
| </antcall> |
| </target> |
| |
| <target name="deploy" depends="deploy.ear"/> |
| |
| <target name="undeploy" depends="undeploy.ear"/> |
| |
| <!-- <target name="undeploy.ear"> |
| <antcall target="undeploy-common"/> |
| </target> |
| --> |
| |
| <target name="run" depends="init-common,test.embedded.client"/> |
| |
| |
| <target name="usage"> |
| <antcall target="usage-common"/> |
| </target> |
| |
| </project> |