LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File sun-ws-metadata-2.0-api-build.xml of Package sun-ws-metadata-2.0-api (Project Java:jpackage-5.0)

<?xml version="1.0" encoding="iso-8859-1"?>
<!--
 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 
 glassfish/bootstrap/legal/CDDLv1.0.txt or 
 https://glassfish.dev.java.net/public/CDDLv1.0.html. 
 See the License for the specific language governing 
 permissions and limitations under the License.
 
 When distributing Covered Code, include this CDDL 
 HEADER in each file and include the License file at 
 glassfish/bootstrap/legal/CDDLv1.0.txt.  If applicable, 
 add the following below this CDDL HEADER, with the 
 fields enclosed by brackets "[]" replaced with your 
 own identifying information: Portions Copyright [yyyy] 
 [name of copyright owner]
-->
<project name="WS Metadata" default="all" basedir=".">  
    
    <property name="component.name" value="jws"/>    

    <!-- Do NOT reorder the following lines -->
    <property file="../bootstrap/project.properties"/>
    <property file="./build.properties"/>


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

    <!-- build -->
    <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}"/>
    </target>

    <!-- compile --> 
    <target name="compile" depends="init"
        description="Compile ${component.name} sources">  
     
        <javac srcdir="${src.dir}" destdir="${component.classes.dir}"
               debug="${javac.debug}" optimize="${javac.optimize}"
               source="1.5" deprecation="${javac.deprecation}"
               failonerror="true" target="1.5">
            <include name="javax/**"/>            
        </javac>
    </target>
    
    <!-- assemble -->   
    <target name="assemble" depends="init"
        description="Create ${component.name} jar files">               

        <jar jarfile="${component.name}.jar" update="yes">
            <fileset dir="${component.classes.dir}">
                <include name="javax/**/*.class"/>
            </fileset>
        </jar>                        

    </target>

    <target name="clean">
        <delete includeEmptyDirs="true" failonerror="false">
            <fileset dir="${component.classes.dir}"/>
        </delete>
    </target>

    <!-- JAF bundle build targets -->

    <target name="release" depends="init, jar, docs">
        <delete file="${basedir}/${component.name}.zip"/>
        <echo message="Creating ${component.name} bundle ${basedir}/${component.name}.zip}"/>
        <zip destfile="${component.name}.zip" basedir="${release.dir}"/>
    </target>

    <!-- Assemble activation.jar without updating glassfish/image/lib/ -->
    <target name="jar" depends="init, compile">
        <mkdir dir="${release.dir}"/>
        <jar jarfile="${component.name}.jar" update="yes">
            <fileset dir="${component.classes.dir}">
                <include name="javax/**/*.class"/>
            </fileset>
        </jar>
     </target>

    <!-- javadocs -->
    <target name="docs" depends="init">
        <mkdir dir="${release.javadocs.dir}"/>
        <javadoc packagenames="javax.jws"
            destdir="${release.javadocs.dir}"
            classpath="${build.classpath}"
            author="true"
            version="true"
            use="true"
            windowtitle="Web Services Metadata 2.0 (1.0 MR1) API documentation"
            doctitle="Web Services Metadata 2.0 (1.0 MR1) API documentation">
            <sourcepath>
            <dirset dir=".">
	        <include name="${src.dir}"/>
            </dirset>
            </sourcepath>
        </javadoc>
    </target>

</project>