Skip to main content

Source code file content

Revision: 59675

test archive is built incorrectly
» Project Revision History

» Checkout URL

svn / tags / source-build-3.0.1 / jsr311-api.xml

Size: 2606 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="build.xml"/>

    <target name="build" depends="init">
        <antcall target="" />

        Checkout jersey source and build
    <target name="jsr311-api.checkout" >
        <echo message="checkout jsr311-api from ${jsr311-api.svn.url}."/>
        <exec executable="svn" dir="${external.dir}" failonerror="true" >
	        <arg line="checkout" />
          <arg line="${jsr311-api.svn.url}" />
          <arg line="jsr311-api" />

    <target name="" depends="jsr311-api.checkout">
        <!-- backup plugin-registry.xml file if it exists -->
        <delete failonerror="false" file="${external.dir}/jsr311-api/plugin-registry.xml"/> 
        <copy failonerror="false" file="${maven.repo.local}/../plugin-registry.xml" todir="${external.dir}/jsr311-api"/>
        <!-- and install a new one to make the jsr311-api build work -->
        <copy overwrite="true" file="${basedir}/jersey-extras/plugin-registry.xml" todir="${maven.repo.local}/.."/>
        <!-- build jsr311-api -->
        <exec executable="mvn" dir="${external.dir}/jsr311-api" failonerror="true" >
	        <arg line="-s ${basedir}/jersey-extras/jsr311-settings.xml" />
	        <arg line="-npu" />
	        <arg line="-DusePluginRegistry=true" />
	        <arg line="-Dmaven.repo.local=${maven.repo.local}" />
	        <arg line="-Dmaven.test.skip=true" />
                <!-- 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                 -->
                <arg line="-Dproject.scm.developerConnection='scm:svn:'" /> 
                <arg line="-Dproject.scm.connection='scm:svn:'" />
          <arg line="install" />
          <env key="JAVA_HOME" value="${JDK_1.5}" />
        <!-- restore original plugin-registry file -->
        <delete file="${maven.repo.local}/../plugin-registry.xml"/>
        <copy failonerror="false" file="${external.dir}/jsr311-api/plugin-registry.xml" todir="${maven.repo.local}/.."/>

Please Confirm