-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/runtime exec #21
Conversation
4cf8a55
to
c1b4214
Compare
It is missing license in all new files |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this legal? we have a package starting with java.nio.*
@ricardobna made some changes, could you review them? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
check my comments
Adding Runtime and Proccess on Java side and Runtime and cpproc on c side, cpproc is responsible to execute the command and Runtime is responsible to make the Streams and make the Proccess to be returned.
Trying this to see if I can get access to the InputStream on java
Also implementing some exceptions to those functions.
This change was made so It's easier to deallocate the char pointers used to pass the command, path and environment arrays to cpproc_forkAndExec
…Impl4D.java removing leftover from bytebuffer support Co-authored-by: flsobral <flsobral@gmail.com>
…eBuffer to byteArray for better readability
f1e5b04
to
8eb230b
Compare
…MakeLists on android
* Adding Runtime.exec Adding Runtime and Proccess on Java side and Runtime and cpproc on c side, cpproc is responsible to execute the command and Runtime is responsible to make the Streams and make the Proccess to be returned. * FileInputChannel implementation * Creating FileInputStream and and returning the Proccess with it * Fixing stream to use byte array instead of ByteBuffer on java side * Binding OutputStream and ErrorStream * Set file descriptors to the value returned from cpproc_forkAndExec * OutputStream and ErrorStream * Calling cpproc_forAndExec with correct values * Fixing malloc and strings * Testing with filePath NULL * Runtime.exec working without path. * Updating Runtime interface and adding filePath to Runtime.c * Forgotten chdir * Adding exitValue, waitFor and destroy. * Changing memory allocation to heap on Runtime and fixing some exceptions This change was made so It's easier to deallocate the char pointers used to pass the command, path and environment arrays to cpproc_forkAndExec Co-authored-by: flsobral <flsobral@gmail.com> * Adding exception to reads with error value on return and changing byteBuffer to byteArray for better readability * Adding exception to windows, android and iOS and adding the file to CMakeLists on android Co-authored-by: Allan C <acmlira@gmail.com> Co-authored-by: flsobral <flsobral@gmail.com>
* Adding Runtime.exec Adding Runtime and Proccess on Java side and Runtime and cpproc on c side, cpproc is responsible to execute the command and Runtime is responsible to make the Streams and make the Proccess to be returned. * FileInputChannel implementation * Creating FileInputStream and and returning the Proccess with it * Fixing stream to use byte array instead of ByteBuffer on java side * Binding OutputStream and ErrorStream * Set file descriptors to the value returned from cpproc_forkAndExec * OutputStream and ErrorStream * Calling cpproc_forAndExec with correct values * Fixing malloc and strings * Testing with filePath NULL * Runtime.exec working without path. * Updating Runtime interface and adding filePath to Runtime.c * Forgotten chdir * Adding exitValue, waitFor and destroy. * Changing memory allocation to heap on Runtime and fixing some exceptions This change was made so It's easier to deallocate the char pointers used to pass the command, path and environment arrays to cpproc_forkAndExec Co-authored-by: flsobral <flsobral@gmail.com> * Adding exception to reads with error value on return and changing byteBuffer to byteArray for better readability * Adding exception to windows, android and iOS and adding the file to CMakeLists on android Co-authored-by: Allan C <acmlira@gmail.com> Co-authored-by: flsobral <flsobral@gmail.com>
Exec method for Runtime class done.