Skip to main content

Source code file content

Revision: 57041

Fix copyright
» Project Revision History

» Checkout URL

svn / tags / source-build-3.1.2 / scripts / jsr311-api.xml

Size: 1936 bytes, 1 line
<?xml version="1.0" encoding="iso-8859-1"?>

<project name="JAX-RS API source integration" default="build" basedir="..">

    <!-- import build.xml for init target and inherited properties -->
    <import file="${basedir}/build.xml"/>

    <property name="jsr311-api.dir" value="${glassfish.external.dir}/jsr311-api"/>

    <target name="checkout" depends="init,check.svn" unless="skipCheckout">
        <svn.checkout repo="${jsr311-api.svn.url}" dest="jsr311-api"/>
    </target>

    <target name="build" depends="checkout">
	<!-- generate a plugin-registry.xml -->
        <generate-plugin-registry-xml
            file="${maven.user.home}/plugin-registry.xml"
            groupId="org.codehaus.mojo"
            artifactId="buildnumber-maven-plugin"
            useVersion="1.0-beta-3" />
	<!-- custom settings.xml to force usage of plugin-registry.xml -->
	<xml.elt prop="additionalElts" name="usePluginRegistry" value="true"/>
	<generate-settings-xml 
		file="${jsr311-api.dir}/jsr311-settings.xml"
		additionalElts="${additionalElts}"/>

        <!-- add project.scm.developerConnection and project.scm.connection properties since it's causing the -->
        <!-- build failure with the message:  "java.lang.NullPointerException: The scm url cannot be null."   -->
        <!-- This is a maven bug.  See:  MOJO-1463 http://jira.codehaus.org/browse/MOJO-1463.                 -->
        <property name="jsr311-scm"
            value="scm:svn:https://jsr311.dev.java.net/svn/jsr311/trunk/src"/>

        <!-- build jsr311-api -->
        <mvn.install dir="${jsr311-api.dir}" skip-test="true"
		settings-xml="${jsr311-api.dir}/jsr311-settings.xml">
            <extra-args>
                <arg line="-npu"/>
                <arg line="-Dproject.scm.developerConnection=${jsr311-scm}"/>
                <arg line="-Dproject.scm.connection=${jsr311-scm}"/>
            </extra-args>
        </mvn.install>
   </target>

</project>
 
 
Close
loading
Please Confirm
Close