Skip to content

The simple lightweight Java library for reading manifest meta-information

Notifications You must be signed in to change notification settings

Terentich/MetaJ

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MetaJ

Description

The simple java library for reading manifest meta-information.

Requirements

It needs a Java Virtual Machine of at least version 1.6 (Java SE 6.0). If you want to build the jar from source, you will also need Maven.

Usage

Just add these lines into your Maven's project file:

<dependency>
    <groupId>com.github.terentich</groupId>
    <artifactId>metaj</artifactId>
    <version>1.0</version>
</dependency>

Example

The file 'src/test/java/Main.java' contains base example:

import java.io.IOException;

public class Main {
    public static void main(String[] args) throws IOException {
        MetaReader reader = new MetaReader(Main.class);
        System.out.println(reader);
        System.out.println("Archiver version: " + reader.getArchiverVersion());
        System.out.println("Build-Jdk: " + reader.getBuildJdk());
        System.out.println("Built-By: " + reader.getBuiltBy());
        System.out.println("Classpath: " + reader.getClasspath());
        System.out.println("Created-By: " + reader.getCreatedBy());
        System.out.println("Impl title: " + reader.getImplementationTitle());
        System.out.println("Impl vendorId: "
                + reader.getImplementationVendorId());
        System.out
                .println("Impl version: " + reader.getImplementationVersion());
        System.out.println("Mainclass: " + reader.getMainClass());
        System.out.println("Manifest version: " + reader.getManifestVersion());
        System.out.println("Spec title: " + reader.getSpecificationTitle());
        System.out.println("Spec version: " + reader.getSpecificationVersion());

        System.out.println("Impl timestamp: "
                + reader.getImplementationTimestamp());
    }
}

License

The MetaJ library publish under the Apache Software License, Version 2.0.

Continuous Integration

Last build status on Travis CI:

Build Status

About

The simple lightweight Java library for reading manifest meta-information

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages