ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 18318] New: - depends
Date Tue, 25 Mar 2003 13:10:00 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=18318>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=18318

depends

           Summary: depends
           Product: Ant
           Version: 1.5.1
          Platform: HP
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Enhancement
          Priority: Other
         Component: Build Process
        AssignedTo: dev@ant.apache.org
        ReportedBy: raudibert@terra.es


when a target have several values in 'depends', it verifies that each one had 
been executed first. How can I force target to execute again targets that are 
in depends attribute??

The idea is have one target (function) and some targets (parameters) and then 
execute the 'function' target with different parameters. Eg 
(default="crearProyecto"):

  <target name="funcionVssCreate" description="Crea el directorio especificado 
como 'parametro'">  
      <vsscreate login      ="${login}" 
                 vssPath    ="${pathInicio}/${vssDirNuevo}" 
                 serverPath ="${serverPath}" 
                 ssDir      ="${ssDir}" 
                 failOnError="${vssCreate_failOnError}" /> 
  </target>



  <target name="paramsDirectorioProyecto">
	  <property name="vssDirNuevo" value="${nombreProyectoMayus}" />
  </target>

  <target name="paramsDirectorio_ant">
	  <property name="vssDirNuevo" value="${nombreProyectoMayus}/ant" />
  </target>

  <target name="paramsDirectorio_ant_bin">
	  <property name="vssDirNuevo" value="${nombreProyectoMayus}/ant/bin" />
  </target>

  <target name="paramsDirectorio_ant_lib">
	  <property name="vssDirNuevo" value="${nombreProyectoMayus}/ant/lib" />
  </target>





  <target name="crearDirectorioProyecto" depends="paramsDirectorioProyecto, 
funcionVssCreate"> </target>
  <target name="crearDirectorio_ant"     depends="paramsDirectorio_ant,     
funcionVssCreate"> </target>
  <target name="crearDirectorio_ant_bin" depends="paramsDirectorio_ant_bin, 
funcionVssCreate"> </target>
  <target name="crearDirectorio_ant_lib" depends="paramsDirectorio_ant_lib, 
funcionVssCreate"> </target>



  <target name="crearProyecto" 
depends="crearDirectorioProyecto,crearDirectorio_ant,crearDirectorio_ant_bin,cre
arDirectorio_ant_lib" />

Mime
View raw message