1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 14:42:11 +02:00

Bug # 228018 : Resource Configuration for non-toolchain consumed file breaks build.

This commit is contained in:
Oleg Krasilnikov 2008-05-03 09:26:45 +00:00
parent be0117f55a
commit 4ea32ecc49

View file

@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2006, 2007 Intel Corporation and others.
* Copyright (c) 2006, 2008 Intel Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@ -604,15 +604,19 @@ public class BuildDescription implements IBuildDescription {
ToolInfoHolder h = null;
if(rcInfo instanceof IFileInfo){
IFileInfo fi = (IFileInfo)rcInfo;
tool = fi.getToolsToInvoke()[0];
String exts[] = tool.getAllInputExtensions();
String locString = location.toString();
for(int i = 0; i < exts.length; i++){
String e = exts[i];
if(locString.endsWith(e)){
inputType = tool.getInputType(e);
ext = e;
}
ITool[] tools = fi.getToolsToInvoke();
if(tools.length > 0 )
{
tool = fi.getToolsToInvoke()[0];
String exts[] = tool.getAllInputExtensions();
String locString = location.toString();
for(int i = 0; i < exts.length; i++){
String e = exts[i];
if(locString.endsWith(e)){
inputType = tool.getInputType(e);
ext = e;
}
}
}
} else {
h = getToolInfo(rc);