blob: bf745ac179f61b4fb442753ed5363820d8fe02e1 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
/*******************************************************************************
* Copyright (C) 2006, 2010 Siemens AG.
*
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*******************************************************************************/
package org.eclipse.cdt.managedbuilder.core.tests;
import org.eclipse.cdt.managedbuilder.core.IOption;
import org.eclipse.cdt.managedbuilder.core.ITool;
import org.eclipse.core.runtime.IPath;
import org.eclipse.core.runtime.Path;
/**
* This path converter will be used to test that a conversion actually takes place.
* It is referenced from the tool pathconvertertest.config.tcyy.toyy.toolchain.tool
* in the test projecttype.<br>
* The tool pathconvertertest.config.tcyy.toyy.toolchain.tool inherits a path option
* from the pathconvertertest.convertingtool tool. The include path option has the
* intentionally strange value file:///usr/local/include.
* The "file://" part gets stripped away to satisfy the test.
*/
public class TestPathConverter4 extends TestPathConverter1 {
/* (non-Javadoc)
* @see org.eclipse.cdt.managedbuilder.core.tests.TestPathConverter1#convertToPlatformLocation(java.lang.String)
*/
@Override
public IPath convertToPlatformLocation(String toolSpecificPath, IOption option, ITool tool) {
String convertedString = toolSpecificPath.substring("file://".length());
IPath path = new Path(convertedString);
return path;
}
}
|