Question: 
I want to put some files in a fileset, so that I can build them one by one, 
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">
        ...
</fileset> 

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


cj 


-----Original Message-----
From: Dominique Devienne [mailto:[EMAIL PROTECTED]
Sent: Friday, June 30, 2006 6:48 AM
To: Ant Users List; [EMAIL PROTECTED]
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 <[EMAIL PROTECTED]> wrote:
> Here is a nice illustration in context of using cc with macrodef.
>
> http://ant.apache.org/manual/CoreTasks/macrodef.html
>
>
> 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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to