Closed rkoberg closed 7 years ago
I don't know what you are asking here.
run-sequence
just runs gulp tasks. Does the task run on it's own? Is there an error?
In your example above, you aren't ever calling the callback (// done()
), which means the sequence won't ever continue. If your tasks never complete, then the sequence never continues.
I tried with done()
uncommented as well. gulp-run
executes a command line java program. There is no error. I was assuming that the java process short circuits the gulp process and just ends it.
run-sequence
only runs gulp tasks. If the program exits due to the task, then there's nothing here related to this library.
As long as gulp-run
is forking the Java process, it's unlikely that it's killing the task. After quickly looking at the gulp-run
library, it looks like you are using it incorrectly. It's clearly designed to be returned directly as a stream, no need to use a callback at all. You should be able to just do something like:
return run(`…your command…`).exec()
.pipe(/* …delete the file… */);
OK, sorry for being dense (I originally was returning the stream). I was looking in the wrong place and was mistakenly focusing on the external process. It was another task running in parallel where I needed to use event-stream.merge where I was writing out multiple files. Closing...
I have a task that calls an external process, then the gulp sequence stops. Is this a bug or just a fact of life? For example, this will stop the sequence:
Also happens with calls to apache-ant (e.g.
ant some-build-task
)