GithubHelp home page GithubHelp logo

Comments (5)

nilssonjulia avatar nilssonjulia commented on August 24, 2024 1

You cannot run the same task twice in gradle https://discuss.gradle.org/t/is-there-possibility-to-run-single-task-twice-during-build-script-execution/6312.
If, for example, createApp had been a class extending DefaultTask one could easily have created tasks with createApp as type and provide the configuration needed.
My workaround for this has been to create multiple subprojects, each of them applying the plugin, configuring macappbundle and having a task buildApp. Then multiple apps can be built with
gradle buildApp.

from gradle-macappbundle.

crotwell avatar crotwell commented on August 24, 2024

It may be possible within gradle to run a task twice with two different configurations, but I don't know how. Perhaps check the gradle docs and/or post to the gradle forum. If there is something I can change programatically to make it easier, I will consider it if you can give details of what needs to change.

from gradle-macappbundle.

atistrcsn avatar atistrcsn commented on August 24, 2024

@crotwell I'm subscribing.
I aggree with @Codinghi, the solution would be this:

If, for example, createApp had been a class extending DefaultTask one could easily have created tasks with createApp as type and provide the configuration needed.

I am struggling with the same problem. I need to build multiple app bundle in one run.
Are you considering to refactor the tasks? πŸ˜ƒ

from gradle-macappbundle.

crotwell avatar crotwell commented on August 24, 2024

I am not opposed to changing createApp to extend DefaultTask. I am short on time to work on this now. Could you give the modification a try and submit a pull request?

from gradle-macappbundle.

atistrcsn avatar atistrcsn commented on August 24, 2024

Gladly. I have to find some free time too, but I will definitely give it a try πŸ‘Œ
Thanks.

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.