|
Quick Lists
|
|
Bug ID:
|
6654458
|
|
Votes
|
0
|
|
Synopsis
|
/java/devtools findbugs doesn't work on windows
|
|
Category
|
java:build
|
|
Reported Against
|
|
|
Release Fixed
|
7(b25)
|
|
State
|
10-Fix Delivered,
bug
|
|
Priority:
|
4-Low
|
|
Related Bugs
|
6602510
,
6608613
|
|
Submit Date
|
24-JAN-2008
|
|
Description
|
The findbugs installation is platform independent (findbugs is written in java) but the command line startup script for it doesn't seem to work on windows. This may relate to the problem with ant running on windows, but ant got happy when ANT_+HOME was set in the environment. Setting FINDBUGS_HOME doesn't seem to help in this case. The findbugs.bat file starts up the GUI, which isn;t what we want.
Not sure if it might work with cygwin, but it does not work with MKS, maybe that's the issue? In which case, maybe at some point this problem won't matter?
Posted Date : 2008-01-24 01:13:19.0
After I sorted out setting ANT_HOME and FINDBUGS_HOME for my windows-i586 builds,
I find the build stopped cold, waiting for this process to return:
2416 0:03 "javaw.exe" "-Dfindbugs.home=g:/martin/devtools/share/findbugs/findbugs-1.2.1" -Xmx384m -jar "g:/martin/devtools/share/findbugs/findbugs-1.2.1\lib\findbugsGUI.jar" "-version"
These Windows builds run over ssh->cygwin->MKS so there is nothing remotely
like a 'desktop' in the loop.
j2se/make/common/shared/Sanity.gmk line 113 looks like this:
_FINDBUGS_VER :=$(shell $(FINDBUGS) -version 2>&1 )
I would like to add -textui, so it looks like this:
_FINDBUGS_VER :=$(shell $(FINDBUGS) -textui -version 2>&1 )
*** (#1 of 1): 2007-09-24 16:06:36 PDT xxxxx@xxxxx
Posted Date : 2008-03-07 00:02:06.0
On windows, with no findbugs/ant installed
WARNING: The version of findbugs being used is older than
the required version of '1.1'.
The version of findbugs found was '/bin/pwd: not found The path , which is where I think FindBugs is located, does not seem to be a directory.'.
*** (#1 of 1): 2007-09-07 17:42:13 PDT xxxxx@xxxxx
Posted Date : 2008-03-07 00:04:42.0
|
|
Work Around
|
N/A
|
|
Evaluation
|
FINDBUGS_HOME needs to be exported
Posted Date : 2008-03-06 23:01:26.0
And -javahome supplied and -testui.
But even then, the MKS situation is a problem with findbugs, may have to be explicit findbugs.bat?
Posted Date : 2008-03-13 01:24:49.0
diff --git a/make/common/shared/Sanity.gmk b/make/common/shared/Sanity.gmk
--- a/make/common/shared/Sanity.gmk
+++ b/make/common/shared/Sanity.gmk
@@ -106,11 +106,11 @@ BOOT_VER :=$(call GetVersion,"$(_BOOT_
BOOT_VER :=$(call GetVersion,"$(_BOOT_VER)")
REQUIRED_ANT_VER := 1.6.3
-_ANT_VER :=$(shell $(ANT) -version 2>&1 )
+_ANT_VER :=$(shell JAVACMD="$(BOOTDIR)/bin/java" ANT_HOME="$(ANT_HOME)" $(ANT) -version 2>&1 )
ANT_VER :=$(call GetVersion,"$(_ANT_VER)")
REQUIRED_FINDBUGS_VER := 1.1
-_FINDBUGS_VER :=$(shell $(FINDBUGS) -version 2>&1 )
+_FINDBUGS_VER :=$(shell FINDBUGS_HOME="$(FINDBUGS_HOME)" $(FINDBUGS) -javahome "$(BOOTDIR)" -textui -version 2>&1 )
FINDBUGS_VER :=$(call GetVersion,"$(_FINDBUGS_VER)")
ifdef ALT_BINDIR
Posted Date : 2008-03-13 01:30:40.0
http://hg.openjdk.java.net/jdk7/build/jdk/rev/e98ce66d7630
Posted Date : 2008-03-18 19:34:31.0
|
|
Comments
|
PLEASE NOTE: JDK6 is formerly known as Project Mustang
|
|
|
 |