toolsetTools.addAll(toolSetsMap.get(key));
for (String t1 : toolsetTools) {
StringTokenizer tt1 = new StringTokenizer(t1);
String toolId1 = tt1.nextToken();
String toolKey1 = toolId1 + '/' + serviceName;
ToolDescription toolDesc = toolMap.get(toolKey1);
MasterToolContext toolCtx;
if (toolDesc != null) {
toolCtx = new MasterToolContext(t1, ctx,
toolDesc);
} else {
toolDesc = toolMap.get(toolId1);
if (toolDesc != null) {
toolCtx = new MasterToolContext(
t1, ctx, toolDesc);
activeDeployments.add(
toolDesc.getLocationType() +
File.separator +
toolDesc.getLocation());
} else {
//logger.info("No Tool Description for tool: " + t1);
logger.fine("No Tool Description for tool: "
+ t1 +" ,so it's a command line tool");
toolCtx = new MasterToolContext(
t1, ctx, null);
}
}
if (toolCtx != null) {
toolList.add(toolCtx);
}
}
}
}
// Analyze the list of tools for toolset references.
for (String tool : tools) {
StringTokenizer tt = new StringTokenizer(tool);
String toolId = tt.nextToken();
String toolKey = toolId + '/' + serviceName;
Set<String> toolsetTools = new LinkedHashSet<String>();
if (toolSetsMap.containsKey(toolKey)) {
toolsetTools.addAll(toolSetsMap.get(toolKey));
for (String t1 : toolsetTools) {
StringTokenizer tt1 = new StringTokenizer(t1);
String toolId1 = tt1.nextToken();
String toolKey1 = toolId1 + '/' + serviceName;
ToolDescription toolDesc = toolMap.get(toolKey1);
MasterToolContext toolCtx;
if (toolDesc != null) {
toolCtx = new MasterToolContext(t1, ctx, toolDesc);
} else {
toolDesc = toolMap.get(toolId1);
if (toolDesc != null) {
toolCtx = new MasterToolContext(
t1, ctx, toolDesc);
} else {
logger.fine("No Tool Description for tool: "
+ t1 +
" ,so it's a command line tool");
toolCtx = new MasterToolContext(
t1, ctx, null);
}
}
if (toolCtx != null) {
toolList.add(toolCtx);
}
}
} else {
ToolDescription toolDesc = toolMap.get(toolKey);
MasterToolContext toolCtx;
if (toolDesc != null) {
toolCtx = new MasterToolContext(tool, ctx, toolDesc);
} else {
toolDesc = toolMap.get(toolId);