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