ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject RE: Help with this build.xml
Date Fri, 30 Jun 2006 18:28:08 GMT
the below reply also works.. otherwise

If i am getting you correct.. Do it this way..

<property name="test-java-dir"  location="./test/java"/>
<property name="build-java"     location="./build/java"/>
<mkdir dir="${build-java}"/>
<target name="compile-test-java" depends="init" description="compile the 
source " >
        <javac srcdir="${test-java-dir}" destdir="${build-java}">
                <classpath refid="test.classpath"/>

For different modules use the above, & call the target name in order you 

"Res Pons" <>
06/30/2006 11:55 PM
Please respond to "Ant Users List"
        cc:     (bcc: prashanth.l/Polaris)
        Subject:        RE: Help with this build.xml

in               <include name="com/manager/domain">
if those are classes then they shoule be in the form of com.manager.* 
instead of slashes.  if they're directories relative to  your 
project/wroking folder then they need to be more complete than just 
                 <include name="com/manager/domain">
more like                <include name="com/manager/domain/*.*">

----Original Message Follows----
From: "Chun Ji" <>
Reply-To: "Ant Users List" <>
To: "Ant Users List" <>
Subject: Help with this build.xml
Date: Fri, 30 Jun 2006 11:17:08 -0700
MIME-Version: 1.0
Received: from ([]) by with Microsoft SMTPSVC(6.0.3790.2444); Fri, 
Jun 2006 11:18:47 -0700
Received: (qmail 17931 invoked by uid 500); 30 Jun 2006 18:17:30 -0000
Received: (qmail 17920 invoked by uid 99); 30 Jun 2006 18:17:30 -0000
Received: from (HELO (    by (qpsmtpd/0.29) with ESMTP; Fri, 30 Jun 2006 11:17:30 -0700
Received: pass ( local policy)
Received: from [] (HELO exchbg03.prounlimited.corp) 
(    by (qpsmtpd/0.29) with ESMTP; Fri, 30 Jun 
11:17:29 -0700
X-Message-Info: txF49lGdW42s2VAVLI0fHKjMiQpFW+5lwATp8Skmbi4=
Mailing-List: contact; run by ezmlm
Precedence: bulk
List-Unsubscribe: <>
List-Help: <>
List-Post: <>
List-Id: "Ant Users List" <>
Delivered-To: mailing list
X-ASF-Spam-Status: No, hits=0.0 required=10.0tests=
X-MimeOLE: Produced By Microsoft Exchange V6.5
Content-class: urn:content-classes:message
Thread-Topic: help to compile c / c++ files in ant
Thread-Index: AcacS878Iu4iu33yQ2OtM7QE2qtKWAAI0CyQ
X-Virus-Checked: Checked by ClamAV on
X-OriginalArrivalTime: 30 Jun 2006 18:18:48.0214 (UTC) 

I want to put some files in a fileset, so that I can build them one by 
such as
<fileset dir="src.dir">
    <patternset id="compile.dir">
                 <include name="com/supplier/domain">
                 <include name="com/supplier/dao">
                 <include name="com/manager/domain">
                 <include name="com/manager/dao">

but somehow in ant, "Javac" does not acccept this "<fileset>", do you know 
way to work arond.


-----Original Message-----
From: Dominique Devienne []
Sent: Friday, June 30, 2006 6:48 AM
To: Ant Users List;
Subject: Re: help to compile c / c++ files in ant
Importance: Low

Nice. You can also make cc-elements implicit, so that you don't have
to specify it when using <call-cc>. --DD

On 6/30/06, James Fuller <> wrote:
 > Here is a nice illustration in context of using cc with macrodef.
 > definition:
 >     <macrodef name="call-cc">
 >        <attribute name="target"/>
 >        <attribute name="link"/>
 >        <attribute name="target.dir"/>
 >        <element name="cc-elements"/>
 >        <sequential>
 >           <mkdir dir="${obj.dir}/@{target}"/>
 >           <mkdir dir="@{target.dir}"/>
 >              <cc link="@{link}" objdir="${obj.dir}/@{target}"
 >                  outfile="@{target.dir}/@{target}">
 >                 <compiler refid="compiler.options"/>
 >                 <cc-elements/>
 >              </cc>
 >           </sequential>
 >     </macrodef>
 > usage:
 >     <call-cc target="unittests" link="executable"
 >              target.dir="${build.bin.dir}">
 >        <cc-elements>
 >           <includepath location="${gen.dir}"/>
 >           <includepath location="test"/>
 >           <fileset dir="test/unittest" includes = "**/*.cpp"/>
 >           <fileset dir="${gen.dir}" includes = "*.cpp"/>
 >           <linker refid="linker-libs"/>
 >        </cc-elements>
 >     </call-cc>
 > gl, Jim Fuller
 > ---------------------------------------------------------------------
 > To unsubscribe, e-mail:
 > For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

Don’t just search. Find. Check out the new MSN Search!

To unsubscribe, e-mail:
For additional commands, e-mail:

This e-Mail may contain proprietary and confidential information and is sent for the intended
recipient(s) only.  If by an addressing or transmission error this mail has been misdirected
to you, you are requested to delete this mail immediately. You are also hereby notified that
any use, any form of reproduction, dissemination, copying, disclosure, modification, distribution
and/or publication of this e-mail message, contents or its attachment other than by its intended
recipient/s is strictly prohibited.

Visit us at
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message