ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alberto Marquÿffffe9s <>
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

<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="" username="admin" password="" path="/${nombreProyecto}"
          <delete dir="${destino}\${nombreProyecto}"/>
          <start url="" username="admin" password=""   path="/${nombreProyecto}"
          <delete file="${destino}\${nombreProyecto}.war"/> 
  <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 executable="svn">
        <arg line="co ." />

"Barrington-Hughes, Alan" <> escribió: You can
use something like this


          description="Load properties for Solaris."


Good luck
-----Original Message-----
From: Alberto Marquÿffffe9s [] 
Sent: Thursday, May 11, 2006 10:48 AM
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: 



LLama Gratis a cualquier PC del Mundo.
Llamadas a fijos y móviles desde 1 céntimo por minuto.

***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:
For additional commands, e-mail:


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