• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

using javac to compile a cvs controlled project

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am currently using eclipse on a WinXP machine. I have my cvs repository on a RedHat box. Eclipse handles the compile and build fine. when I try to compile the files using a "javac *.java" but I change it to "javac *.java,v" I get a "javac: invalid flag" error. I think need to strip all the version info embedded into the file, but I am not sure how.

So my question is: How do I prepare a cvs controlled file so it is ready to compile?
 
Bartender
Posts: 20841
125
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It sounds like you're trying to compile against the files in the CVS respository itself. Don't do that! Aside from the fact that javac hates ".java,c" as a file extension, there's version differential info in those files so they're not valid java code as they stand.

What you need to do is cvs checkout the project into its own working directory and build against that working directory. When you do that, you'll get the ".java" files you need.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!