mirror of
https://github.com/arduino/Arduino.git
synced 2025-03-13 10:29:35 +01:00
Added sketch structure check to the build method of Compile.
This commit is contained in:
parent
5db851cf9f
commit
1c8a4e9f58
@ -83,6 +83,10 @@ public class Compiler implements MessageConsumer {
|
||||
private ProgressListener progressListener;
|
||||
|
||||
static public String build(SketchData data, String buildPath, File tempBuildFolder, ProgressListener progListener, boolean verbose) throws RunnerException {
|
||||
if (!SketchData.checkSketchFile(data.getPrimaryFile()))
|
||||
BaseNoGui.showError(_("Bad file selected"),
|
||||
_("Bad sketch primary file or bad sketck directory structure"), null);
|
||||
|
||||
String primaryClassName = data.getName() + ".cpp";
|
||||
Compiler compiler = new Compiler(data, buildPath, primaryClassName);
|
||||
File buildPrefsFile = new File(buildPath, BUILD_PREFS_FILE);
|
||||
|
Loading…
x
Reference in New Issue
Block a user