Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMikhail Sennikovsky2007-05-11 07:44:50 -0400
committerMikhail Sennikovsky2007-05-11 07:44:50 -0400
commitd6dee0e045456e4fda0cbf477c3ee4babdb8fe71 (patch)
tree5906b4c9e8c3e5707aecf32e435c85d0a9715ce4 /core/org.eclipse.cdt.core/templateengine/org/eclipse/cdt/core/templateengine/process/processes
parent67c64bf32615e382343845c93a74fa60ca7d0263 (diff)
downloadorg.eclipse.cdt-d6dee0e045456e4fda0cbf477c3ee4babdb8fe71.tar.gz
org.eclipse.cdt-d6dee0e045456e4fda0cbf477c3ee4babdb8fe71.tar.xz
org.eclipse.cdt-d6dee0e045456e4fda0cbf477c3ee4babdb8fe71.zip
Patch from Bala Torati to [Bug 184390] [Template Engine] Hellow World templates should allow specifying the project source location
Diffstat (limited to 'core/org.eclipse.cdt.core/templateengine/org/eclipse/cdt/core/templateengine/process/processes')
-rw-r--r--core/org.eclipse.cdt.core/templateengine/org/eclipse/cdt/core/templateengine/process/processes/CreateSourceFolder.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/core/org.eclipse.cdt.core/templateengine/org/eclipse/cdt/core/templateengine/process/processes/CreateSourceFolder.java b/core/org.eclipse.cdt.core/templateengine/org/eclipse/cdt/core/templateengine/process/processes/CreateSourceFolder.java
index bda5d6b94b..e992661eb1 100644
--- a/core/org.eclipse.cdt.core/templateengine/org/eclipse/cdt/core/templateengine/process/processes/CreateSourceFolder.java
+++ b/core/org.eclipse.cdt.core/templateengine/org/eclipse/cdt/core/templateengine/process/processes/CreateSourceFolder.java
@@ -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);

Back to the top