Code Monkey home page Code Monkey logo

minify-meka's Introduction

minify-meka

Tool for reducing Meka to a minimal subset of classes.

Command-line help

When using -h or --help you get the following help screen:

usage: com.github.fracpete.minify.Meka
       [-h] --java-home JAVAHOME --classes CLASSES
       [--additional ADDITIONAL] --input INPUT --output OUTPUT [--test]
       packages [packages ...]

positional arguments:
  packages               The packages to keep, eg 'meka'.

optional arguments:
  -h, --help             show this help message and exit
  --java-home JAVAHOME   The java home directory  of  the JDK that includes
                         the jdeps binary, default  is taken from JAVA_HOME
                         environment variable.
  --classes CLASSES      The file containing the  classes  to determine the
                         dependencies for. Empty  lines  and lines starting
                         with # get ignored.
  --additional ADDITIONAL
                         The file  with  additional  class  names  to  just
                         include.
  --input INPUT          The directory with the  pristing build environment
                         in.
  --output OUTPUT        The  directory  for  storing  the  minified  build
                         environment in.
  --test                 Optional   testing   of    the    minified   build
                         environment.

Example

Classes to include (classes.txt):

meka.classifiers.multilabel.BR

Command-line for generating a minified version of Meka:

java com.github.fracpete.minify.Meka
  --java-home /somepath/jdk/jdk1.8.0_144-64bit \
  --input /someplace/meka/ \
  --output /elsewhere/mekaout/ \
  --classes /elsewhere/classes.txt \
  meka

Note: When compiling the minified version, either delete the maven-exec-plugin build tag or use -Dexec.skip=True

Maven

Use the following dependency in your pom.xml:

    <dependency>
      <groupId>com.github.fracpete</groupId>
      <artifactId>minify-meka</artifactId>
      <version>0.0.3</version>
    </dependency>

Releases

The bin directory of the zip file contains a batch file and a bash script for making execution easier.

minify-meka's People

Contributors

fracpete avatar

Watchers

James Cloos avatar thuzarwin avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.