Hi,
Define two more properties like  

src.java.company.transact = src/java/com/company/transact/
src.java.company.deals = src/java/com/company/deals

And include in the target as 

   <javac srcdir="${src.dir};
                ${src.java.company.transact};
                ${src.java.company.deals};"
         destdir="${build.classes.dir}"
    source="${java.source}" target="{javac.target}">
      <compilerarg line="${javac.compilerargs}"/>




Warm Regards,
Sumit Srivastava
Voice : (203) 719 - 5894
Email :[EMAIL PROTECTED]
Chat  :srivassb

To go far, explore first what is near..

-----Original Message-----
From: Alexis Votta [mailto:[EMAIL PROTECTED] 
Sent: Friday, October 05, 2007 9:20 AM
To: [email protected]
Subject: How to include multiple source directories in "compile" target

I have a compile target like the following.

  <property file="build.properties"/>

  <target name="compile">
    <mkdir dir="${build.classes.dir}"/>
    <javac srcdir="${src.dir}" destdir="${build.classes.dir}"
    source="${java.source}" target="{javac.target}">
      <compilerarg line="${javac.compilerargs}"/>
    </javac>
  </target>

In 'build.properties' file, src.dir is defined to be:-

src.dir = src/java

The problem with this will include all sources under src/java. I want to
do something like this:-

Compile all sources in (1) "src/java/com/company/deals" (2)
"src/java/com/company/transact/"

There are many other folders under "src/java/com/company" which I do not
want to compile for this target. So, please suggest how this can be
done. Any help would be highly appreciated.

- Alexis

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

Visit our website at http://www.ubs.com

This message contains confidential information and is intended only 
for the individual named.  If you are not the named addressee you 
should not disseminate, distribute or copy this e-mail.  Please 
notify the sender immediately by e-mail if you have received this 
e-mail by mistake and delete this e-mail from your system.
        
E-mails are not encrypted and cannot be guaranteed to be secure or 
error-free as information could be intercepted, corrupted, lost, 
destroyed, arrive late or incomplete, or contain viruses.  The sender 
therefore does not accept liability for any errors or omissions in the 
contents of this message which arise as a result of e-mail transmission.  
If verification is required please request a hard-copy version.  This 
message is provided for informational purposes and should not be 
construed as a solicitation or offer to buy or sell any securities 
or related financial instruments.

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

Reply via email to