<?xml version="1.0" ?>
<!--
 Licensed to the Apache Software Foundation (ASF) under one or more
  contributor license agreements.  See the NOTICE file distributed with
  this work for additional information regarding copyright ownership.
  The ASF licenses this file to You under the Apache License, Version 2.0
  (the "License"); you may not use this file except in compliance with
  the License.  You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
-->
<module name="httpcomponents">
  <url href="http://hc.apache.org/"/>
  <description>
    HTTP Components, including Commons HttpClient
  </description>

  <svn repository="httpcomponents" dir="gump-trunk"/>


  <!-- open questions/TODO:
       * how to reference M2 generated output without release names?
         (to avoid updating the GUMP definition with every release)
       * how to prevent running of unit tests in non-test targets?
         (last time I checked, the maven.test.skip property didn't work)
         (add httpcomponents-client-test once that is working)
       * how to reference unit test output for all modules?
         (last time I checked, only one <junitreport> was interpreted)
         (could define a separate project for each module)
    -->

  <project name="httpcomponents-core">
    <package>org.apache.http</package>
    <description>HTTP Component: Core</description>
    <url href="http://jakarta.apache.org/httpcomponents/httpcomponents-core/"/>

    <!-- goal is set to "install" rather than package, because dependent
         projects building with Maven 2 need it in the .m2 repository -->
    <mvn basedir="httpcore" goal="install">
      <property name="maven.test.skip" value="true"/>
    </mvn>

    <home nested="httpcore" />

    <jar  id="module-main"
        name="module-main/target/httpcore-4.0-beta3-SNAPSHOT.jar"
     />
    <jar  id="module-nio"
        name="module-nio/target/httpcore-nio-4.0-beta3-SNAPSHOT.jar"
     />

    <!-- tests are not supposed to be run in this project, but they are... -->
    <junitreport nested="httpcore/module-main/target/surefire-reports" />
    <junitreport nested="httpcore/module-nio/target/surefire-reports" />

    <!-- these get downloaded by Maven, even if the project doesn't
         need them -->
    <option project="commons-collections"/>
    <option project="commons-lang"/>
    <option project="jakarta-oro"/>
    <option project="junit"/>
    <option project="velocity-engine"/>

    <nag to="dev@hc.apache.org"
         from="Stefan Bodewig &lt;bodewig@apache.org&gt;"/>
  </project>


  <project name="httpcomponents-core-tests">
    <package>org.apache.http</package>
    <description>Unit Tests for HTTP Component: Core</description>
    <url href="http://hc.apache.org/httpcomponents-core/"/>

    <mvn basedir="httpcore" goal="test" />

    <option project="httpcomponents-core" />
    <option project="junit" />
    <option project="jsse"/><!-- does this need to be specified explicitly? -->

    <home nested="httpcore" />

    <junitreport nested="httpcore/module-main/target/surefire-reports" />
    <junitreport nested="httpcore/module-nio/target/surefire-reports" />

    <nag to="dev@hc.apache.org"
         from="Stefan Bodewig &lt;bodewig@apache.org&gt;"/>
  </project>



  <project name="httpcomponents-client">
    <package>org.apache.http.client</package>
    <description>HTTP Component: Client</description>
    <url href="http://hc.apache.org/httpcomponents-client/"/>

    <mvn basedir="httpclient" goal="package">
      <property name="maven.test.skip" value="true"/>
    </mvn>

    <option project="httpcomponents-core" runtime="true" ids="module-main" />
    <option project="commons-logging" runtime="true"/>
    <option project="commons-codec" runtime="true"/>

    <home nested="httpclient" />

    <jar  id="module-client"
        name="module-client/target/httpclient-4.0-alpha5-SNAPSHOT.jar"
     />
    <jar  id="module-httpmime"
        name="module-httpmime/target/httpmime-4.0-alpha5-SNAPSHOT.jar"
     />

    <!-- tests are not supposed to be run in this project, but they are... -->
    <junitreport nested="httpclient/module-client/target/surefire-reports" />

    <nag to="dev@hc.apache.org"
         from="Stefan Bodewig &lt;bodewig@apache.org&gt;"/>
  </project>



  <!-- The 3.1 code line. Actual releases are compiled with JDK 1.2,
       but GUMP uses a JDK 1.4 or later. Hence, JCE is available from
       the JDK and does not need to be referenced as a dependency.
    -->
  <project name="commons-httpclient" groupId="commons-httpclient">
    <package>org.apache.commons.httpclient</package>
    <description>HTTP Client Library, version 3.1</description>
    <url href="http://hc.apache.org/httpclient-3.x/"/>
    <ant basedir="oac.hc3x" target="dist"/>
    <depend project="ant" inherit="runtime"/>
    <depend project="xml-xerces"/>
    <depend project="xml-apis"/>
    <option project="jsse"/>
    <depend project="commons-logging" runtime="true"/>
    <depend project="commons-codec" runtime="true"/>
    <!-- included in JDK 1.4 depend project="jce"/-->
    <work nested="oac.hc3x/target/classes"/>
    <home nested="oac.hc3x/dist"/>
    <jar name="commons-httpclient.jar"/>
    <javadoc nested="oac.hc3x/dist/docs/api"/>

    <nag to="dev@hc.apache.org"
         from="Stefan Bodewig &lt;bodewig@apache.org&gt;"/>
  </project>



  <!-- The 2.0 code line is no longer developed nor supported, but still used.
       There is no point in rebuilding it, just reference the last release JAR.
       Runtime dependencies are defined for transitive use.
    -->
  <project name="commons-httpclient-2.0-branch">
    <package>org.apache.commons.httpclient</package>
    <description>HTTP Client Library, version 2.0</description>

    <depend project="commons-logging" runtime="true"/>
    <depend project="commons-codec"   runtime="true"/>

    <home nested="2.0.2" />
    <jar name="commons-httpclient-2.0.2.jar"/>
    <license name="2.0.2/LICENSE.txt" />

    <nag to="dev@hc.apache.org"
         from="Stefan Bodewig &lt;bodewig@apache.org&gt;"/>
  </project>

</module>
