Skip to main content

Source code file content

Revision: 57041

Fix copyright
» Project Revision History

» Checkout URL

svn / trunk / v2 / jmac-api / build.xml

Size: 6759 bytes, 1 line
<?xml version="1.0" encoding="iso-8859-1"?>
 Copyright 1997-2007 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
 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]"
 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

<project name="Java Message Authentication Contract API" default="all" basedir=".">  

<!-- ========== Initialize Properties =================================== -->

    <property name="" value="jmac-api"/>

    <!-- do NOT remove or change the order of the following two lines -->
    <property file="../bootstrap/"/>
    <property file="./"/>
    <property environment="env"/>
    <!-- all -->
    <target name="all" depends="compile, assemble"
            description="Build entire component">

    <!-- build -->
    <target name="build" depends="compile, assemble"
            description="Build entire component">

    <!-- init. Initialization involves creating publishing directories and
         OS specific targets. --> 
    <target name="init" description="${} initialization">
            <format property="start.time" pattern="MM/dd/yyyy hh:mm aa"/>
        <echo message="Building component ${}"/>
        <mkdir dir="${component.classes.dir}"/>

    <!-- compile --> 
    <target name="compile" depends="init"
            description="Compile javax/security/auth/message sources">  

        <javac srcdir="${src.dir}" 
            <include name="javax/security/auth/message/**"/>            
    <!-- assemble -->
    <target name="assemble" depends="init"
            description="Create JMAC API jar files">               

        <jar jarfile="${jmac-api.jar}" update="yes">
            <fileset dir="${component.classes.dir}">
                <include name="javax/security/auth/message/**/*.class"/>

    <!-- clean -->
    <target name="clean"
                description="Cleaning the JMAC-API build">
           <delete includeEmptyDirs="true" failonerror="false">
                <fileset dir="${component.classes.dir}"/>

    <!-- docs -->
    <target name="docs">
        <antcall target="javadocs"/>
        <antcall target="mifdocs"/>

    <target name="check.mifdoclet.lib">
        <available file="${env.MIFDOCLET_LIB}/mifdoclet.jar"

    <!-- javadocs -->
    <target name="javadocs">
        <delete dir="${javadocs.dir}"/>
        <mkdir dir="${javadocs.dir}"/>
        <javadoc packagenames="*" sourcepath="${src.dir}"

    <!-- mifdocs -->
    <target name="mifdocs" depends=", check.mifdoclet.lib"
        <echo message="Building mifdoclet with library in ${env.MIFDOCLET_LIB} ..."/>
        <delete dir="${mifdocs.dir}"/>
        <mkdir dir="${mifdocs.dir}"/>
        <!-- This upcoming (not-yet-released-to-public) version of the
            MIF Doclet is compatible with the Javadoc tool found in JDK 5.0,
            but not earlier versions. It works with FrameMaker 5.5, 6.0 or
            7.0. Because of thus, the MIF doclet must be called using java,
            not javadoc, as follows: -->
        <java classname="">
                <pathelement location="${}/lib/tools.jar"/>
            <arg line="-doclet"/>
            <arg line="-docletpath ${env.MIFDOCLET_LIB}/mifdoclet.jar"/>
            <arg value="-noinheritedsummary"/>
            <arg line="-d ${mifdocs.dir}"/>
            <arg line="-sourcepath ${src.dir}"/>
            <arg value=""/>
            <arg value=""/>
            <arg value=""/>
            <arg value=""/>

    <target name="">
        <condition property="suffix" value="/..">
                <os family="unix"/>
                    <os name="Mac OS X"/>
        <condition property="suffix" value="">
            <os name="Mac OS X"/>
        <condition property="suffix" value="/..">
            <os family="windows"/>
        <!-- setup the -->
        <property name="" value="${java.home}${suffix}"/>
Please Confirm