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
Register / Login
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Reply 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: 4875

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
 
IntelliJ Java IDE
 
subject: Ant - Could not find file to copy
 
Threads others viewed
Problem with JUnit integration in Eclipse
Problems deploying an entity bean
ANT and JUnit fork problem
Buildfile: build.xml does not exist! Build failed
problem with ant, junit, NetBeans, Java, or me
jQuery in Action, 2nd edition