CPD GUI fails to load directory in OSX Mavericks
A source code analyzer
Brought to you by:
adangel,
juansotuyo
Can't scan directory in OSX Mavericks.Can scan a single file. Offending code:
if (!(new File(rootDirectoryField.getText())).exists()) {
JOptionPane.showMessageDialog(frame,
"Can't read from that root source directory",
"Error",
JOptionPane.ERROR_MESSAGE);
return;
}
Reproduce:
Launch CPD from PMD in Eclipse.
Use file chooser to select a directory.
User receives this message: Can't read from that root source directory
done/broken.
Note, can choose a single file and scan it.
java -version
java version "1.6.0_65"
Java(TM) SE Runtime Environment (build 1.6.0_65-b14-462-11M4609)
Java HotSpot(TM) 64-Bit Server VM (build 20.65-b04-462, mixed mode)
Workaround, manually add the /
If hit "cancel", Eclipse dies.