/** *Callsthejavaptoolwiththeargumentsascurrentlyconfigured. *@returnaResultobjectindicatingtheoutcomeofthetask *andthecontentofanyoutputwrittentostdout,stderr,orthe *mainstream. *@throwsTaskErroriftheoutcomeofthetaskisnotasexpected.
*/
@Override public Task.Result run() {
List<String> args = new ArrayList<>(); if (options != null)
args.addAll(options); if (classpath != null) {
args.add("-classpath");
args.add(classpath);
} if (classes != null)
args.addAll(classes);
AbstractTask.WriterOutput direct = new AbstractTask.WriterOutput(); // These are to catch output to System.out and System.err, // in case these are used instead of the primary streams
AbstractTask.StreamOutput sysOut = new AbstractTask.StreamOutput(System.out, System::setOut);
AbstractTask.StreamOutput sysErr = new AbstractTask.StreamOutput(System.err, System::setErr);
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.