This week's book giveaway is in the Big Data forum.
We're giving away four copies of Elasticsearch in Action and have Radu Gheorghe & Matthew Lee Hinman on-line!
See this thread for details.
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


Win a copy of Elasticsearch in Action this week in the Big Data forum!
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: 5850
    
    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: 5850
    
    7

Nikos Stavros,
Your post was moved to a new topic.
 
Don't get me started about those stupid light bulbs.
 
subject: Ant - Could not find file to copy