ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hari Ramasubbu <hariramasu...@yahoo.com>
Subject RE: Partial builds .....?
Date Tue, 19 Jun 2001 20:57:34 GMT
It works.Thanks a lot Bhavin I really appreciate the
help.

regards
hari
--- Bhavin Patel <bpatel@go2.com> wrote:
> hmm i think that's what the target attribute for the
> tasks could be?
> 
> you would just create two targets:
> 
> <target name="client">
> ...
> </target>
> 
> <target name="server">
> ...
> </target>
> 
> and when you run ant you could on the command line
> just type
> 
> ant client
> or 
> ant server
> 
> if you wanted to you could also specify a build
> variable like
> 
> ant -DbuildType=server
> or 
> ant -DbuildType=client
> 
> and then in your target do an antcall
> 
> <target name="common">
> 	<antcall target="${buildType}">
> 		...
> 	</antcall>
> </target>
> 
> the first way is probably the way to go though
> 
> -----Original Message-----
> From: Hari Ramasubbu
> [mailto:hariramasubbu@yahoo.com]
> Sent: Tuesday, June 19, 2001 12:52 PM
> To: ant-user@jakarta.apache.org
> Subject: Partial builds .....?
> 
> 
> 
> My product has client and server binaries to be
> built,How do i build just the client or server
> provided i have only one build.xml file.
> 
> Can this be acheived by passing some variables as
> properties in the build command line -D option and
> processing those properties for building specing set
> of targets.
> 
> essentially this is what i'm looking for
> 
> if client build     build set of client tasks
> else                build set of server tasks
> 
> thanks
> hari


Mime
View raw message