This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | bin/domake.sh not found correctly | ||
---|---|---|---|
Product: | obsolete | Reporter: | Jesse Glick <jglick> |
Component: | cpp | Assignee: | _ gordonp <gordonp> |
Status: | RESOLVED FIXED | ||
Severity: | blocker | Keywords: | ARCH |
Priority: | P2 | ||
Version: | 3.x | ||
Hardware: | PC | ||
OS: | Linux | ||
Issue Type: | DEFECT | Exception Reporter: | |
Bug Depends on: | 28683 | ||
Bug Blocks: | 27151 |
Description
Jesse Glick
2002-11-11 22:33:14 UTC
BTW simply to solve the #27151 side would look like this: if (Utilities.isUnix()) { commandInterpreter = System.getProperty("netbeans.home") + "/bin/domake.sh"; // NOI18N + if (!new File(commandInterpreter).isFile()) { + String nbdirs = System.getProperty("netbeans.dirs"); + if (nbdirs != null) { + StringTokenizer tok = new StringTokenizer(nbdirs, File.pathSeparator); + while (tok.hasMoreTokens()) { + File f = new File(new File(tok.nextToken(), "bin"), "domake.sh"); // NOI18N + if (f.isFile()) { + commandInterpreter = f.getAbsolutePath(); + break; + } + } + } + } commandLine = getMakeCommand() + line; } else { // I am NOT a windows programmer and the following is very unlikely to work. Finally, please consider deleting the (apparently unused) key "NBDIR" from CCFSrcLoader.CCFFormat, as its value can be considered close to meaningless if you do not know where cpp.nbm was installed. Issue #28683 suggests a more general solution (needed only if doMake.sh cannot just be removed). The lookup for domake.sh now uses InstalledFileLocator. In the release35 branch? Please double-check the target milestone. |