dion        2002/06/06 06:30:38

  Modified:    src/templates/build/plugins/core build.xml
  Log:
  Fixed callbacks not working in core plugin.
  Other plugins to follow same pattern asap.
  
  Revision  Changes    Path
  1.15      +417 -286  jakarta-turbine-maven/src/templates/build/plugins/core/build.xml
  
  Index: build.xml
  ===================================================================
  RCS file: 
/home/cvs/jakarta-turbine-maven/src/templates/build/plugins/core/build.xml,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- build.xml 6 Jun 2002 06:04:44 -0000       1.14
  +++ build.xml 6 Jun 2002 13:30:38 -0000       1.15
  @@ -46,6 +46,279 @@
         <equals arg1="${maven.compile.aspects}" arg2="true"/>
       </condition>
   
  +    <!-- announce -->
  +    <condition property="maven.core.callback.pre-announce.ok">
  +      <and>
  +        <available file="${maven.core.callback.pre-announce.buildFile}"/>
  +        <not>
  +          <equals arg1="${maven.core.callback.pre-announce.buildTarget}"
  +                  arg2="$${maven.core.callback.pre-announce.buildTarget}" />
  +        </not>
  +      </and>
  +    </condition>
  +    
  +    <condition property="maven.core.callback.post-announce.ok">
  +      <and>
  +        <available file="${maven.core.callback.post-announce.buildFile}"/>
  +        <not>
  +          <equals arg1="${maven.core.callback.post-announce.buildTarget}"
  +                  arg2="$${maven.core.callback.post-announce.buildTarget}" />
  +        </not>
  +      </and>
  +    </condition>
  +    
  +    <!-- check-source -->
  +    <condition property="maven.core.callback.pre-check-source.ok">
  +      <and>
  +        <available file="${maven.core.callback.pre-check-source.buildFile}"/>
  +        <not>
  +          <equals arg1="${maven.core.callback.pre-check-source.buildTarget}"
  +                  arg2="$${maven.core.callback.pre-check-source.buildTarget}" />
  +        </not>
  +      </and>
  +    </condition>
  +    
  +    <condition property="maven.core.callback.post-check-source.ok">
  +      <and>
  +        <available file="${maven.core.callback.post-check-source.buildFile}"/>
  +        <not>
  +          <equals arg1="${maven.core.callback.post-check-source.buildTarget}"
  +                  arg2="$${maven.core.callback.post-check-source.buildTarget}" />
  +        </not>
  +      </and>
  +    </condition>
  +
  +    <!-- clean -->
  +    <condition property="maven.core.callback.pre-clean.ok">
  +      <and>
  +        <available file="${maven.core.callback.pre-clean.buildFile}"/>
  +        <not>
  +          <equals arg1="${maven.core.callback.pre-clean.buildTarget}"
  +                  arg2="$${maven.core.callback.pre-clean.buildTarget}" />
  +        </not>
  +      </and>
  +    </condition>
  +    
  +    <condition property="maven.core.callback.post-clean.ok">
  +      <and>
  +        <available file="${maven.core.callback.post-clean.buildFile}"/>
  +        <not>
  +          <equals arg1="${maven.core.callback.post-clean.buildTarget}"
  +                  arg2="$${maven.core.callback.post-clean.buildTarget}" />
  +        </not>
  +      </and>
  +    </condition>
  +
  +    <!-- compile -->
  +    <condition property="maven.core.callback.pre-compile.ok">
  +      <and>
  +        <available file="${maven.core.callback.pre-compile.buildFile}"/>
  +        <not>
  +          <equals arg1="${maven.core.callback.pre-compile.buildTarget}"
  +                  arg2="$${maven.core.callback.pre-compile.buildTarget}" />
  +        </not>
  +      </and>
  +    </condition>
  +    
  +    <condition property="maven.core.callback.post-compile.ok">
  +      <and>
  +        <available file="${maven.core.callback.post-compile.buildFile}"/>
  +        <not>
  +          <equals arg1="${maven.core.callback.post-compile.buildTarget}"
  +                  arg2="$${maven.core.callback.post-compile.buildTarget}" />
  +        </not>
  +      </and>
  +    </condition>
  +
  +    <!-- dist -->
  +    <condition property="maven.core.callback.pre-dist.ok">
  +      <and>
  +        <available file="${maven.core.callback.pre-dist.buildFile}"/>
  +        <not>
  +          <equals arg1="${maven.core.callback.pre-dist.buildTarget}"
  +                  arg2="$${maven.core.callback.pre-dist.buildTarget}" />
  +        </not>
  +      </and>
  +    </condition>
  +    
  +    <condition property="maven.core.callback.post-dist.ok">
  +      <and>
  +        <available file="${maven.core.callback.post-dist.buildFile}"/>
  +        <not>
  +          <equals arg1="${maven.core.callback.post-dist.buildTarget}"
  +                  arg2="$${maven.core.callback.post-dist.buildTarget}" />
  +        </not>
  +      </and>
  +    </condition>
  +
  +    <!-- dist-build -->
  +    <condition property="maven.core.callback.pre-dist-build.ok">
  +      <and>
  +        <available file="${maven.core.callback.pre-dist-build.buildFile}"/>
  +        <not>
  +          <equals arg1="${maven.core.callback.pre-dist-build.buildTarget}"
  +                  arg2="$${maven.core.callback.pre-dist-build.buildTarget}" />
  +        </not>
  +      </and>
  +    </condition>
  +    
  +    <condition property="maven.core.callback.post-dist-build.ok">
  +      <and>
  +        <available file="${maven.core.callback.post-dist-build.buildFile}"/>
  +        <not>
  +          <equals arg1="${maven.core.callback.post-dist-build.buildTarget}"
  +                  arg2="$${maven.core.callback.post-dist-build.buildTarget}" />
  +        </not>
  +      </and>
  +    </condition>
  +
  +    <!-- env -->
  +    <condition property="maven.core.callback.pre-env.ok">
  +      <and>
  +        <available file="${maven.core.callback.pre-env.buildFile}"/>
  +        <not>
  +          <equals arg1="${maven.core.callback.pre-env.buildTarget}"
  +                  arg2="$${maven.core.callback.pre-env.buildTarget}" />
  +        </not>
  +      </and>
  +    </condition>
  +    
  +    <condition property="maven.core.callback.post-env.ok">
  +      <and>
  +        <available file="${maven.core.callback.post-env.buildFile}"/>
  +        <not>
  +          <equals arg1="${maven.core.callback.post-env.buildTarget}"
  +                  arg2="$${maven.core.callback.post-env.buildTarget}" />
  +        </not>
  +      </and>
  +    </condition>
  +
  +    <!-- gump-descriptor -->
  +    <condition property="maven.core.callback.pre-gump-descriptor.ok">
  +      <and>
  +        <available file="${maven.core.callback.pre-gump-descriptor.buildFile}"/>
  +        <not>
  +          <equals arg1="${maven.core.callback.pre-gump-descriptor.buildTarget}"
  +                  arg2="$${maven.core.callback.pre-gump-descriptor.buildTarget}" />
  +        </not>
  +      </and>
  +    </condition>
  +    
  +    <condition property="maven.core.callback.post-gump-descriptor.ok">
  +      <and>
  +        <available file="${maven.core.callback.post-gump-descriptor.buildFile}"/>
  +        <not>
  +          <equals arg1="${maven.core.callback.post-gump-descriptor.buildTarget}"
  +                  arg2="$${maven.core.callback.post-gump-descriptor.buildTarget}" />
  +        </not>
  +      </and>
  +    </condition>
  +
  +    <!-- install-jar -->
  +    <condition property="maven.core.callback.pre-install-jar.ok">
  +      <and>
  +        <available file="${maven.core.callback.pre-install-jar.buildFile}"/>
  +        <not>
  +          <equals arg1="${maven.core.callback.pre-install-jar.buildTarget}"
  +                  arg2="$${maven.core.callback.pre-install-jar.buildTarget}" />
  +        </not>
  +      </and>
  +    </condition>
  +    
  +    <condition property="maven.core.callback.post-install-jar.ok">
  +      <and>
  +        <available file="${maven.core.callback.post-install-jar.buildFile}"/>
  +        <not>
  +          <equals arg1="${maven.core.callback.post-install-jar.buildTarget}"
  +                  arg2="$${maven.core.callback.post-install-jar.buildTarget}" />
  +        </not>
  +      </and>
  +    </condition>
  +
  +    <!-- jar -->
  +    <condition property="maven.core.callback.pre-jar.ok">
  +      <and>
  +        <available file="${maven.core.callback.pre-jar.buildFile}"/>
  +        <not>
  +          <equals arg1="${maven.core.callback.pre-jar.buildTarget}"
  +                  arg2="$${maven.core.callback.pre-jar.buildTarget}" />
  +        </not>
  +      </and>
  +    </condition>
  +    
  +    <condition property="maven.core.callback.post-jar.ok">
  +      <and>
  +        <available file="${maven.core.callback.post-jar.buildFile}"/>
  +        <not>
  +          <equals arg1="${maven.core.callback.post-jar.buildTarget}"
  +                  arg2="$${maven.core.callback.post-jar.buildTarget}" />
  +        </not>
  +      </and>
  +    </condition>
  +    
  +    <!-- maven-update -->
  +    <condition property="maven.core.callback.pre-maven-update.ok">
  +      <and>
  +        <available file="${maven.core.callback.pre-maven-update.buildFile}"/>
  +        <not>
  +          <equals arg1="${maven.core.callback.pre-maven-update.buildTarget}"
  +                  arg2="$${maven.core.callback.pre-maven-update.buildTarget}" />
  +        </not>
  +      </and>
  +    </condition>
  +    
  +    <condition property="maven.core.callback.post-maven-update.ok">
  +      <and>
  +        <available file="${maven.core.callback.post-maven-update.buildFile}"/>
  +        <not>
  +          <equals arg1="${maven.core.callback.post-maven-update.buildTarget}"
  +                  arg2="$${maven.core.callback.post-maven-update.buildTarget}" />
  +        </not>
  +      </and>
  +    </condition>
  +
  +    <!-- update-jars -->
  +    <condition property="maven.core.callback.pre-update-jars.ok">
  +      <and>
  +        <available file="${maven.core.callback.pre-update-jars.buildFile}"/>
  +        <not>
  +          <equals arg1="${maven.core.callback.pre-update-jars.buildTarget}"
  +                  arg2="$${maven.core.callback.pre-update-jars.buildTarget}" />
  +        </not>
  +      </and>
  +    </condition>
  +    
  +    <condition property="maven.core.callback.post-update-jars.ok">
  +      <and>
  +        <available file="${maven.core.callback.post-update-jars.buildFile}"/>
  +        <not>
  +          <equals arg1="${maven.core.callback.post-update-jars.buildTarget}"
  +                  arg2="$${maven.core.callback.post-update-jars.buildTarget}" />
  +        </not>
  +      </and>
  +    </condition>
  +
  +    <!-- validate-pom -->
  +    <condition property="maven.core.callback.pre-validate-pom.ok">
  +      <and>
  +        <available file="${maven.core.callback.pre-validate-pom.buildFile}"/>
  +        <not>
  +          <equals arg1="${maven.core.callback.pre-validate-pom.buildTarget}"
  +                  arg2="$${maven.core.callback.pre-validate-pom.buildTarget}" />
  +        </not>
  +      </and>
  +    </condition>
  +    
  +    <condition property="maven.core.callback.post-validate-pom.ok">
  +      <and>
  +        <available file="${maven.core.callback.post-validate-pom.buildFile}"/>
  +        <not>
  +          <equals arg1="${maven.core.callback.post-validate-pom.buildTarget}"
  +                  arg2="$${maven.core.callback.post-validate-pom.buildTarget}" />
  +        </not>
  +      </and>
  +    </condition>
  +    
     </target>
   
     <!-- ================================================================== -->
  @@ -56,28 +329,16 @@
       name="env"
       depends="local-init, pre-env-callback, do-env, post-env-callback"/>
   
  -  <target name="pre-env-callback">
  -    <maven-ant antfile="${maven.home}/plugins/core/build-init.xml" 
  -      target="callback" inheritRefs="true" exportAll="false" exportRefs="false">
  -      <property name="buildFile" 
  -        value="${maven.core.callback.pre-env.buildFile}" />
  -      <property name="buildTarget" 
  -        value="${maven.core.callback.pre-env.buildTarget}" />
  -      <property name="buildTargetName" 
  -        value="maven.core.callback.pre-env.buildTarget" />
  -    </maven-ant>
  -  </target>
  -
  -  <target name="post-env-callback">
  -    <maven-ant antfile="${maven.home}/plugins/core/build-init.xml" 
  -      target="callback" inheritRefs="true" exportAll="false" exportRefs="false">
  -      <property name="buildFile" 
  -        value="${maven.core.callback.post-env.buildFile}" />
  -      <property name="buildTarget" 
  -        value="${maven.core.callback.post-env.buildTarget}" />
  -      <property name="buildTargetName" 
  -        value="maven.core.callback.post-env.buildTarget" />
  -    </maven-ant>
  +  <target name="pre-env-callback" if="maven.core.callback.pre-env.ok">
  +    <maven-ant antfile="${maven.core.callback.pre-env.buildFile}" 
  +      target="${maven.core.callback.pre-env.buildTarget}"
  +      inheritRefs="true" exportAll="false" exportRefs="false"/>
  +  </target>
  +
  +  <target name="post-env-callback" if="maven.core.callback.post-env.ok">
  +    <maven-ant antfile="${maven.core.callback.post-env.buildFile}" 
  +      target="${maven.core.callback.post-env.buildTarget}"
  +      inheritRefs="true" exportAll="false" exportRefs="false"/>
     </target>
     
     <target name="do-env">
  @@ -105,28 +366,18 @@
         pre-update-jars-callback, do-update-jars, post-update-jars-callback">
     </target>
   
  -  <target name="pre-update-jars-callback">
  -    <maven-ant antfile="${maven.home}/plugins/core/build-init.xml" 
  -      target="callback" inheritRefs="true" exportAll="false" exportRefs="false">
  -      <property name="buildFile" 
  -        value="${maven.core.callback.pre-update-jars.buildFile}" />
  -      <property name="buildTarget" 
  -        value="${maven.core.callback.pre-update-jars.buildTarget}" />
  -      <property name="buildTargetName" 
  -        value="maven.core.callback.pre-update-jars.buildTarget" />
  -    </maven-ant>
  -  </target>
  -
  -  <target name="post-update-jars-callback">
  -    <maven-ant antfile="${maven.home}/plugins/core/build-init.xml" 
  -      target="callback" inheritRefs="true" exportAll="false" exportRefs="false">
  -      <property name="buildFile" 
  -        value="${maven.core.callback.post-update-jars.buildFile}" />
  -      <property name="buildTarget" 
  -        value="${maven.core.callback.post-update-jars.buildTarget}" />
  -      <property name="buildTargetName" 
  -        value="maven.core.callback.post-update-jars.buildTarget" />
  -    </maven-ant>
  +  <target name="pre-update-jars-callback"
  +    if="maven.core.callback.pre-update-jars.ok">
  +    <maven-ant antfile="${maven.core.callback.pre-update-jars.buildFile}" 
  +      target="${maven.core.callback.pre-update-jars.buildTarget}"
  +      inheritRefs="true" exportAll="false" exportRefs="false"/>
  +  </target>
  +
  +  <target name="post-update-jars-callback"
  +    if="maven.core.callback.post-update-jars.ok">
  +    <maven-ant antfile="${maven.core.callback.post-update-jars.buildFile}" 
  +      target="${maven.core.callback.post-update-jars.buildTarget}"
  +      inheritRefs="true" exportAll="false" exportRefs="false"/>
     </target>
   
     <target
  @@ -188,28 +439,18 @@
       depends="local-init, maven-update-check, pre-maven-update-callback, 
         do-maven-update, post-maven-update-callback"/>
   
  -  <target name="pre-maven-update-callback">
  -    <maven-ant antfile="${maven.home}/plugins/core/build-init.xml" 
  -      target="callback" inheritRefs="true" exportAll="false" exportRefs="false">
  -      <property name="buildFile" 
  -        value="${maven.core.callback.pre-maven-update.buildFile}" />
  -      <property name="buildTarget" 
  -        value="${maven.core.callback.pre-maven-update.buildTarget}" />
  -      <property name="buildTargetName" 
  -        value="maven.core.callback.pre-maven-update.buildTarget" />
  -    </maven-ant>
  -  </target>
  -
  -  <target name="post-maven-update-callback">
  -    <maven-ant antfile="${maven.home}/plugins/core/build-init.xml" 
  -      target="callback" inheritRefs="true" exportAll="false" exportRefs="false">
  -      <property name="buildFile" 
  -        value="${maven.core.callback.post-maven-update.buildFile}" />
  -      <property name="buildTarget" 
  -        value="${maven.core.callback.post-maven-update.buildTarget}" />
  -      <property name="buildTargetName" 
  -        value="maven.core.callback.post-maven-update.buildTarget" />
  -    </maven-ant>
  +  <target name="pre-maven-update-callback"
  +    if="maven.core.callback.pre-maven-update.ok">
  +    <maven-ant antfile="${maven.core.callback.pre-maven-update.buildFile}" 
  +      target="${maven.core.callback.pre-maven-update.buildTarget}"
  +      inheritRefs="true" exportAll="false" exportRefs="false"/>
  +  </target>
  +
  +  <target name="post-maven-update-callback"
  +    if="maven.core.callback.post-maven-update.ok">
  +    <maven-ant antfile="${maven.core.callback.post-maven-update.buildFile}" 
  +      target="${maven.core.callback.post-maven-update.buildTarget}"
  +      inheritRefs="true" exportAll="false" exportRefs="false"/>
     </target>
   
     <target
  @@ -269,30 +510,19 @@
       depends="local-init, pre-validate-pom-callback, do-validate-pom, 
         post-validate-pom-callback"/>
   
  -  <target name="pre-validate-pom-callback">
  -    <maven-ant antfile="${maven.home}/plugins/core/build-init.xml" 
  -      target="callback" inheritRefs="true" exportAll="false" exportRefs="false">
  -      <property name="buildFile" 
  -        value="${maven.core.callback.pre-validate-pom.buildFile}" />
  -      <property name="buildTarget" 
  -        value="${maven.core.callback.pre-validate-pom.buildTarget}" />
  -      <property name="buildTargetName" 
  -        value="maven.core.callback.pre-validate-pom.buildTarget" />
  -    </maven-ant>
  -  </target>
  -
  -  <target name="post-validate-pom-callback">
  -    <maven-ant antfile="${maven.home}/plugins/core/build-init.xml" 
  -      target="callback" inheritRefs="true" exportAll="false" exportRefs="false">
  -      <property name="buildFile" 
  -        value="${maven.core.callback.post-validate-pom.buildFile}" />
  -      <property name="buildTarget" 
  -        value="${maven.core.callback.post-validate-pom.buildTarget}" />
  -      <property name="buildTargetName" 
  -        value="maven.core.callback.post-validate-pom.buildTarget" />
  -    </maven-ant>
  +  <target name="pre-validate-pom-callback"
  +    if="maven.core.callback.pre-validate-pom.ok">
  +    <maven-ant antfile="${maven.core.callback.pre-validate-pom.buildFile}" 
  +      target="${maven.core.callback.pre-validate-pom.buildTarget}"
  +      inheritRefs="true" exportAll="false" exportRefs="false"/>
     </target>
   
  +  <target name="post-validate-pom-callback"
  +    if="maven.core.callback.post-validate-pom.callback.ok">
  +    <maven-ant antfile="${maven.core.callback.post-validate-pom.buildFile}" 
  +      target="${maven.core.callback.post-validate-pom.buildTarget}"
  +      inheritRefs="true" exportAll="false" exportRefs="false"/>
  +  </target>
         
     <target
       name="do-validate-pom">
  @@ -362,28 +592,16 @@
         post-compile-callback"
       description="o Compile project source code"/>
   
  -  <target name="pre-compile-callback">
  -    <maven-ant antfile="${maven.home}/plugins/core/build-init.xml" 
  -      target="callback" inheritRefs="true" exportAll="false" exportRefs="false">
  -      <property name="buildFile" 
  -        value="${maven.core.callback.pre-compile.buildFile}" />
  -      <property name="buildTarget" 
  -        value="${maven.core.callback.pre-compile.buildTarget}" />
  -      <property name="buildTargetName" 
  -        value="maven.core.callback.pre-compile.buildTarget" />
  -    </maven-ant>
  -  </target>
  -
  -  <target name="post-compile-callback">
  -    <maven-ant antfile="${maven.home}/plugins/core/build-init.xml" 
  -      target="callback" inheritRefs="true" exportAll="false" exportRefs="false">
  -      <property name="buildFile" 
  -        value="${maven.core.callback.post-compile.buildFile}" />
  -      <property name="buildTarget" 
  -        value="${maven.core.callback.post-compile.buildTarget}" />
  -      <property name="buildTargetName" 
  -        value="maven.core.callback.post-compile.buildTarget" />
  -    </maven-ant>
  +  <target name="pre-compile-callback" if="maven.core.callback.pre-compile.ok">
  +    <maven-ant antfile="${maven.core.callback.pre-compile.buildFile}" 
  +      target="${maven.core.callback.pre-compile.buildTarget}"
  +      inheritRefs="true" exportAll="false" exportRefs="false"/>
  +  </target>
  +
  +  <target name="post-compile-callback" if="maven.core.callback.post-compile.ok">
  +    <maven-ant antfile="${maven.core.callback.post-compile.buildFile}" 
  +      target="${maven.core.callback.post-compile.buildTarget}"
  +      inheritRefs="true" exportAll="false" exportRefs="false"/>
     </target>
   
     <target
  @@ -477,28 +695,18 @@
         post-check-source-callback"
       description="o Check the source code for style violations"/>
   
  -  <target name="pre-check-source-callback">
  -    <maven-ant antfile="${maven.home}/plugins/core/build-init.xml" 
  -      target="callback" inheritRefs="true" exportAll="false" exportRefs="false">
  -      <property name="buildFile" 
  -        value="${maven.core.callback.pre-check-source.buildFile}" />
  -      <property name="buildTarget" 
  -        value="${maven.core.callback.pre-check-source.buildTarget}" />
  -      <property name="buildTargetName" 
  -        value="maven.core.callback.pre-check-source.buildTarget" />
  -    </maven-ant>
  -  </target>
  -
  -  <target name="post-check-source-callback">
  -    <maven-ant antfile="${maven.home}/plugins/core/build-init.xml" 
  -      target="callback" inheritRefs="true" exportAll="false" exportRefs="false">
  -      <property name="buildFile" 
  -        value="${maven.core.callback.post-check-source.buildFile}" />
  -      <property name="buildTarget" 
  -        value="${maven.core.callback.post-check-source.buildTarget}" />
  -      <property name="buildTargetName" 
  -        value="maven.core.callback.post-check-source.buildTarget" />
  -    </maven-ant>
  +  <target name="pre-check-source-callback" 
  +    if="maven.core.callback.pre-check-source.ok">
  +    <maven-ant antfile="${maven.core.callback.pre-check-source.buildFile}" 
  +      target="${maven.core.callback.pre-check-source.buildTarget}"
  +      inheritRefs="true" exportAll="false" exportRefs="false"/>
  +  </target>
  +
  +  <target name="post-check-source-callback" 
  +    if="maven.core.callback.post-check-source.ok">
  +    <maven-ant antfile="${maven.core.callback.post-check-source.buildFile}" 
  +      target="${maven.core.callback.post-check-source.buildTarget}"
  +      inheritRefs="true" exportAll="false" exportRefs="false"/>
     </target>
   
     <target name="do-check-source" if="maven.sourcesPresent">
  @@ -597,28 +805,16 @@
       description="o Generates the ${project} JAR file (default)"
     />
   
  -  <target name="pre-jar-callback">
  -    <maven-ant antfile="${maven.home}/plugins/core/build-init.xml" 
  -      target="callback" inheritRefs="true" exportAll="false" exportRefs="false">
  -      <property name="buildFile" 
  -        value="${maven.core.callback.pre-jar.buildFile}" />
  -      <property name="buildTarget" 
  -        value="${maven.core.callback.pre-jar.buildTarget}" />
  -      <property name="buildTargetName" 
  -        value="maven.core.callback.pre-jar.buildTarget" />
  -    </maven-ant>
  -  </target>
  -
  -  <target name="post-jar-callback">
  -    <maven-ant antfile="${maven.home}/plugins/core/build-init.xml" 
  -      target="callback" inheritRefs="true" exportAll="false" exportRefs="false">
  -      <property name="buildFile" 
  -        value="${maven.core.callback.post-jar.buildFile}" />
  -      <property name="buildTarget" 
  -        value="${maven.core.callback.post-jar.buildTarget}" />
  -      <property name="buildTargetName" 
  -        value="maven.core.callback.post-jar.buildTarget" />
  -    </maven-ant>
  +  <target name="pre-jar-callback" if="maven.core.callback.pre-jar.ok">
  +    <maven-ant antfile="${maven.core.callback.pre-jar.buildFile}" 
  +      target="${maven.core.callback.pre-jar.buildTarget}"
  +      inheritRefs="true" exportAll="false" exportRefs="false"/>
  +  </target>
  +
  +  <target name="post-jar-callback" if="maven.core.callback.post-jar.ok">
  +    <maven-ant antfile="${maven.core.callback.post-jar.buildFile}" 
  +      target="${maven.core.callback.post-jar.buildTarget}"
  +      inheritRefs="true" exportAll="false" exportRefs="false"/>
     </target>
   
     <target 
  @@ -678,28 +874,16 @@
       depends="init, dist-check-tag, pre-dist-callback, do-dist, 
         post-dist-callback"/>
   
  -  <target name="pre-dist-callback">
  -    <maven-ant antfile="${maven.home}/plugins/core/build-init.xml" 
  -      target="callback" inheritRefs="true" exportAll="false" exportRefs="false">
  -      <property name="buildFile" 
  -        value="${maven.core.callback.pre-dist.buildFile}" />
  -      <property name="buildTarget" 
  -        value="${maven.core.callback.pre-dist.buildTarget}" />
  -      <property name="buildTargetName" 
  -        value="maven.core.callback.pre-dist.buildTarget" />
  -    </maven-ant>
  -  </target>
  -
  -  <target name="post-dist-callback">
  -    <maven-ant antfile="${maven.home}/plugins/core/build-init.xml" 
  -      target="callback" inheritRefs="true" exportAll="false" exportRefs="false">
  -      <property name="buildFile" 
  -        value="${maven.core.callback.post-dist.buildFile}" />
  -      <property name="buildTarget" 
  -        value="${maven.core.callback.post-dist.buildTarget}" />
  -      <property name="buildTargetName" 
  -        value="maven.core.callback.post-dist.buildTarget" />
  -    </maven-ant>
  +  <target name="pre-dist-callback" if="maven.core.callback.pre-dist.ok">
  +    <maven-ant antfile="${maven.core.callback.pre-dist.buildFile}" 
  +      target="${maven.core.callback.pre-dist.buildTarget}"
  +      inheritRefs="true" exportAll="false" exportRefs="false"/>
  +  </target>
  +
  +  <target name="post-dist-callback" if="maven.core.callback.post-dist.ok">
  +    <maven-ant antfile="${maven.core.callback.post-dist.buildFile}" 
  +      target="${maven.core.callback.post-dist.buildTarget}"
  +      inheritRefs="true" exportAll="false" exportRefs="false"/>
     </target>
   
         
  @@ -772,28 +956,18 @@
         post-dist-build-callback"
       description="o Create source and binary distributions"/>
   
  -  <target name="pre-dist-build-callback">
  -    <maven-ant antfile="${maven.home}/plugins/core/build-init.xml" 
  -      target="callback" inheritRefs="true" exportAll="false" exportRefs="false">
  -      <property name="buildFile" 
  -        value="${maven.core.callback.pre-dist-build.buildFile}" />
  -      <property name="buildTarget" 
  -        value="${maven.core.callback.pre-dist-build.buildTarget}" />
  -      <property name="buildTargetName" 
  -        value="maven.core.callback.pre-dist-build.buildTarget" />
  -    </maven-ant>
  -  </target>
  -
  -  <target name="post-dist-build-callback">
  -    <maven-ant antfile="${maven.home}/plugins/core/build-init.xml" 
  -      target="callback" inheritRefs="true" exportAll="false" exportRefs="false">
  -      <property name="buildFile" 
  -        value="${maven.core.callback.post-dist-build.buildFile}" />
  -      <property name="buildTarget" 
  -        value="${maven.core.callback.post-dist-build.buildTarget}" />
  -      <property name="buildTargetName" 
  -        value="maven.core.callback.post-dist-build.buildTarget" />
  -    </maven-ant>
  +  <target name="pre-dist-build-callback" 
  +    if="maven.core.callback.pre-dist-build.ok">
  +    <maven-ant antfile="${maven.core.callback.pre-dist-build.buildFile}" 
  +      target="${maven.core.callback.pre-dist-build.buildTarget}"
  +      inheritRefs="true" exportAll="false" exportRefs="false"/>
  +  </target>
  +
  +  <target name="post-dist-build-callback"
  +    if="maven.core.callback.post-dist-build.ok">
  +    <maven-ant antfile="${maven.core.callback.post-dist-build.buildFile}" 
  +      target="${maven.core.callback.post-dist-build.buildTarget}"
  +      inheritRefs="true" exportAll="false" exportRefs="false"/>
     </target>
       
     <target name="do-dist-build" depends="jar, javadocs">
  @@ -928,28 +1102,18 @@
         post-install-jar-callback"
       description="o Installs JAR file in local ${lib.repo}"/>
   
  -  <target name="pre-install-jar-callback">
  -    <maven-ant antfile="${maven.home}/plugins/core/build-init.xml" 
  -      target="callback" inheritRefs="true" exportAll="false" exportRefs="false">
  -      <property name="buildFile" 
  -        value="${maven.core.callback.pre-install-jar.buildFile}" />
  -      <property name="buildTarget" 
  -        value="${maven.core.callback.pre-install-jar.buildTarget}" />
  -      <property name="buildTargetName" 
  -        value="maven.core.callback.pre-install-jar.buildTarget" />
  -    </maven-ant>
  -  </target>
  -
  -  <target name="post-install-jar-callback">
  -    <maven-ant antfile="${maven.home}/plugins/core/build-init.xml" 
  -      target="callback" inheritRefs="true" exportAll="false" exportRefs="false">
  -      <property name="buildFile" 
  -        value="${maven.core.callback.post-install-jar.buildFile}" />
  -      <property name="buildTarget" 
  -        value="${maven.core.callback.post-install-jar.buildTarget}" />
  -      <property name="buildTargetName" 
  -        value="maven.core.callback.post-install-jar.buildTarget" />
  -    </maven-ant>
  +  <target name="pre-install-jar-callback" 
  +    if="maven.core.callback.pre-install-jar.ok">
  +    <maven-ant antfile="${maven.core.callback.pre-install-jar.buildFile}" 
  +      target="${maven.core.callback.pre-install-jar.buildTarget}"
  +      inheritRefs="true" exportAll="false" exportRefs="false"/>
  +  </target>
  +
  +  <target name="post-install-jar-callback"
  +    if="maven.core.callback.post-install-jar.ok">
  +    <maven-ant antfile="${maven.core.callback.post-install-jar.buildFile}" 
  +      target="${maven.core.callback.post-install-jar.buildTarget}"
  +      inheritRefs="true" exportAll="false" exportRefs="false"/>
     </target>
       
     <target name="do-install-jar">
  @@ -974,28 +1138,18 @@
         post-gump-descriptor-callback"
       description="o Generate Gump descriptor from Maven descriptor"/>
   
  -  <target name="pre-gump-descriptor-callback">
  -    <maven-ant antfile="${maven.home}/plugins/core/build-init.xml" 
  -      target="callback" inheritRefs="true" exportAll="false" exportRefs="false">
  -      <property name="buildFile" 
  -        value="${maven.core.callback.pre-gump-descriptor.buildFile}" />
  -      <property name="buildTarget" 
  -        value="${maven.core.callback.pre-dump-descriptor.buildTarget}" />
  -      <property name="buildTargetName" 
  -        value="maven.core.callback.pre-gump-descriptor.buildTarget" />
  -    </maven-ant>
  -  </target>
  -
  -  <target name="post-gump-descriptor-callback">
  -    <maven-ant antfile="${maven.home}/plugins/core/build-init.xml" 
  -      target="callback" inheritRefs="true" exportAll="false" exportRefs="false">
  -      <property name="buildFile" 
  -        value="${maven.core.callback.post-gump-descriptor.buildFile}" />
  -      <property name="buildTarget" 
  -        value="${maven.core.callback.post-gump-descriptor.buildTarget}" />
  -      <property name="buildTargetName" 
  -        value="maven.core.callback.post-gump-descriptor.buildTarget" />
  -    </maven-ant>
  +  <target name="pre-gump-descriptor-callback"
  +    if="maven.core.callback.pre-gump-descriptor.ok">
  +    <maven-ant antfile="${maven.core.callback.pre-gump-descriptor.buildFile}" 
  +      target="${maven.core.callback.pre-gump-descriptor.buildTarget}"
  +      inheritRefs="true" exportAll="false" exportRefs="false"/>
  +  </target>
  +
  +  <target name="post-gump-descriptor-callback"
  +    if="maven.core.callback.post-gump-descriptor.ok">
  +    <maven-ant antfile="${maven.core.callback.post-gump-descriptor.buildFile}" 
  +      target="${maven.core.callback.post-gump-descriptor.buildTarget}"
  +      inheritRefs="true" exportAll="false" exportRefs="false"/>
     </target>
       
     <target name="do-gump-descriptor">
  @@ -1028,28 +1182,16 @@
       depends="local-init, pre-clean-callback, do-clean, post-clean-callback"
       description="o Cleans up the build directory"/>
   
  -  <target name="pre-clean-callback">
  -    <maven-ant antfile="${maven.home}/plugins/core/build-init.xml" 
  -      target="callback" inheritRefs="true" exportAll="false" exportRefs="false">
  -      <property name="buildFile" 
  -        value="${maven.core.callback.pre-clean.buildFile}" />
  -      <property name="buildTarget" 
  -        value="${maven.core.callback.pre-clean.buildTarget}" />
  -      <property name="buildTargetName" 
  -        value="maven.core.callback.pre-clean.buildTarget" />
  -    </maven-ant>
  -  </target>
  -
  -  <target name="post-clean-callback">
  -    <maven-ant antfile="${maven.home}/plugins/core/build-init.xml" 
  -      target="callback" inheritRefs="true" exportAll="false" exportRefs="false">
  -      <property name="buildFile" 
  -        value="${maven.core.callback.post-clean.buildFile}" />
  -      <property name="buildTarget" 
  -        value="${maven.core.callback.post-clean.buildTarget}" />
  -      <property name="buildTargetName" 
  -        value="maven.core.callback.post-clean.buildTarget" />
  -    </maven-ant>
  +  <target name="pre-clean-callback" if="maven.core.callback.pre-clean.ok">
  +    <maven-ant antfile="${maven.core.callback.pre-clean.buildFile}" 
  +      target="${maven.core.callback.pre-clean.buildTarget}"
  +      inheritRefs="true" exportAll="false" exportRefs="false"/>
  +  </target>
  +
  +  <target name="post-clean-callback" if="maven.core.callback.post-clean.ok">
  +    <maven-ant antfile="${maven.core.callback.post-clean.buildFile}" 
  +      target="${maven.core.callback.post-clean.buildTarget}"
  +      inheritRefs="true" exportAll="false" exportRefs="false"/>
     </target>
       
     <target name="do-clean">
  @@ -1108,28 +1250,17 @@
       depends="local-init, pre-announce-callback, do-announce, 
         post-announce-callback"/>
   
  -  <target name="pre-announce-callback">
  -    <maven-ant antfile="${maven.home}/plugins/core/build-init.xml" 
  -      target="callback" inheritRefs="true" exportAll="false" exportRefs="false">
  -      <property name="buildFile" 
  -        value="${maven.core.callback.pre-announce.buildFile}" />
  -      <property name="buildTarget" 
  -        value="${maven.core.callback.pre-announce.buildTarget}" />
  -      <property name="buildTargetName" 
  -        value="maven.core.callback.pre-announce.buildTarget" />
  -    </maven-ant>
  -  </target>
  -
  -  <target name="post-announce-callback">
  -    <maven-ant antfile="${maven.home}/plugins/core/build-init.xml" 
  -      target="callback" inheritRefs="true" exportAll="false" exportRefs="false">
  -      <property name="buildFile" 
  -        value="${maven.core.callback.post-announce.buildFile}" />
  -      <property name="buildTarget" 
  -        value="${maven.core.callback.post-announce.buildTarget}" />
  -      <property name="buildTargetName" 
  -        value="maven.core.callback.post-announce.buildTarget" />
  -    </maven-ant>
  +  <target name="pre-announce-callback" if="maven.core.callback.pre-announce.ok">
  +    <maven-ant antfile="${maven.core.callback.pre-announce.buildFile}" 
  +      target="${maven.core.callback.pre-announce.buildTarget}"
  +      inheritRefs="true" exportAll="false" exportRefs="false"/>
  +  </target>
  +
  +  <target name="post-announce-callback"
  +    if="maven.core.callback.post-announce.ok">
  +    <maven-ant antfile="${maven.core.callback.post-announce.buildFile}" 
  +      target="${maven.core.callback.post-announce.buildTarget}"
  +      inheritRefs="true" exportAll="false" exportRefs="false"/>
     </target>
   
     <target
  
  
  

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to