ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alberto Marquÿffffe9s <alberto_marq...@yahoo.es>
Subject RE: conditional??????
Date Thu, 11 May 2006 15:05:27 GMT
What I need is in this file of build that single does not execute target="predeploy" the first
time. That it is possible to be executed all times q wants later. For that reason the variable
primerdEPLoY = FALSE FOR Q EXECUTES FIRST BUILD and Later the change of value but does not
work.

<project name="build-pp" default="build" basedir="..\..\code\appPosada2">
  <property name="fuente" value="C:\work\code\appPosada2\Iaap\trunk\WebContent" />
  <property name="fuentejava" value="C:\work\code\appPosada2\Iaap\trunk\JavaSource" />
  <property name="destino" value="..\..\server\jakarta-tomcat-5.0.28\webapps" />
  <property name="common" value="C:\work\server\jakarta-tomcat-5.0.28\common\lib\" />
  <property name="nombreProyecto" value="iaap" />
  <property name="primerDeploy" value="false" />
 
  <taskdef name="start"     classname="org.apache.catalina.ant.StartTask"/>
  <taskdef name="stop"      classname="org.apache.catalina.ant.StopTask"/>
    
  <target name="preDeploy" if="primerDeploy">
          <stop url="http://127.0.0.1:8082" username="admin" password="" path="/${nombreProyecto}"
 />
  
          <delete dir="${destino}\${nombreProyecto}"/>
  
          <start url="http://127.0.0.1:8082" username="admin" password=""   path="/${nombreProyecto}"
/>      
  
          <delete file="${destino}\${nombreProyecto}.war"/> 
  
  </target>
  
  <target name="build" depends="preDeploy" >
  
      <!--ejecuta este comando para desbloquear en acaso de que este bloqueado el directorio
de trabajo-->
       <exec executable="svn">
        <arg line="cleanup" />
     </exec>
     
     <exec executable="svn">
        <arg line="co http://127.0.0.1/repos/IntranetIaap ." />
     </exec>

"Barrington-Hughes, Alan" <Alan_Barrington-Hughes@PremierInc.com> escribió: You can
use something like this

 
    
      
    
    
      
    
    
      
    
    
      
    
  

  
          description="Load properties for Solaris."
          if="os.isSolaris">
    
    

  
 


Good luck
-----Original Message-----
From: Alberto Marquÿffffe9s [mailto:alberto_marques@yahoo.es] 
Sent: Thursday, May 11, 2006 10:48 AM
To: user@ant.apache.org
Subject: conditional??????

I need a function or tag ant that serves like condition.

If a property has value true of doing this if not to do this. 

Something exists thus: 





......task.....

  
---------------------------------

LLama Gratis a cualquier PC del Mundo.
Llamadas a fijos y móviles desde 1 céntimo por minuto.
http://es.voice.yahoo.com

-----------------------------------------
***Note:The information contained in this message may be privileged
and confidential and protected from disclosure. If the reader of
this message is not the intended recipient, or an employee or agent
responsible for delivering this message to the intended recipient,
you are hereby notified that any dissemination, distribution or
copying of this communication is strictly prohibited.  If you have
received this communication in error, please notify the Sender
immediately by replying to the message and deleting it from your
computer.  Thank you.  Premier Inc.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org




		
---------------------------------

LLama Gratis a cualquier PC del Mundo.
Llamadas a fijos y móviles desde 1 céntimo por minuto.
http://es.voice.yahoo.com
Mime
  • Unnamed multipart/alternative (inline, 8-Bit, 0 bytes)
View raw message