Code Monkey home page Code Monkey logo

Comments (6)

steffenschaefer avatar steffenschaefer commented on July 20, 2024

Sorry for the late answer. It seems I had some trouble with GitHub mail notifications.

I'll add the new flags introduced in GWT 2.7 soon. As a workaround, I guess this will work on a task level:

compileGwt {
    args '-someArg'
}
gwtDev {
    args '-someArg'
}

from gwt-gradle-plugin.

michaelvogt avatar michaelvogt commented on July 20, 2024

Thanks Steffen.

from gwt-gradle-plugin.

jnehlmeier avatar jnehlmeier commented on July 20, 2024

Hmm just for the record, I had to do the following:

gradle.taskGraph.whenReady { taskGraph ->
  if (taskGraph.hasTask(gwtSuperDev)) {
    gwtSuperDev {
      args '-launcherDir'
      args '/my/custom/launcher/dir'
    }
  } else {
    throw new RuntimeException("gwtSuperDev task not found.")
  }
}

If I don't do that Gradle complains that it can not find a method named gwtSuperDev() with argument .

from gwt-gradle-plugin.

steffenschaefer avatar steffenschaefer commented on July 20, 2024

@jnehlmeier this is because the gwtSuperDev task is added lazily depending on the configuration. So this task isn't available during configuration phase.
In addition to your example, there is another method to work around this:

tasks.withType(de.richsource.gradle.plugins.gwt.GwtSuperDev) {
      args '-launcherDir', '/my/custom/launcher/dir'
}

from gwt-gradle-plugin.

steffenschaefer avatar steffenschaefer commented on July 20, 2024

I added most (some special cases are missing) of the flags introduced in GWT 2.7.0-beta1.

GWT 2.7 introduces "-logLevel" for CodeServer (it already existed for the Compiler and DevMode). As this would break compatibility with older GWT versions, this flag isn't set by convention from the "gwt" extension. So currently, you have to set it manually for the task:

gwt {
    logLevel = "DEBUG"
}
tasks.withType(de.richsource.gradle.plugins.gwt.GwtSuperDev) {
    logLevel = gwt.logLevel
}

I'm evaluating a better solution for this and I hope I find a proper solution soon.

from gwt-gradle-plugin.

michaelvogt avatar michaelvogt commented on July 20, 2024

Closing because Steffens answer works for me.

from gwt-gradle-plugin.

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.