aspose file tools*
The moose likes Ant, Maven and Other Build Tools and the fly likes Ant - Could not find file to copy 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 - Could not find file to copy" Watch "Ant - Could not find file to copy" New topic
Author

Ant - Could not find file to copy

Manohar Devale
Greenhorn

Joined: Jan 03, 2012
Posts: 1
D:\Android\junit>ant
Buildfile: D:\Android\junit\build.xml

clean:

init:

versiontag:

BUILD FAILED
D:\Android\junit\build.xml:36: Warning: Could not find file D:\Android\junit\src\main\java\junit\runner\Version.java.template to copy.

Total time: 1 second

Still I see the same problem. Any body has a solution to this...

Thanks..
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5837
    
    7

The error should be obvious: there is no such file as D:\Android\junit\src\main\java\junit\runner\Version.java.template, yet you asked Ant to copy it. Did you get the file name correct? Did you get the directory name correct?

If that doesn't help, post the directory structure of your project and you build.xml file.


JBoss In Action
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5837
    
    7

Nikos Stavros,
Your post was moved to a new topic.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Ant - Could not find file to copy