ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rajkumar Seth <Seth.Rajku...@GNI.co.uk>
Subject RE: Building files in a package in order / Compiling 2 specific .Java file in a directory with 60 java files all in the same package.
Date Tue, 22 May 2001 10:40:42 GMT
I have tried creating a path which does not work (nothing happens) if I
change the JVMFunctions.java to *.java it works but I do not want to compile
all the java classes (that is the problem I have lots of class in this
package but they wont compile unless these to class have been compiled.)

So how can I get Ant to compile these 2 and only these 2 files (they are
part of the same package as the other 58 .java files).


   <javac srcdir="${build.classes}"
           destdir="${build.classes}"
           classpath="${classpath}"
           debug="on"
           deprecation="on">
           <src path="${build.classes}"/>
           <src path="${build.classes}"/>
           <include
name="com/gerrard/equities/reconciliationserver/utils/JVMFunctions.java"/>
           <include
name="com/gerrard/equities/reconciliationserver/utils/NetworkFunctions.java"
/>           
    </javac>

-----Original Message-----
From: jp Morgan [mailto:jpmorganh@yahoo.com]
Sent: 2001 May 21 17:18
To: ant-user@jakarta.apache.org
Subject: Re: Building files in a package in order


define a path which uses exclude or include for these
files and reference it in javac

--- Rajkumar Seth <Seth.Rajkumar@GNI.co.uk> wrote:
> I have a package with 60 .java files in it.
> 
> I want to compile all these file for every
> production build.
> 
> This works but JAVAC (1.2.2 release 007 and 1.3)
> complains that 2 classes in
> the file are missing.
> If I compile these 2 classes first using JAVAC then
> everything is fine.
> 
> My solution was to get ant to build these 2 .java
> files (and not the other
> 58 in the directory)
> How can I get ant to build just these 2 files before
> building the rest? 


************************************************************************
The contents of this message and any attachments are confidential and
are intended solely for the attention and use of the addressee only.
Information contained in this message may be subject to legal, 
professional or other privilege or may otherwise be protected by other
legal rules. This message should not be copied or forwarded to any other
person without the express permission of the sender. If you are not the
intended recipient you are not authorised to disclose, copy, distribute
or retain this message or any part of it.

If you have received this message in error, please notify the sender by
telephone (+44-20-7002-4000) and destroy the original message.

We reserve the right to monitor all e-mail messages passing through our
network.
************************************************************************

Mime
View raw message