Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

ability to send input from netbeans to application

  • Loading branch information...
commit af6b39ba94a2e8fa7bf3408c54be785520b797b4 1 parent 90b6a8a
@basiliscus basiliscus authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/org/netbeans/gradle/project/tasks/GradleTasks.java
View
4 src/org/netbeans/gradle/project/tasks/GradleTasks.java
@@ -168,6 +168,7 @@ private static OutputRef configureOutput(
NbGradleProject project,
GradleTaskDef taskDef,
BuildLauncher buildLauncher,
+ Reader buildIn,
OutputWriter buildOutput,
OutputWriter buildErrOutput) {
@@ -195,6 +196,7 @@ private static OutputRef configureOutput(
buildLauncher.setStandardOutput(new WriterOutputStream(forwardedStdOut));
buildLauncher.setStandardError(new WriterOutputStream(forwardedStdErr));
+ buildLauncher.setStandardInput(new ReaderInputStream(buildIn));
return new OutputRef(forwardedStdOut, forwardedStdErr);
}
@@ -250,7 +252,7 @@ private static void doGradleTasksWithProgress(
printCommand(buildOutput, command, taskDef);
OutputRef outputRef = configureOutput(
- project, taskDef, buildLauncher, buildOutput, buildErrOutput);
+ project, taskDef, buildLauncher, ioRef.getIo().getIn(), buildOutput, buildErrOutput);
try {
ioRef.getIo().select();
buildLauncher.run();
Please sign in to comment.
Something went wrong with that request. Please try again.