Git Product home page Git Product logo

dwtj_rules_java's People

Contributors

dwtj avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

saiskee

dwtj_rules_java's Issues

Gracefully handle cases where no class files are generated by javac

Here's one way to make no class files be generated by the javac invocation:

dwtj_java_binary(
    name = "useless_binary",
    srcs = ["EmptyFile.java"],
)

where EmptyFile.java is empty. This currently results in a rather unhelpful error saying that an internal temporary directory for class files doesn't exist.

This is admittedly a very rare case to handle. But making this more robust might help prevent problems with some other less silly cases.

This might be related to #3.

Consider making `java_import` targets executable

Some JARs are "executable" in the sense that they can be run directly with java -jar. This is supported by setting a main class in the JAR's manifest file.

It may be convenient to be able to run such JARs using bazel run. The java_import rule could support this. An executable boolean attribute could be added to the rule to let the user indicate whether a JAR is in fact executable.

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.