mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-01 14:15:23 +02:00
Patch from Bala Torati to [Bug 184390] [Template Engine] Hellow World templates should allow specifying the project source location
This commit is contained in:
parent
67c64bf326
commit
d6dee0e045
1 changed files with 3 additions and 0 deletions
|
@ -35,6 +35,7 @@ import org.eclipse.core.resources.ResourcesPlugin;
|
|||
import org.eclipse.core.runtime.CoreException;
|
||||
import org.eclipse.core.runtime.IPath;
|
||||
import org.eclipse.core.runtime.IProgressMonitor;
|
||||
import org.eclipse.core.runtime.Path;
|
||||
|
||||
|
||||
/**
|
||||
|
@ -99,6 +100,8 @@ public class CreateSourceFolder extends ProcessRunner {
|
|||
ICSourceEntry[] entries = config.getSourceEntries();
|
||||
Set set = new HashSet();
|
||||
for (int j=0; j < entries.length; j++) {
|
||||
if(new Path(entries[j].getValue()).segmentCount() == 1)
|
||||
continue;
|
||||
set.add(entries[j]);
|
||||
}
|
||||
set.add(newEntry);
|
||||
|
|
Loading…
Add table
Reference in a new issue