Coder Social home page Coder Social logo

desugar_tool_exclude_script's Introduction

Instruction how to exclude tools for desugaring from bazel repository

Install bazel using binary installer follow instruction https://docs.bazel.build/versions/master/install.html . It's possible to compile bazel from source code, but it's require additional steps which are no convenient.

Clone bazel repository from https://github.com/bazelbuild/bazel.git to build everything without error, please checkout on some release version

Clone implementation of Java8 API's for previous Java versions from https://github.com/ihormartsekha-okta/desugar_jdk_libs.git

To exclude tools from bazel repository you should run follow commands:

npm install // install dependencies for script
node index.js -b "full path to bazel repository path" -d "Full path to desugar_jdk_libs repository path" -o "full path where to persist ready tools"

This script will persist following tools:

  • desugar java tool in ${output_folder}/desugar
  • implementation of java8 API's in ${output_folder}/inject/desugared_java8_legacy_libs.jar
  • shell script for desugaring jar files ${output_folder}/desugar.sh

To desugar any jar file you should do follow steps:

desugar.sh <output folder where persist desugar tool folвer> --input <source jar file> --output <output jar file> --classpath_entry <path to Jar file which --input Jar file is depends on  directly> --classpath_entry <> ... --bootclasspath_entry <path to jar file that was used to compile the --input Jar with, like javac's -bootclasspath_entry flag (required)> --bootclasspath_entry <> ...

desugar_tool_exclude_script's People

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.