Project

General

Profile

Actions

Bug #5538

open

Eclipse uses different .class files from ant run

Added by Christopher Brooks over 12 years ago.

Status:
New
Priority:
Normal
Category:
build system
Target version:
Start date:
11/12/2011
Due date:
% Done:

0%

Estimated time:
Bugzilla-Id:
5538

Description

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
using Eclipse.

Below are a series of problems with having .class files separate from the
.java files:
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
for this)

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'"

Actions #1

Updated by Redmine Admin about 11 years ago

Original Bugzilla ID was 5538

Actions

Also available in: Atom PDF