[jbosstools-issues] [JBoss JIRA] (JBIDE-26148) CommandLocationBinary: only searches once
Andre Dietisheim (JIRA)
issues at jboss.org
Fri Jun 29 16:19:00 EDT 2018
[ https://issues.jboss.org/browse/JBIDE-26148?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andre Dietisheim updated JBIDE-26148:
-------------------------------------
Description:
CommandLocationBinary allows to lookup a command. But it'll only do so once:
{code:title=CommandLocationBinary}
public String findLocation(int timeout) {
if (foundLoc != null || searchFailed)
return foundLoc;
String searched = CommandLocationLookupStrategy.get().search(this, timeout);
if (searched == null) {
searchFailed = true;
}
foundLoc = searched;
return searched;
}
{code}
Once the lookup failed, it'll store this in the var *searchFailed* and wont do it a 2nd time.
What if I update my PATH while I keep Eclipse running?
was:
CommandLocationBinary allows to lookup a command. But it'll only do so once:
{code}
public String findLocation(int timeout) {
if (foundLoc != null || searchFailed)
return foundLoc;
String searched = CommandLocationLookupStrategy.get().search(this, timeout);
if (searched == null) {
searchFailed = true;
}
foundLoc = searched;
return searched;
}
{code}
Once the lookup failed, it'll store this in the var *searchFailed* and wont do it a 2nd time.
What if I update my PATH while I keep Eclipse running?
> CommandLocationBinary: only searches once
> -----------------------------------------
>
> Key: JBIDE-26148
> URL: https://issues.jboss.org/browse/JBIDE-26148
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: openshift
> Affects Versions: 4.6.0.AM3
> Reporter: Andre Dietisheim
> Assignee: Rob Stryker
>
> CommandLocationBinary allows to lookup a command. But it'll only do so once:
> {code:title=CommandLocationBinary}
> public String findLocation(int timeout) {
> if (foundLoc != null || searchFailed)
> return foundLoc;
> String searched = CommandLocationLookupStrategy.get().search(this, timeout);
> if (searched == null) {
> searchFailed = true;
> }
> foundLoc = searched;
> return searched;
> }
> {code}
> Once the lookup failed, it'll store this in the var *searchFailed* and wont do it a 2nd time.
> What if I update my PATH while I keep Eclipse running?
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
More information about the jbosstools-issues
mailing list