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

1. Patch from Bala Torati (Symbian) to the [Bug 184390] [Template Engine] Hellow World templates should allow specifying the project source location

2. enabling additional MBS tests
This commit is contained in:
Mikhail Sennikovsky 2007-05-25 16:12:08 +00:00
parent 3dfc3412a5
commit 094d2cb0ba
4 changed files with 10 additions and 5 deletions

View file

@ -56,7 +56,7 @@ public class AllManagedBuildTests {
// suite.addTest(ManagedBuildCoreTests20.suite());
// suite.addTest(ManagedBuildCoreTests.suite());
// suite.addTest(ManagedProjectUpdateTests.suite());
// suite.addTest(ManagedCommandLineGeneratorTest.suite());
suite.addTest(ManagedCommandLineGeneratorTest.suite());
// suite.addTest(ResourceBuildCoreTests.suite());
suite.addTest(ManagedProject21MakefileTests.suite());
suite.addTest(ManagedProject30MakefileTests.suite());

View file

@ -35,7 +35,7 @@
type="input"
default="%HelloWorld.sourceDir.default"
pattern="[a-zA-Z0-9]+"
mandatory="true"
mandatory="false"
persist="true"/>
</property-group>
@ -47,7 +47,7 @@
<process type="org.eclipse.cdt.core.CreateSourceFolder">
<simple name="projectName" value="$(projectName)"/>
<simple name="path" value="src"/>
<simple name="path" value="$(sourceDir)"/>
</process>
<process type="org.eclipse.cdt.core.AddFiles">
@ -55,7 +55,7 @@
<complex-array name="files">
<element>
<simple name="source" value="src/Basename.c"/>
<simple name="target" value="src/$(projectName).c"/>
<simple name="target" value="$(sourceDir)/$(projectName).c"/>
<simple name="replaceable" value="true"/>
</element>
</complex-array>

View file

@ -34,7 +34,6 @@
type="input"
default="%HelloWorld.sourceDir.default"
pattern="[a-zA-Z0-9]+"
mandatory="true"
persist="true"/>
</property-group>

View file

@ -48,6 +48,12 @@ public class CreateSourceFolder extends ProcessRunner {
}
protected void createSourceFolder(String projectName, String targetPath, IProgressMonitor monitor) throws ProcessFailureException {
//If the targetPath is an empty string, there will be no source folder to create.
// Also this is not an error. So just return gracefully.
if (targetPath == null || targetPath.equals("")) {
return;
}
IProject projectHandle = ResourcesPlugin.getWorkspace().getRoot().getProject(projectName);
if (!projectHandle.exists()) {