Skip to main content

Source code file content

Revision: 58303

Set svn property svn:eol-style to files
» Project Revision History

» Checkout URL

svn / tags / preview2-b08 / packager / build.xml

Size: 3065 bytes, 1 line
<?xml version="1.0" encoding="iso-8859-1"?>
<!--
 Copyright 2006 Sun Microsystems, Inc. All rights reserved.
 Use is subject to license terms.
-->

<!DOCTYPE project [
  <!ENTITY package-common SYSTEM "file:./package-common.xml">
  <!ENTITY publish SYSTEM "file:./publish.xml">
  <!ENTITY package SYSTEM "file:./package.xml">
]>

<project name="Top Level Build" default="all" basedir=".">  

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

    <!--
        component.name: required property.  the value should be the
                        name of the component directory
    -->
    <property name="component.name" value="packager"/>

    <property file="./project.properties" />
    <property file="./bootstrap.properties" />
    <property file="./package.properties"/>
  
    <!-- all -->
    <target name="all" depends="compile, assemble,package"
            description="Build entire component">
    </target>

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

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

    <!-- compile -->
    <target name="compile" depends="init"
            description="Compile com/sun/appserv/internal/build/util sources">

        <javac srcdir="${src.dir}" 
               destdir="${component.classes.dir}"
               debug="${javac.debug}" 
               optimize="${javac.optimize}"
               source="${javac.source}" 
               deprecation="${javac.deprecation}"
               failonerror="true">
            <include name="gfv3ips/**"/>
            <include name="com/sun/appserv/internal/build/util/**"/>
        </javac>
    </target>

    <!-- assemble -->
    <target name="assemble" depends="init"
            description="Create packager util jar files">
        <jar jarfile="${component.lib.home}/packager.jar">
            <fileset dir="${component.classes.dir}">
                <include name="com/sun/appserv/internal/build/util/**/*.class"/>
            </fileset>
        </jar>
    </target>

    <target name="clean">
        <!--delete dir="${packager.publish.home}"/-->
        <delete dir="${installer.packages.dir}" quiet="true"/>
        <delete dir="${pkgs.home}" quiet="true"/>
        <delete dir="${rpms.home}" quiet="true"/>
        <delete dir="${install.dir}" quiet="true"/>
        <!-- using native rm because 'delete dir' deletes symbolic links recursively -->
        <exec dir="." executable="rm" >
             <arg line="-rf ${packager.publish.home}" />
        </exec>
    </target>

    &package-common;
    &publish;
    &package;
</project>
 
 
Close
loading
Please Confirm
Close