aspose file tools*
The moose likes Ant, Maven and Other Build Tools and the fly likes ant javac command changes case(s) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "ant javac command changes case(s)" Watch "ant javac command changes case(s)" New topic
Author

ant javac command changes case(s)

Marilyn de Queiroz
Sheriff

Joined: Jul 22, 2000
Posts: 9052
    
  12
In all the years I've been using ant I haven't run into this issue before.
In build.xml (having trouble posting it... just remove the underscores)



Rather than getting RuntimeScheduleEntry.java.class from RuntimeScheduleEntry.java.java, I'm getting runtimescheduleentry.class

Has anyone seen something like this before?
[ April 07, 2008: Message edited by: Marilyn de Queiroz ]

JavaBeginnersFaq
"Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14688
    
  16

Strange indeed. What do you get when you type "dir src" ?


[My Blog]
All roads lead to JavaRanch
Marilyn de Queiroz
Sheriff

Joined: Jul 22, 2000
Posts: 9052
    
  12
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14688
    
  16

RuntimeScheduleEntry is in a package, isn't it ? Please try another "dir" up to the RuntimeScheduleEntry's package : "dir src\com\......."
Marilyn de Queiroz
Sheriff

Joined: Jul 22, 2000
Posts: 9052
    
  12
source:


destination:
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14688
    
  16

Mmmhh.. I don't get it. Are you using Sun's java compiler ? Try to execute ant using "ant -diagnostics" and paste the result here.
Ilja Preuss
author
Sheriff

Joined: Jul 11, 2001
Posts: 14112
When you change something in the build script or environment to fix this problem, remember to delete the target files. Otherwise the javac task might not even try to recompile the files, if the java files aren't touched in the meantime.


The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Marilyn de Queiroz
Sheriff

Joined: Jul 22, 2000
Posts: 9052
    
  12
Originally posted by Christophe Verre:
Are you using Sun's java compiler ?

I'm using IBM's java compiler.
Marilyn de Queiroz
Sheriff

Joined: Jul 22, 2000
Posts: 9052
    
  12
It turns out that the issue is with the MVFS filesystem on Windows. Its default configuration on Windows ... Native Windows file systems preserve case on file-creation operations. The MVFS is configured to convert file names to lowercase on Windows.

It doesn't make sense to me, but there it is.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: ant javac command changes case(s)