Re: Javac or Ant issue ?

2006-08-09 Thread Scot P. Floess
I wouldnt use includeswhy are you doing that?  Just use srcdir and 
all your .java's will be found.


Chun Ji wrote:
Here is my ant target looks like: 
"

  
 

". 
If you look at my home dir, these files are located as: 
/home/cji/src/package1/A.java

/home/cji/src/package1/B.java
/home/cji/src/package2/C.java
/home/cji/src/package2/D.java
/home/cji/src/package3/E.java
... 



-cji 



-Original Message-
From: Alexey N. Solofnenko [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 09, 2006 11:19 AM
To: Ant Users List
Subject: Re: Javac or Ant issue ?
Importance: Low


ANT compares timestamps of class files with Java source files and passes 
the list to JavaC command. So, if C and D files are not specified as 
source files for compilation and selected by JavaC on its own, ANT would 
not know about them. The situation can happen, if all selected files 
compiled fine, but additional files (chosen for compilation by JavaC 
itself) did not.


- Alexey.

Chun Ji wrote:
  
I have noticed some very strange behaviour when I try to compile my java code. 
Say I have some java files to be filed, A,B,C,D,E,F,G...


When I was doing a clean compiling, it gives me error that File C, D failed because some errors, which is true. But when I do the compile(not a clean compile) for the second time, it tells me all the files are compiled successfully and no error is given. 
Can someone tell me why this happen ? 

I am using ant1.6.2, jdk1.5.0_01 to do the compile on linux box. 



-cji  





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



  


--
Scot P. Floess
27 Lake Royale
Louisburg, NC  27549

252-478-8087 (Home)
919-754-4592 (Work)

Chief Architect JPlate  http://sourceforge.net/projects/jplate
Chief Architect JavaPIM http://sourceforge.net/projects/javapim


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



RE: Javac or Ant issue ?

2006-08-09 Thread Chun Ji

Here is my ant target looks like: 
"
  
 

". 
If you look at my home dir, these files are located as: 
/home/cji/src/package1/A.java
/home/cji/src/package1/B.java
/home/cji/src/package2/C.java
/home/cji/src/package2/D.java
/home/cji/src/package3/E.java
... 


-cji 


-Original Message-
From: Alexey N. Solofnenko [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 09, 2006 11:19 AM
To: Ant Users List
Subject: Re: Javac or Ant issue ?
Importance: Low


ANT compares timestamps of class files with Java source files and passes 
the list to JavaC command. So, if C and D files are not specified as 
source files for compilation and selected by JavaC on its own, ANT would 
not know about them. The situation can happen, if all selected files 
compiled fine, but additional files (chosen for compilation by JavaC 
itself) did not.

- Alexey.

Chun Ji wrote:
> I have noticed some very strange behaviour when I try to compile my java 
> code. 
> Say I have some java files to be filed, A,B,C,D,E,F,G...
>
> When I was doing a clean compiling, it gives me error that File C, D failed 
> because some errors, which is true. But when I do the compile(not a clean 
> compile) for the second time, it tells me all the files are compiled 
> successfully and no error is given. 
> Can someone tell me why this happen ? 
>
> I am using ant1.6.2, jdk1.5.0_01 to do the compile on linux box. 
>
>
> -cji  
>
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>   

-- 

Alexey N. Solofnenko <http://trelony.cjb.net/>
Pleasant Hill, CA (GMT-8 usually)

-
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]



Re: Javac or Ant issue ?

2006-08-09 Thread Alexey N. Solofnenko
ANT compares timestamps of class files with Java source files and passes 
the list to JavaC command. So, if C and D files are not specified as 
source files for compilation and selected by JavaC on its own, ANT would 
not know about them. The situation can happen, if all selected files 
compiled fine, but additional files (chosen for compilation by JavaC 
itself) did not.


- Alexey.

Chun Ji wrote:
I have noticed some very strange behaviour when I try to compile my java code. 
Say I have some java files to be filed, A,B,C,D,E,F,G...


When I was doing a clean compiling, it gives me error that File C, D failed because some errors, which is true. But when I do the compile(not a clean compile) for the second time, it tells me all the files are compiled successfully and no error is given. 
Can someone tell me why this happen ? 

I am using ant1.6.2, jdk1.5.0_01 to do the compile on linux box. 



-cji  





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


--

Alexey N. Solofnenko 
Pleasant Hill, CA (GMT-8 usually)

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



Re: Javac or Ant issue ?

2006-08-09 Thread Alexey N. Solofnenko


smime.p7s
Description: S/MIME Cryptographic Signature


RE: Javac or Ant issue ?

2006-08-09 Thread David Corley \(AT/LMI\)
Have you also checked the latest Ant (1.6.5) changelog? I noticed there
was a change to the javac task in 1.6.3 as follows:
* Changed default tempdir for  from user.dir to java.io.tmpdir.
Perhaps this affects you? 

-Original Message-
From: Chun Ji [mailto:[EMAIL PROTECTED] 
Sent: 09 August 2006 18:36
To: Ant Users List
Subject: Javac or Ant issue ? 


I have noticed some very strange behaviour when I try to compile my java
code. 
Say I have some java files to be filed, A,B,C,D,E,F,G...

When I was doing a clean compiling, it gives me error that File C, D
failed because some errors, which is true. But when I do the compile(not
a clean compile) for the second time, it tells me all the files are
compiled successfully and no error is given. 
Can someone tell me why this happen ? 

I am using ant1.6.2, jdk1.5.0_01 to do the compile on linux box. 


-cji  




-
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]



Re: Javac or Ant issue ?

2006-08-09 Thread Scot P. Floess

It'd help to see your classpath, sourcepath, etc...

It sounds like those are in issue.

Chun Ji wrote:
I have noticed some very strange behaviour when I try to compile my java code. 
Say I have some java files to be filed, A,B,C,D,E,F,G...


When I was doing a clean compiling, it gives me error that File C, D failed because some errors, which is true. But when I do the compile(not a clean compile) for the second time, it tells me all the files are compiled successfully and no error is given. 
Can someone tell me why this happen ? 

I am using ant1.6.2, jdk1.5.0_01 to do the compile on linux box. 



-cji  





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


  


--
Scot P. Floess
27 Lake Royale
Louisburg, NC  27549

252-478-8087 (Home)
919-754-4592 (Work)

Chief Architect JPlate  http://sourceforge.net/projects/jplate
Chief Architect JavaPIM http://sourceforge.net/projects/javapim


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