mirror of
https://github.com/arduino/Arduino.git
synced 2025-02-26 20:54:22 +01:00
always print avrdude output
change to port 80
This commit is contained in:
parent
11db302b3e
commit
20cfa72ee7
@ -15,8 +15,6 @@ import java.io.IOException;
|
|||||||
import java.util.regex.Matcher;
|
import java.util.regex.Matcher;
|
||||||
import java.util.regex.Pattern;
|
import java.util.regex.Pattern;
|
||||||
|
|
||||||
import static processing.app.I18n._;
|
|
||||||
|
|
||||||
public class HttpUploader extends Uploader {
|
public class HttpUploader extends Uploader {
|
||||||
|
|
||||||
private static final Pattern IPV4_ADDRESS = Pattern.compile("(\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3})");
|
private static final Pattern IPV4_ADDRESS = Pattern.compile("(\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3})");
|
||||||
@ -67,20 +65,16 @@ public class HttpUploader extends Uploader {
|
|||||||
throw new RunnerException(e);
|
throw new RunnerException(e);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (statusCode == HttpStatus.SC_OK) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
System.err.println(post.getResponseBodyAsString());
|
System.err.println(post.getResponseBodyAsString());
|
||||||
return false;
|
return statusCode == HttpStatus.SC_OK;
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
throw new RunnerException(e);
|
throw new RunnerException(e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
protected PostMethod newPostMethod() {
|
protected PostMethod newPostMethod() {
|
||||||
return new PostMethod("http://" + ipAddress + ":6571/upload");
|
return new PostMethod("http://" + ipAddress + "/upload");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
x
Reference in New Issue
Block a user