mcconnell    2004/02/03 03:11:43

  Modified:    util     maven.xml
  Log:
  jelly test - strange but true
  create a build.properties file in avalon/util - add two properties
  
  maven.gpg.exe = gpg.exe
  whatever = something or other
  
  then run the maven goal avalon:test and look at the output
  
  avalon:test:
      [echo] SOMETHING: [something or other]
      [echo] something != null
      [echo] something != ''
      [echo] NOTHING: []
      [echo] nothing == null
      [echo] nothing != ''
      [echo] maven.gpg.exe: [gpg.exe]
      [echo] maven.gpg.exe == null
      [echo] maven.gpg.exe != ''
  
  Revision  Changes    Path
  1.10      +48 -5     avalon/util/maven.xml
  
  Index: maven.xml
  ===================================================================
  RCS file: /home/cvs/avalon/util/maven.xml,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- maven.xml 3 Feb 2004 09:19:12 -0000       1.9
  +++ maven.xml 3 Feb 2004 11:11:43 -0000       1.10
  @@ -36,6 +36,49 @@
     <ant:property name="pom.organization.identifier" value="ASF"/>
     <ant:property name="pom.specificationVersion" value="1.0"/>
   
  +  <goal name="avalon:test">
  +    <echo>SOMETHING: [${something}]</echo>
  +    <j:if test="${something != null}">
  +      <echo>something != null</echo>
  +    </j:if>
  +    <j:if test="${something == null}">
  +      <echo>something == null</echo>
  +    </j:if>
  +    <j:if test="${something != ''}">
  +      <echo>something != ''</echo>
  +    </j:if>
  +    <j:if test="${something == ''}">
  +      <echo>something == ''</echo>
  +    </j:if>
  +    <echo>NOTHING: [${nothing}]</echo>
  +    <j:if test="${nothing != null}">
  +      <echo>nothing != null</echo>
  +    </j:if>
  +    <j:if test="${nothing == null}">
  +      <echo>nothing == null</echo>
  +    </j:if>
  +    <j:if test="${nothing != ''}">
  +      <echo>nothing != ''</echo>
  +    </j:if>
  +    <j:if test="${nothing == ''}">
  +      <echo>nothing == ''</echo>
  +    </j:if>
  +    <echo>maven.gpg.exe: [${maven.gpg.exe}]</echo>
  +    <j:if test="${maven.gpg.exe != null}">
  +      <echo>maven.gpg.exe != null</echo>
  +    </j:if>
  +    <j:if test="${maven.gpg.exe == null}">
  +      <echo>maven.gpg.exe == null</echo>
  +    </j:if>
  +    <j:if test="${maven.gpg.exe != ''}">
  +      <echo>maven.gpg.exe != ''</echo>
  +    </j:if>
  +    <j:if test="${maven.gpg.exe == ''}">
  +      <echo>maven.gpg.exe == ''</echo>
  +    </j:if>
  +
  +  </goal>
  +
     <!--
     ==============================================================================
     build the utilities package
  @@ -64,7 +107,7 @@
         <checksum file="${maven.build.dir}/jars/${path}"/>
         <j:if test="${maven.gpg.exe != null}">
           <ant:exec executable="${maven.gpg.exe}">
  -          <ant:arg value="--armour"/>
  +          <ant:arg value="-a"/>
             <ant:arg value="--yes"/>
             <ant:arg value="-b"/>
             <ant:arg value="${maven.build.dir}/jars/${path}"/>
  @@ -141,7 +184,7 @@
       <checksum file="${maven.dist.dir}/${build.name}-bin.tar.gz"/>
       <j:if test="${maven.gpg.exe != null}">
         <ant:exec executable="${maven.gpg.exe}">
  -        <ant:arg value="--armour"/>
  +        <ant:arg value="-a"/>
           <ant:arg value="-b"/>
           <ant:arg value="${maven.dist.dir}/${build.name}-bin.tar.gz"/>
         </ant:exec>
  @@ -154,7 +197,7 @@
       <checksum file="${maven.dist.dir}/${build.name}-bin.zip"/>
       <j:if test="${maven.gpg.exe != null}">
         <ant:exec executable="${maven.gpg.exe}">
  -        <ant:arg value="--armour"/>
  +        <ant:arg value="-a"/>
           <ant:arg value="-b"/>
           <ant:arg value="${maven.dist.dir}/${build.name}-bin.zip"/>
         </ant:exec>
  @@ -178,7 +221,7 @@
       <checksum file="${maven.dist.dir}/${build.name}-src.tar.gz"/>
       <j:if test="${maven.gpg.exe != null}">
         <ant:exec executable="${maven.gpg.exe}">
  -        <ant:arg value="--armour"/>
  +        <ant:arg value="-a"/>
           <ant:arg value="-b"/>
           <ant:arg value="${maven.dist.dir}/${build.name}-src.tar.gz"/>
         </ant:exec>
  @@ -191,7 +234,7 @@
       <checksum file="${maven.dist.dir}/${build.name}-src.zip"/>
       <j:if test="${maven.gpg.exe != null}">
         <ant:exec executable="${maven.gpg.exe}">
  -        <ant:arg value="--armour"/>
  +        <ant:arg value="-a"/>
           <ant:arg value="-b"/>
           <ant:arg value="${maven.dist.dir}/${build.name}-src.zip"/>
         </ant:exec>
  
  
  

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

Reply via email to