On Mon, 5 Oct 1998, Travis Shirk wrote:
> Hello All,
>
> This post does not have anything to do with Linux, but some of you
> may be able to help since you're Unix users.
>
> ---------------
>
> I'm having some problems using CVS with a pretty large Java API. The problem
> is pretty basic, I want my CVS repository to contain only java source files.
> This is necessary because (1) I don't want CVS to try and merge .class
> files and (2) people working with the repository should need to do a cvs add
> on only the source file and not the new .class file. My problem is
> with dependencies. Many of the classes depend on other classes that
> may not have been created yet in the 'make all' build process. I've played
> around with javac -depend but I don't think it likes how I organize
> my source environment. I have all .java files under a src directory
> in each subpackage directory. So if I have a package called foo.bar
> the directory hierarchy would look like this:
>
> foo/bar contains the .class files
> and foo/bar/src contains the .java files
>
> I refuse to mix the .java and .class files and think it is ridiculous how
> java tools expect this.
>
> Dependencies are not a problem once all the .class files are around, but
> when a user checks out a new repository I don't want them to get any .class
> files. Basically, the first thing that should be done after checking out the
> repository is a 'make all' so that all the .class files are built.
>
> Has anyone ever solved this problem. This is the first time I've really
> wished for header files, because C/C++ does not have this problem during
> compile time.
javac: invalid flag: -?
use: javac [-g][-O][-debug][-depend][-nowarn][-verbose][-classpath
path][-nowrite][-deprecation][-d dir][-J<runtime flag>] file.java...
[summer@possum summer]$ jikes -?
use: jikes [-g][-O][-debug][-depend][-nowarn][-verbose][-classpath path][-nowrite][-d
dir] [++][+C][+E][+F][+M][+R][+V] file.java ...
(C) Copyright IBM Corp. 1997, 1998.
- Licensed Materials - Program Property of IBM - All Rights Reserved.
use: jikes [-classpath path][-d dir][-debug][-depend][-deprecation]
[-g][-nowarn][-nowrite][-O][-verbose][+1.0][+$][++][+B][+E][+F][+M][+P] file.java...
-classpath path use path for CLASSPATH
-d dir write class files in directory dir
These are the java compilers I use here. Both support -d to put the class
files somewhere else altogether. Does this help?
Cheers
John Summerfield
http://os2.ami.com.au/os2/ for OS/2 support.
Configuration, networking, combined IBM ftpsites index.