Hi,
I've just implemented support for adding module version and main
class. There is pull request[1] and comments and suggestions are more
than welcome. The following excerpt from the test showcase how you can
add module version and main class to a modular JAR fie:
JarArchiver archiver = new JarArchiver();
archiver.setDestFile( jarFile );
archiver.addDirectory( new File( "src/test/resources/java-module" ) );
ModuleConfiguration moduleConfiguration = new ModuleConfiguration();
moduleConfiguration.setVersion( "1.0.0" );
moduleConfiguration.setMainClass( "com.example.app.Main" );
archiver.setModuleConfiguration( moduleConfiguration );
archiver.createArchive();
Regards,
Plamen Totev
[1] https://github.com/codehaus-plexus/plexus-archiver/pull/75
On Wed, Sep 6, 2017 at 10:03 PM, Plamen Totev <[email protected]> wrote:
> Hi,
>
> I've started working on this one. Unfortunately I don't have as much
> free time as I expected so the progress is a bit slow. With the
> release date of Java 9 approaching I hope this does not block any
> other release.
>
> I've just pushed my implementation [1]. It's not fully ready yet as
> there are no tests and Java Docs. The commit messages should be more
> detailed as well. But all changes to the API and the work on
> implementing the functionality are done so if you want you can take a
> look. Any comments and suggestions are welcome. I'll continue with the
> tests next week.
>
> Regards,
> Plamen Totev
>
>
> [1]
> https://github.com/codehaus-plexus/plexus-archiver/compare/master...plamentotev:module-version-and-main-class
>
> On Wed, Aug 30, 2017 at 8:32 AM, Plamen Totev <[email protected]>
> wrote:
>> Hi Robert,
>>
>>>
>>> I've started a bit with it, but no success yet:
>>> https://mail.ow2.org/wws/arc/asm/2017-08/msg00004.html
>>>
>>> Even after the suggestions from Remi no success yet.
>>> I was hoping for a fast fix, but it'll take more time and other things are
>>> waiting as well.
>>> Would be great if you can pick it up from here.
>>
>> Yes, I will. Thanks for the starting point. I took a look at the asm
>> API, the class file format and the jar tool implementation so I should
>> be able to continue from here.
>>
>> Regards,
>> Plamen Totev
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]