GithubHelp home page GithubHelp logo

Comments (6)

GoogleCodeExporter avatar GoogleCodeExporter commented on August 24, 2024

The gradle convention seems to be that "output" paths are relative to the build 
dir and inputs are relative to the project dir, so that is what I have 
followed. Note that not specifying a "prefix" to the path, ie making it look 
like a full path, defaults to being relative to the project dir.

I have updated the comments on the appOutputDir and dmgOutputDir to say 
relative to build directory.

I think this convention makes sense, inputs in project directory, outputs in 
build directory.

Original comment by [email protected] on 5 Oct 2012 at 1:42

  • Changed state: WontFix

from gradle-macappbundle.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 24, 2024
I've seen lots of plugins which pass a "file" instead of a string path for 
inputs. That seems more robust to me (since it will fail in a clear place).

If we keep your approach, then what about the icon and background images? 
Should they also be relative paths?

Original comment by [email protected] on 8 Oct 2012 at 2:23

from gradle-macappbundle.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 24, 2024
From the gradle api docs, the Project.file method:
   Resolves a file path relative to the project directory of this project.
so they are relative, just relative to the project directory instead of the 
build directory.

http://gradle.org/docs/current/dsl/org.gradle.api.Project.html#org.gradle.api.Pr
oject:file%28java.lang.Object%29

Original comment by [email protected] on 8 Oct 2012 at 11:55

from gradle-macappbundle.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 24, 2024
Yes, correct. But the resolution is in the build.gradle, not inside the plugin. 
This means that the user has complete control over what they pass.

I don't think this matters too much, but the inconsistency between sometimes 
passing paths and sometimes path fragments is confusing.

Original comment by [email protected] on 10 Oct 2012 at 1:45

from gradle-macappbundle.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 24, 2024

Humm, I suppose I could use File instead of String, set the defaults as they 
are now and overload the setter so that a string does the resolution relative 
to the corresponding directory. 

Changing back to Accepted.


Original comment by [email protected] on 10 Oct 2012 at 12:20

  • Changed state: Accepted

from gradle-macappbundle.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 24, 2024

Original comment by [email protected] on 10 Oct 2012 at 12:20

from gradle-macappbundle.

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.