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
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: 5533

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: 5533

Nikos Stavros,
Your post was moved to a new topic.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Ant - Could not find file to copy
 
Similar Threads
Buildfile: build.xml does not exist! Build failed
Problem with JUnit integration in Eclipse
ANT and JUnit fork problem
Problems deploying an entity bean
problem with ant, junit, NetBeans, Java, or me