ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Edgar "Sánchez" <>
Subject trying to check 3 command-line arguments passed to my build
Date Thu, 23 Aug 2001 23:22:37 GMT
   Hi everyone..

  first of all, thank you for all your help.


The follow command line arguments are correct in order
to by passed to my build file?

    ant -Darg1=data1,arg2=data2

  or do I need to put a "-D" every time I want to send
the next argument??

   How do I check if someone only put 1 or 2 or none
of the arguments in order to execute a target, is is
correct in this way?

<target name="verify">
   <condition property="jmptarget" value="arquitect">
      <equals check="${arg1}"/>
   <condition property="jumptarget" value="security">
      <equals check="${arg1}"/>
   <condition property="jumptarget" value="colect">
      <equals check="${arg1}"/>

<!-- if is arquitect GO -->
<target name="arquitect" depends="verify"

<target name="security" depends="verify"

<!-- it wasn't arquitect, but is not security
     its colect -->

<target name="colect" depends="verify"

<target name="jumtarget" depends="verify"

 I don't know if a made myself clear??
  the thing is..

  I have 3 modules, inside this modules a compilation
could be take for one of them. e.g.

   Security has
   Architec as

  if some one put:
  ant -Darg1=Security,arg2=util
   the XML has to check what submodule has to compile
(javac), but if they only put:
   ant -Darg1=Architec
   All the modules has to be compiled in the order
wich appeared, but Architec depens on Security
  And the last option could be.
    ant -buildfile test.xml
  and all the modules has to be compiled with their

  Could anyone could help me pleasee??!!! just show me
the way please. Here at my office want to develop this
but, this is my second day on it, I'm just learning
it, also I have the background from Microsoft, can you
believe that??

  Thanks in advance.  Hope not to boder you at all



"Puedes sentirte desilusionado si fallas, pero estás condenado si no lo intentas."

"You can get disappointed if you fail down, but you are doomed if you do not try it."

ICQ #  22338121

Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger

View raw message