GithubHelp home page GithubHelp logo

Comments (4)

GoogleCodeExporter avatar GoogleCodeExporter commented on August 24, 2024
Another approach might be to generate the plist as an object, then we could 
modify it before you (lazily) write it out...

generatePlist.doFirst {
  def plist = project.macAppBundle.plist
  plist.java.properties.append("apple.laf.useScreenMenuBar", true)
  plist.java.append("VMOptions", "-Xmx512m")
  plist.append(...)
}

Probably the easiest approach (rather than reinventing this wheel) is to use 
the existing commons-configuration library to write out a plist.

http://commons.apache.org/configuration/userguide/howto_properties.html#Saving

Then the writing out of the plist isn't a set of hardcoded statements in your 
plugin.

Original comment by [email protected] on 2 Oct 2012 at 1:11

from gradle-macappbundle.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 24, 2024
I have added three groovy Maps and code to handle them to the extension, 
javaProperties, javaExtras and bundleExtras that allow you to put in additional 
key-value pairs. The values can be strings, boolean, numbers, lists or maps, 
which are mapped to corresponding types in the plis. I think this addresses 
your need, but please let me know if not. 

An example of this would be:

    javaProperties.put("xyz", "abc")
    javaExtras.put("jextras", ["a1":"abc", "a2":true, "a3":[ 1, 2, 3]])
    bundleExtras["bbbxyz"] = "bbbabc"

Original comment by [email protected] on 3 Oct 2012 at 7:25

  • Changed state: Fixed

from gradle-macappbundle.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 24, 2024
Great. That should be good for most people's needs. We'll give it a try today.

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

from gradle-macappbundle.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 24, 2024
works perfectly. thanks!

Original comment by [email protected] on 9 Oct 2012 at 12:02

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.