For JEP 330/458, is there anyway to separate output of compilation vs run?

David Alayachew davidalayachew at gmail.com
Sun Feb 25 20:53:17 UTC 2024


I think I answered half of my question.

It apoears that the way to do anything programmatically in Java is via
ProcessBuilder (in the worst case), and then a handful of tools (jar,
jlink, jpackage, etc.) have dedicated modules in the standard library
provided via a ToolPprpvider that allow you to get a slightly more
ergonomic grasp of the tool. Once you have that, executing the tasks
programmatically is not hard.

However, I don't see how to separate the compile text from the runtime
text. Is that just something I miss out on by otpting into this feature? If
so, I accept that, but would appreciate some confirmation so that I know
that this is a dead end.



On Sat, Feb 24, 2024, 1:52 AM David Alayachew <davidalayachew at gmail.com>
wrote:

> Hello Compiler/Amber Dev Team,
>
> For JEP 330 and 458 (Running Single and Multi file source code programs),
> is there any way to separate the output of compilation from the output of
> the run?
>
> And as a side question, how would one go about executing single/multi file
> source code programs programmatically?
>
> Thank you for your time and help!
> David Alayachew
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/compiler-dev/attachments/20240225/426461b7/attachment.htm>


More information about the compiler-dev mailing list