Comments (3)
Here is the example written in the doc:
prebuilt_jar(
name = 'junit',
binary_jar = 'junit-4.8.2.jar',
source_jar = 'junit-4.8.2-sources.jar',
javadoc_url = 'http://kentbeck.github.com/junit/javadoc/4.8/',
)
java_library(
name = 'tests',
srcs = glob(['tests/**/*Test.java']),
deps = [
':junit',
],
)
You probably would like to see http://facebook.github.io/buck/rule/prebuilt_jar.html
from buck.
Hi @BYVoid ,
I tried this already, i want to include the jar from my local system.
Have you tried the same from local path.
I tried and got the following error.
$ buck targets
java.lang.RuntimeException: Not an ordinary file: src/com/test/common/libs/httpmime-4.1.1.jar
at com.facebook.buck.parser.BuildRuleFactoryParams.resolveFilePathRelativeToBuildFileDirectory(BuildRuleFactoryParams.java:146)
at com.facebook.buck.java.PrebuiltJarBuildRuleFactory.amendBuilder(PrebuiltJarBuildRuleFactory.java:36)
at com.facebook.buck.java.PrebuiltJarBuildRuleFactory.amendBuilder(PrebuiltJarBuildRuleFactory.java:25)
at com.facebook.buck.parser.AbstractBuildRuleFactory.newInstance(AbstractBuildRuleFactory.java:87)
at com.facebook.buck.parser.AbstractBuildRuleFactory.newInstance(AbstractBuildRuleFactory.java:32)
at com.facebook.buck.parser.Parser.parseRawRulesInternal(Parser.java:427)
at com.facebook.buck.parser.Parser.filterAllTargetsInProject(Parser.java:518)
at com.facebook.buck.parser.PartialGraph.createPartialGraph(PartialGraph.java:73)
at com.facebook.buck.parser.PartialGraph.createFullGraph(PartialGraph.java:57)
at com.facebook.buck.cli.TargetsCommand.runCommandWithOptionsInternal(TargetsCommand.java:99)
at com.facebook.buck.cli.TargetsCommand.runCommandWithOptionsInternal(TargetsCommand.java:56)
at com.facebook.buck.cli.AbstractCommandRunner.runCommandWithOptions(AbstractCommandRunner.java:120)
at com.facebook.buck.cli.AbstractCommandRunner.runCommand(AbstractCommandRunner.java:95)
at com.facebook.buck.cli.Command.execute(Command.java:95)
at com.facebook.buck.cli.Main.runMainWithExitCode(Main.java:271)
at com.facebook.buck.cli.Main.tryRunMainWithExitCode(Main.java:362)
at com.facebook.buck.cli.Main.main(Main.java:380)
Please let me know at the earliest.......
Thanks,
Mallikarjuna
from buck.
It looks like you have a reference to src/com/test/common/libs/httpmime-4.1.1.jar
that is missing from your bug report.
from buck.
Related Issues (20)
- Python 3.10: third-party python modules need update (setuptools: No module named 'symbol', pex: cannot import name 'iterable' from 'collections') HOT 10
- How to Change Xcode xxx.pbxproj resource-id prefix ?
- got OSError: [Errno 45] Operation not supported when run "buck build demo_app_ios" command
- Trying to generate multiple targets with buck project --combined-project, expecting one project, got many
- GCC Toolchain Path Incorrect Post R22 NDK HOT 4
- Invite to slack channel
- How to avoid or allow apple security in M1?
- How do I join slack?
- Jitpack failure
- zip64 self executing jar issue
- Accessing files across directories
- Cannot run a build, failed to initialize buck (sqlite-jdbc) HOT 2
- Unable to build buck. Java class file version error. HOT 3
- Windows,When building rule //src/com/facebook/buck/jvm/java/abi/kotlin:kotlin.
- [Question] Isolation level between test targets within the same project. HOT 1
- Unable to create abi jar
- buck fetch fails with symbolic links in an archive HOT 1
- State of the Project? HOT 2
- Buck fails to link, linkage order seems to be wrong in linker.argsfile HOT 1
- How can we build instant app using buck
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from buck.