Giter Site home page Giter Site logo

Comments (5)

bolinfest avatar bolinfest commented on April 26, 2024

Actually, I believe it should just be:

cmd = 'python basic_to_full_manifest.py AndroidManifest.xml'

is that not working for you?

from buck.

spearce avatar spearce commented on April 26, 2024

Well, this was a reminder to fix the documentation. :-)

And it doesn't work if the name is a genfile().

from buck.

bolinfest avatar bolinfest commented on April 26, 2024

Ah, yes, now I am feeling your pain. I just made it possible to build the Closure Compiler using Buck, and I had to do some hacky things, as well (see /closure/closure-compiler/BUCK):

http://code.google.com/p/plovr/source/detail?r=50a647db8b87f361efcf382491790f0a582ce49f

from buck.

spearce avatar spearce commented on April 26, 2024

What about having a macro inside of the cmd string like "$(location //x:y)" to give you the location of a srcs entry named "//x:y". If //x:y is e.g. a java_library() this is the JAR it produces, if its a java_application() again its only the JAR it makes and not the execution command line, if its a genrule() its the out file. Such references in srcs should also automatically be added to the dep list so its not necessary to repeat them in deps.

Buck already seems to do this with ${//x:y} for the name of the tool to execute, but that expansion isn't suitable because it creates things like "java -classpath ..." or "PYTHONPATH= ..." which isn't suitable in all contexts. $(location //x:y) would expand only to the path of the source file.

from buck.

bolinfest avatar bolinfest commented on April 26, 2024

I believe this is fixed now: http://facebook.github.io/buck/rule/genrule.html

Though the section on deps mentions the old curly-brace pattern, but I'll send out a fix for that now.

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.