Sounds really weird and cannot be justified in context of the copy task.
Try the copy with overwrite="true" parameter. My guess is that because of
some old exercise your files exist in the target directory with lowercase
names. The copy task, by default, does not copy a file to the target
directory unless it is modified. The "overwrite" parameter will force a
copy.

Alternatively, you may try clearing the target directory before running the
copy task (to get rid of existing lowercase name files).
In all my suggestions, I have assumed that you are on the windows platform.

If the problem persists, please post more details including your operating
platform and Ant version.

Cheers
Avlesh

On Wed, Jul 15, 2009 at 10:30 PM, mechlife <gaiam...@gmail.com> wrote:

>
> to take an example what is happening is if the file name is
> MyJavaClass.java
> when it gets copied it changes to myjavaclass.java.
>
> ty
>
>
>
> Avlesh Singh wrote:
> >
> >>
> >> What is happening is the java files when they get copied to the target
> >> directory lose the casesensitive filename ...
> >
> >
> > I could not understand this. Do you mean to say that *.java files are
> > getting copied but not the *.JAVA files? If yes, then that might happen
> > depending on your underlying operating system. On a windows platform it
> > would work as you expect it to but not on unix.
> >
> > Cheers
> > Avlesh
> >
> > On Wed, Jul 15, 2009 at 9:42 PM, mechlife <gaiam...@gmail.com> wrote:
> >
> >>
> >> Hi,
> >>
> >> I am having this weird issue which has me stumped and don’t know where
> to
> >> look further.
> >>
> >> It’s the standard <copy> task  and I have a fileset.
> >>
> >> <copy todir="${build.src}" verbose="true" >
> >>                  <fileset dir="${basedir}/../src">
> >>                        <include name="**/*.java" />
> >>                  </fileset>
> >>
> >>
> >> What is happening is the java files when they get copied to the target
> >> directory lose the casesensitive filename and obviously the subsequent
> >> compile fails.
> >>
> >>
> >> Any suggestions will be greatly appreciated.
> >>
> >>
> >>
> >> --
> >> View this message in context:
> >>
> http://www.nabble.com/copy-task-and-file-name-case-problem-tp24501269p24501269.html
> >> Sent from the Ant - Users mailing list archive at Nabble.com.
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: user-unsubscr...@ant.apache.org
> >> For additional commands, e-mail: user-h...@ant.apache.org
> >>
> >>
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/copy-task-and-file-name-case-problem-tp24501269p24502077.html
> Sent from the Ant - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscr...@ant.apache.org
> For additional commands, e-mail: user-h...@ant.apache.org
>
>

Reply via email to