ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shailesh Sharma <shailesh_s...@yahoo.com>
Subject Problem with condition selection property; Help needed
Date Mon, 26 Mar 2007 13:07:23 GMT
Hi,
  I have a "for loop" in one target that iterates through few times and then call my actual
deployment target".
   
  The problem is that when I accept "n" (i.e NO) as the first selection, the whole build just
comes out of the loop and do not allow me to choose selection for the rest of the files in
the "for loop".
   
  Please help.
   
  Exception:
   
  BUILD FAILED
file:/export/bea/Win-splus/SPLUS/QPS/scripts/build.xml:62:  ******* You have choosen not to
continue.  Build aborted by user. *******
   
   
  Following is snippet of my build.xml file ...
   
   
  <target name="call-first">
          <foreach list="${name.list}" delimiter="," target="call-second" param="sourceappname"
inheritall="true">
        </foreach>
  </target>
   
  
<target name="call-second">
<propertycopy.....................>
   
  <input
      message="Aceepy either y or n to continue and then press enter"
    
    validargs="y,n"
    addproperty="user.selection"
  />
  
  <condition property="do.abort">
    <equals arg1="n" arg2="${user.selection}"/>
  </condition>
  
  <fail if="do.abort"> ******* You have choosen not to continue.  Build aborted by user.
*******</fail>
      <java classname="weblogic.Deployer" fork="true" maxmemory="512m" failonerror="true">
    .
    .
    .
    .
    ..
    
    
</target>    
   

 
---------------------------------
Bored stiff? Loosen up...
Download and play hundreds of games for free on Yahoo! Games.
Mime
  • Unnamed multipart/alternative (inline, 8-Bit, 0 bytes)
View raw message