<?xml version="1.0" encoding="UTF-8"?>
<project name="publish-spring-framework" xmlns:maven="antlib:org.apache.maven.artifact.ant">

  <property file="${basedir}/../build.properties"/>
  <import file="${basedir}/../spring-build/multi-bundle/default.xml"/>

  <path id="modules-with-code-artifacts">
          <pathelement location="../org.springframework.instrument"/>
          <pathelement location="../org.springframework.instrument.classloading"/>
          <pathelement location="../org.springframework.asm"/>
          <pathelement location="../org.springframework.core"/>
          <pathelement location="../org.springframework.expression"/>
          <pathelement location="../org.springframework.beans"/>
          <pathelement location="../org.springframework.aop"/>
          <pathelement location="../org.springframework.context"/>
          <pathelement location="../org.springframework.transaction"/>
          <pathelement location="../org.springframework.oxm"/>
          <pathelement location="../org.springframework.jms"/>
          <pathelement location="../org.springframework.aspects"/>
          <pathelement location="../org.springframework.jdbc"/>
          <pathelement location="../org.springframework.web"/>
          <pathelement location="../org.springframework.orm"/>
          <pathelement location="../org.springframework.context.support"/>
          <pathelement location="../org.springframework.web.servlet"/>
          <pathelement location="../org.springframework.web.portlet"/>
          <pathelement location="../org.springframework.test"/>
  </path>

  <path id="modules-with-only-pom-artifacts">
    <pathelement location="../org.springframework.spring-library"/>
    <pathelement location="../org.springframework.spring-parent"/>
  </path>

  <!-- for milestones -->

  <target name="publish-maven-milestone" depends="publish-maven-milestone-only-pom">
    <all-bundles target="publish-maven-milestone-code-artifacts" buildpathRef="modules-with-code-artifacts"/>
  </target>

  <target name="publish-maven-milestone-only-pom">
    <all-bundles target="publish-maven-milestone-only-pom-artifacts" buildpathRef="modules-with-only-pom-artifacts"/>
  </target>

  <!-- for releases -->

  <target name="publish-maven-central-release" depends="publish-maven-central-only-pom-release">
    <all-bundles target="publish-maven-central-code-artifacts" buildpathRef="modules-with-code-artifacts"/>
  </target>

  <target name="publish-maven-central-only-pom-release">
    <all-bundles target="publish-maven-central-only-pom-artifacts" buildpathRef="modules-with-only-pom-artifacts"/>
  </target>




</project>
