1991N/A<!--
2362N/A DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
1991N/A
1991N/A Copyright (c) 2006 Sun Microsystems Inc. All Rights Reserved
1991N/A
1991N/A The contents of this file are subject to the terms
2362N/A of the Common Development and Distribution License
1991N/A (the License). You may not use this file except in
2362N/A compliance with the License.
1991N/A
1991N/A You can obtain a copy of the License at
1991N/A https://opensso.dev.java.net/public/CDDLv1.0.html or
1991N/A opensso/legal/CDDLv1.0.txt
1991N/A See the License for the specific language governing
1991N/A permission and limitations under the License.
1991N/A
1991N/A When distributing Covered Code, include this CDDL
1991N/A Header Notice in each file and include the License file
1991N/A at opensso/legal/CDDLv1.0.txt.
1991N/A If applicable, add the following below the CDDL Header,
2362N/A with the fields enclosed by brackets [] replaced by
2362N/A your own identifying information:
2362N/A "Portions Copyrighted [year] [name of copyright owner]"
1991N/A
1991N/A $Id: build.xml,v 1.20 2009/09/17 05:44:02 mallas Exp $
1991N/A
1991N/A Portions Copyrighted 2015 ForgeRock AS.
1991N/A
1991N/A-->
1991N/A
1991N/A<project name="openfm-clientsdk" default="package-clientsdk">
1991N/A
1991N/A <description>OpenSSO Federation Client SDK</description>
1991N/A
1991N/A <!-- enforce invocation via top level build only -->
1991N/A <fail message="*** clientsdk may be built from top level only ***">
1991N/A <condition>
1991N/A <or>
1991N/A <not><isset property="openfm.clientsdkbase.dir"/></not>
1991N/A </or>
1991N/A </condition>
1991N/A </fail>
1991N/A
1991N/A <!-- properties for clientsdk -->
1991N/A <property name="clientsdk.name" value="openfm_client_sdk"/>
1991N/A <property name="clientsdk.version" value="${openfm.version}"/>
1991N/A <tstamp>
1991N/A <format property="pstamp" pattern="yyyy-MMMM-d hh:mm"/>
1991N/A </tstamp>
1991N/A <property name="clientsdk.stamp"
1991N/A value="${clientsdk.version}_${DSTAMP}${TSTAMP}_${build.number.set}"/>
1991N/A
1991N/A <!-- clientsdk class path -->
1991N/A <path id="build.class.path">
1991N/A <path refid="build.class.path"/>
1991N/A </path>
1991N/A
1991N/A <target name="package-clientsdk" depends="preparebuild">
1991N/A <echo message="Building clientSDK"/>
1991N/A
1991N/A <tstamp>
1991N/A <format property="touch.time" pattern="yyyy-MMMM-d hh:mm"/>
1991N/A </tstamp>
1991N/A
1991N/A <mkdir dir="${openfm.classes.dir}/com/sun/identity/log/messageid"/>
1991N/A <copy todir="${openfm.classes.dir}/com/sun/identity/log/messageid">
1991N/A <fileset dir="${openfm.log.xml.dir}">
1991N/A <include name="SAML2LogMessageIDs.xml"/>
1991N/A <include name="COTLogMessageIDs.xml"/>
1991N/A </fileset>
1991N/A </copy>
1991N/A <jar destfile="${fm.dist.dir}/openssoclientsdk.jar" duplicate="preserve">
1991N/A <manifest>
1991N/A <attribute name="Version" value="${openfm.version}"/>
1991N/A <attribute name="Create-On" value="${touch.time}"/>
1991N/A </manifest>
1991N/A <fileset dir="${library.classes.dir}">
1991N/A <includesfile name="${fedlibrary.clientsdkbase.dir}/ClientSDKClasses"/>
1991N/A </fileset>
1991N/A <fileset dir="${openfm.classes.dir}">
1991N/A <includesfile name="${openfm.clientsdkbase.dir}/ClientSDKClasses"/>
1991N/A </fileset>
1991N/A <fileset dir="${library.res.i18n.dir}">
1991N/A <includesfile name="${fedlibrary.clientsdkbase.dir}/ClientSDKProperties"/>
1991N/A </fileset>
1991N/A <fileset dir="${openfm.res.i18n.dir}">
1991N/A <includesfile name="${openfm.clientsdkbase.dir}/ClientSDKProperties"/>
1991N/A </fileset>
1991N/A <fileset dir="${amserver.classes.dir}">
1991N/A <filename name="com/sun/identity/log/messageid/*.*"/>
1991N/A <not>
1991N/A <filename name="com/sun/identity/log/messageid/*.xml"/>
1991N/A </not>
1991N/A </fileset>
1991N/A <fileset dir="${openfm.classes.dir}">
1991N/A <filename name="com/sun/identity/log/messageid/*.xml"/>
1991N/A </fileset>
1991N/A
1991N/A <fileset dir="${openfm.dir}/resources">
1991N/A <filename name="META-INF/services/com.sun.xml.ws.api.pipe.TransportPipeFactory"/>
1991N/A </fileset>
1991N/A
1991N/A <manifest>
<attribute name="Created-On" value="${pstamp}" />
<section name="com.sun.identity">
<attribute name="Implementation-Title"
value="OpenAM Client SDK"/>
<attribute name="Implementation-Version"
value="${clientsdk.stamp}"/>
<attribute name="Implementation-Vendor"
value="ForgeRock AS"/>
</section>
</manifest>
<zipfileset src="${sharedlib.dist.dir}/opensso-sharedlib.jar" includes="**/*.class"/>
<zipfileset src="${fm.base.dir}/extlib/amclientsdk.jar" includes="**/*.class, **/*.properties"/>
</jar>
<checksum file="${fm.dist.dir}/openssoclientsdk.jar"
algorithm="SHA" fileext=".sha" />
</target>
<target name="preparebuild">
<mkdir dir="${fm.dist.dir}"/>
</target>
<target name="clean">
<delete dir="${fm.dist.dir}"/>
<delete dir="${openfm.classes.dir}/com/sun/identity/log/messageid"/>
</target>
</project>