Volker - when I import this project and in Source files add hotspot/src, it all works for me on the Project View, Project node and the individual files, I have the same issue you reported about the Project View, directory nodes not having any version control menu available. This is with the version control folks so hopefully it can be sorted, as I commented in the bug, there's nothing we can do from teh plugin side.

Are there any other issues? Not sure what you mean by "it should consider all the files that are added as sourcefiles". From our standpoint if this is a custom project we really need to be told where to look for the sources, when the project is being imported, or am I missing something, which of course is entirely possible :)

JR

Volker Simonis wrote:
I think I found the problem. All the trouble is because the hotspot
makefile is not in the base hotspot directory, but in the hotspot/make
subdirectory. For some reason - in my eys this is a bug - NB only
considers files in the "Working Directory" which by default is the
directory which contains the Makefile. I think it sould consider all
the files that are added as sourcefiles (for Mercurail actions as well
as in the Files view).

What di you think?

If I change the Working directory to be "hotspot", the Mercurial
status report for the project works as expected ans also the "Files"
view displays all the source files that belong to the project. Only
the Mercurial action for directories is still missing, but this is
probaly another problem.

Volker

On 1/14/08, Volker Simonis <[EMAIL PROTECTED]> wrote:
Well, I'd say the sources are set up correctly. Here's what I've done:

New Project
 -> C/C++ Project from existing code
 -> Using an existing Makefile (choose jdk7/hotspot/make/Makefile)
 -> Build actions (no changes - let working directory be jdk7/hotspot/make)
 -> Source Files (There's an entry jdk7/hotspot/make, Add folder jdk7/hotspot/)
 -> Code assistance (no changes)
 -> Project name and Location (no changes)
 -> Finish

Behaviour as described:
- if status is called on the project, it only shows the new project
files. If I open a directory that contains changed files in the
project view, the file is correctly flagged as modified.
- no Mercurial entry on the directory context menu (it's available
only for the project and for singel files)

I've also tried several variations of the procedure described above
(first delete " jdk7/hotspot/make" and than add "jdk7/hotspot/" source
folder, add the "jdk7/hotspot/" source directory after the project was
created) unfortunately without any effect.

Maybe your obervation that the sources aren't picked up correctly is
right. I've just observed that in the Files view (Files tab next to
Projects tab) doesn't show the sources either (just the ones from the
jdk/hotspot/make subdirectory). Shouldn't the File view show all the
source files that belong to the project?

Volker

On 1/11/08, john rice <[EMAIL PROTECTED]> wrote:
Volker - when you created your new Project are the Project sources set
up coorectly in the Project Properties. It sounds like we are not
picking up the OpenJDK sources, but we should if it's been set in the
Project properties.

Off for the weekend, but we'll take a look at it on Monday.

JR

Kelly O'Hair wrote:
Not sure what this problem is, maybe John or Padraig will know.

-kto

Volker Simonis wrote:
I've just done a fresh clone of
http://hg.openjdk.java.net/jdk7/jdk7/hotspot
from within NB and created a fresh C++ project out of the files.
Unfortunately
it still doesn't work - the same behaviour as described below.

Any advice?

Volker

On 1/11/08, Volker Simonis <[EMAIL PROTECTED]> wrote:
The problem is that I only have the "Mercurial" entry in the context
menu, if I choos the whole project (the top-most entry in the
project view).
And if I choose it, I get just the newly added project files, but not
the changed
ones. If I choose the context menue on a directory in the project view,
I don't even get a Mercurial entry!

On 1/11/08, Kelly O'Hair <[EMAIL PROTECTED]> wrote:
Try selecting the entire project in the Projects window, then ask
for Status.
It's sensitive to the directory that's selected.

-kto

Volker Simonis wrote:
Hi,

I just started to use NetBeans for OpenJDK HotSpot development and
I have some
questions related to the Mercurial support in NetBeans:

I created a new C++ Project from the OpenJDK sources that I'd
already fetched
on the command line with Mercurial (only jdk7/hotspot workspace).
In NB, if I
right-click the project and select Mercurial->Status the status
windows only
displays the new NB project files, but not the other changed
files. If I open
a directory in the project view that contains such a changed file,
this file
is correctly highlighted and flagged as "Modified". I can also call
"Mercurial->diff"
on a file and it works fine, but not on a directory. If I use the
command line
"hg diff" in the specific directory, this works fine.

Why does the "Status" command doesn't show the changed files?

And why isn't it possible to call "Status" or "Diff" on a
directory in the
project view? They only work for the whole project or for a single
file.

I use:
- mercurial 0.9.5 with the forest extension
- NetBeans 6.0
  Product Version: NetBeans IDE 6.0 (Build 200711261600)
  Java: 1.6.0_02; Java HotSpot(TM) Client VM 1.6.0_02-b05
  System: Linux version 2.6.5-7.283-bigsmp running on i386; UTF-8;
en_US (nb)
- Mercurial plugin 1.4.3.42.1

Default-pull=http://hg.openjdk.java.net/jdk7/jdk7//hotspot
Default-push=http://hg.openjdk.java.net/jdk7/jdk7//hotspot

If I do a "Mercurial->Update" I get:

Mercurial Pull
----------------
comparing with http://hg.openjdk.java.net/jdk7/jdk7//hotspot
searching for changes
no changes found
INFO Pull From: http://hg.openjdk.java.net/jdk7/jdk7//hotspot
INFO To:        HotSpot.nb -
/net/sapmnt.hs0131.q_hs0131/dXXXXXX/OpenJDK/jdk7/hotspot
INFO: End of Mercurial Pull

"/net/sapmnt.hs0131.q_hs0131/dXXXXXX/OpenJDK/jdk7/hotspot" is the
OpenJDK hotspot directory which I've cloned. It contains the NB
project directory "HotSpot.nb" Does this look ok or have I missed
something?

Thanks for your support,
Volker Simonis

Reply via email to