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:[EMAIL PROTECTED]]
Sent: Tuesday, June 19, 2001 12:52 PM
To: [EMAIL PROTECTED]
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