Eclipse uses different .class files from ant run
Kepler creates a separate target directory for .class files that are built
using ant and yet another target directory for .class files that are built
Below are a series of problems with having .class files separate from the
1) Since we look in the classpath for .java files, there is a chance that
the .java file that is returned will not correspond with the .java file
that was used to create the .class file. For example, if there are two
implementations of Const actor, then there could be two Const.java files.
How do we know which one is the correct .java file?
2) The user is running two very different versions of Kepler when
they run "ant run" and when they invoke Kepler via Eclipse.
3) "Open Actor" fails in an Eclipse build. (I'll submit a separate bug
In my mind, the right thing to do is to generate the .class files in
one location, which would be in the src/ folder.
That would avoid the above problems.
I looked at changing the Eclipse .classpath file so that ptolemy/src
was included in the path, but adding the src folder via
Java Build Path -> Libraries -> Add Class Folder yields:
"Build path contains duplicate entry: 'src' for project 'ptolemy'"