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