jextract to write classifies if a directory is specified with -o
Maurizio Cimadamore
maurizio.cimadamore at oracle.com
Wed Mar 7 09:31:42 UTC 2018
Javac does not support this feature. And, I think if it did, it would
safe to assume that it would use a different option than -d, which comes
with a significant JavaFileManager baggage. I'd probably see it more as
a post-processing step which, after placing your classfiles in the -d
folder, it would also generate a jarfile where you want it to be (to
mimic how users typically do it by piping multiple shell commands).
On a related point, while javac doesn't have a 'jar' mode, the VM
launcher does - and that option is called '-jar'. Any reason as why we
can't reuse that name here?
Maurizio
On 07/03/18 03:42, John Rose wrote:
> +1 BTW, can javac emit its results directly to a jar? If it did,
> what would that look like?
>
> On Mar 6, 2018, at 8:36 AM, Sundararajan Athijegannathan <sundararajan.athijegannathan at oracle.com> wrote:
>> I wonder if we should have -d (for directory) option for directory for output. That would make it consistent with other tools like javac. With -d, we can create directory if it does not exist.
More information about the panama-dev
mailing list