Clarification, since you usually want the full class name, including
package, for class A to remain the same:
For example:
.../common/com/mycompany/myproject/B.java package.class =
com.mycompany.myproject.B
.../common/com/mycompany/myproject/C.java package.class =
com.mycompany.myp
... or simply name them both non-java, such as A.java.source, and then
copy the desired one to A.java in its current directory (removing any
pre-existing A.java copies beforehand). That way, there is only one
A.java, regardless of directory.
If there are two different cases that are compiled,
On 27 jun 2007, at 20.17, David Alves wrote:
I have two directories of source files that I want to compile. One of
them has
A.java
B.java
C.java
the other one has
A.java
The version of A in the second directory is different from the version
in the first directory. Is there set up my
You could always mange your files ahead of compiling. For example, you
could copy everything from the first directory into a temp directory,
then copy everything from the second directory into the temp directory
overwriting existing files, then compile from the temp directory.
Ben
-Original