dwtj / dwtj_rules_java Goto Github PK
View Code? Open in Web Editor NEWPrototype alternative Java rules for Bazel
Home Page: https://dwtj.github.io/dwtj_rules_java/
License: MIT License
Prototype alternative Java rules for Bazel
Home Page: https://dwtj.github.io/dwtj_rules_java/
License: MIT License
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.
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.
I suspect that this can probably be done by just modifying the rule's run shell script template to include a "$@"
at the end of the java
command invocation.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.