Giter VIP home page Giter VIP logo

Comments (3)

BYVoid avatar BYVoid commented on May 6, 2024

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.

mallikarjunece avatar mallikarjunece commented on May 6, 2024

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.

bolinfest avatar bolinfest commented on May 6, 2024

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)

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.