ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yadav, Akshat Kumar " <akshat.kumar.ya...@citi.com>
Subject Re: Javac task query
Date Wed, 27 Jun 2007 02:10:13 GMT

Thanks Steve! It worked.

But lets say if I have executed compile target on a.java, b.java ,c.java
it generates a.class, b.class, c.class and then I made jar of these
class files. Later if I deleted c.java from source and its class file is
present is in dest dir. And when I will make jar it will contain c.class
also, that I don't want to be persent in jar file as its corresponding
java file is deleted from source dir.

Reference:
Phase 1:
Source: a.java, b.java, c.java
Dest: a.class, b.class, c.class
Jar: JTQ.jar (contains a.class, b.class, c.class) 

Phase 2 (when I deleted c.java from source dir)
Source: a.java, b.java
Dest: a.class, b.class, c.class
Jar: JTQ.jar (contains a.class, b.class, c.class) 

But I don't want c.class should not be presend in jar. It there any
option or method to counter with such situation.

Any help appreciated. If my query is not clear, then let me know...

Thanks,

-----Original Message-----
From: Steve Loughran [mailto:stevel@apache.org] 
Sent: Tuesday, June 26, 2007 7:04 PM
To: Ant Users List
Subject: Re: Javac task query

Yadav, Akshat Kumar wrote:
>  
> Hi Prashant,
> 
> I had executed ANT in verbose and debug mode and it shows
> 
>  [javac] HelloWorlApp.java added as HelloWorlApp.class doesn't exist.
> 
> Whereas the class file exist in dest dir. I tried adding/deleting dest

> dir in classpath, but no luck in both the situation.
> 
> I would appreciate, If you could try this in your environment. I had 
> tried this with ANT 1.6.5/1.7 and java 1.4/1.5.
> 
> P.S: Other member's can also suggest me something.
> 
> Thanks,

could be the classname in the .java file has a different spelling or
case from the source file itself

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional
commands, e-mail: user-help@ant.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message