Compile to sources..Help

I can't seem to get the compile to sources to work the way I would expect it to.

I have a scenario where I have 2 directories, and a classpath that puts both directories in the same package.

For example:

a/b/c.java
test/a/b/testc.java

Classpath:

a;test/a

That gives me b.c, and b.test

What I want is for b.c to be compiled into a/b/c.class, and b.testc to be compiled to test/a/b/testc.class

But it insists on putting the testc.class into a/b/testc.class.

This screws things up, because my build scripts put initial versions when I do my compile where I expect them (into test/a/b/testc.class. So i end up with duplicate testc.class files, and the class path picks up the test/a/b/testc.class rather than the one that IDEA just compiled.

Is this a bug? Or am I not understanding how to use compile to sources?

Mike

Please sign in to leave a comment.