jextract to write classifies if a directory is specified with -o
Sundararajan Athijegannathan
sundararajan.athijegannathan at oracle.com
Wed Mar 7 02:24:00 UTC 2018
I think it is clear to have two different options. I'd suggest the
following:
-f
to produce jar file (consistent with jar -cvf...). i.e., renaming
existing -o to be -f.
-d
to produce .class files in a directory (consistent with javac's -d
for directory)
-Sundar
On 06/03/18, 10:08 PM, Henry Jen wrote:
> Yup, we can do that too. I thought of that, but feels like have both options are redundant. But perhaps sometimes we do want to have both.
>
> Cheers,
> Henry
>
>
>> 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.
>>
>> -Sundar
>>
>> On 06/03/18, 9:40 PM, Henry Jen wrote:
>>> Hi,
>>>
>>> jextract use -o options to specify output file, typically a jar file is created.
>>>
>>> Developer may want to have class files rather than get an jar file and extract it for some reason, like to package with other libraries or more “civilized” API on top of native API.
>>>
>>> This webrev[1] enable to write class files if a directory is specified as destination instead of getting an error.
>>>
>>> [1] http://cr.openjdk.java.net/~henryjen/panama/buildClasses/webrev/
>>>
>>> Cheers,
>>> Henry
More information about the panama-dev
mailing list