This week's book giveaway is in the Design and Architecture forum.
We're giving away four copies of Communication Patterns: A Guide for Developers and Architects and have Jacqui Read on-line!
See this thread for details.
  • 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

using javac to compile a cvs controlled project

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Saloon Keeper
Posts: 28078
198
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
I child proofed my house but they still get in. Distract them with this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic