Return-Path: Delivered-To: apmail-jakarta-ant-user-archive@jakarta.apache.org Received: (qmail 90520 invoked by uid 500); 23 May 2001 21:56:20 -0000 Mailing-List: contact ant-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Reply-To: ant-user@jakarta.apache.org Delivered-To: mailing list ant-user@jakarta.apache.org Received: (qmail 90481 invoked from network); 23 May 2001 21:56:17 -0000 X-MimeOLE: Produced By Microsoft Exchange V6.0.4417.0 content-class: urn:content-classes:message Subject: parsing targets MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C0E3D3.33E0672E" Date: Wed, 23 May 2001 14:56:21 -0700 Message-ID: <7431ACB59BBDA34DBAE4C398EEB7D77902388E@piexg00.corp.ivmg.net> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: parsing targets Thread-Index: AcDj0zPL0GG4F8paRJGF6ntfq0hGSA== From: "Shunhui Zhu" To: X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N This is a multi-part message in MIME format. ------_=_NextPart_001_01C0E3D3.33E0672E Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi, I have a few applications, say "foo1" and "foo2", all needs to be build in the .war directory structure. I'd like to be able to type "build foo1.compile", "build foo2.clean", etc. Since the tasks are all the same, I managed to create a general "app.compile" target that relies on the property "app.name" to be set. But in order to do the above, I have the following block in build.xml =20 =20 and similarly for other targets and applications. This is fine, but I'm wondering whether ant can parse the target when I type "build foo.compile", it automatically extracts the app name as "foo" and make a call to=20 =20 I can write the parsing in the build.bat/build.sh, but can one do it inside ant? Thanks. Shunhui ------_=_NextPart_001_01C0E3D3.33E0672E Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable parsing targets

Hi, I have a few applications,  = say "foo1" and "foo2", all needs to be build in the = .war directory structure. I'd like to be able to type "build = foo1.compile", "build foo2.clean", etc. Since the tasks = are all the same, I managed to create a general "app.compile" = target that relies on the

property "app.name" to be = set. But in order to do the above, I have the following block in = build.xml

 <target = name=3D"foo1.compile">
    <antcall = target=3D"app.compile">
      = <param name=3D"app.name" = value=3D"foo1"/>
    = </antcall>   
  </target>

 <target = name=3D"foo2.compile">
    <antcall = target=3D"app.compile">
      = <param name=3D"app.name" = value=3D"foo2"/>
    = </antcall>   
  </target>

and similarly for other targets = and applications. This is fine, but I'm wondering whether ant can parse = the target when I type "build foo.compile", it automatically = extracts the app name as "foo" and make a call to

        <antcall = target=3D"app.compile">
      = <param name=3D"app.name" = value=3D"foo"/>
    =     </antcall>   

I can write the parsing in the = build.bat/build.sh, but can one do it inside ant?

Thanks.

Shunhui

------_=_NextPart_001_01C0E3D3.33E0672E--