@@ -185,14 +185,27 @@ public static void convertToArduinoProject(IProject project, IProgressMonitor mo
185
185
public static IProject createArduinoProject (String projectName , URI projectURI , BoardDescription boardDescriptor ,
186
186
CodeDescription codeDesc , CompileDescription compileDescriptor , IProgressMonitor monitor ) {
187
187
return createArduinoProject (projectName , projectURI , boardDescriptor , codeDesc , compileDescriptor ,
188
- new OtherDescription (), monitor );
188
+ new OtherDescription (),AutoBuildProject .INTERNAL_BUILDER_ID , monitor );
189
+ }
190
+
191
+ public static IProject createArduinoProject (String projectName , URI projectURI , BoardDescription boardDescriptor ,
192
+ CodeDescription codeDesc , CompileDescription compileDescriptor ,String builderName ,
193
+ IProgressMonitor monitor ) {
194
+ return createArduinoProject (projectName , projectURI , boardDescriptor , codeDesc , compileDescriptor ,
195
+ new OtherDescription (),builderName , monitor );
196
+ }
197
+ public static IProject createArduinoProject (String projectName , URI projectURI , BoardDescription boardDescriptor ,
198
+ CodeDescription codeDesc , CompileDescription compileDescriptor , OtherDescription otherDesc ,
199
+ IProgressMonitor monitor ) {
200
+ return createArduinoProject (projectName , projectURI , boardDescriptor , codeDesc , compileDescriptor ,
201
+ otherDesc ,AutoBuildProject .INTERNAL_BUILDER_ID , monitor );
189
202
}
190
203
191
204
/*
192
205
* Method to create a project based on the board
193
206
*/
194
- public static IProject createArduinoProject (String projectName , URI projectURI , BoardDescription boardDescriptor ,
195
- CodeDescription codeDesc , CompileDescription compileDescriptor , OtherDescription otherDesc ,
207
+ public static IProject createArduinoProject (String projectName , URI projectURI , BoardDescription boardDescriptor ,
208
+ CodeDescription codeDesc , CompileDescription compileDescriptor , OtherDescription otherDesc ,String builderName ,
196
209
IProgressMonitor monitor ) {
197
210
198
211
String realProjectName = makeNameCompileSafe (projectName );
@@ -210,7 +223,7 @@ public void run(IProgressMonitor internalMonitor) throws CoreException {
210
223
IProjectType projectType = AutoBuildManager .getProjectType (LATEST_EXTENSION_POINT_ID ,
211
224
LATEST_EXTENSION_ID , PROJECT_ID , true );
212
225
newProjectHandle = AutoBuildProject .createProject (realProjectName , projectURI , projectType ,
213
- CCProjectNature .CC_NATURE_ID , codeDesc , buildTools , true , internalMonitor );
226
+ builderName , CCProjectNature .CC_NATURE_ID , codeDesc , buildTools , true , internalMonitor );
214
227
215
228
String rootCodeFolder = codeDesc .getCodeFolder ();
216
229
// Add the sketch code
0 commit comments