Hi,

I have two custom tasks provided by a plugin in which one absolutely
depends on the other. The skeleton of the structure is like so:

  task("buildData") {
      appName = "unspecified"
      appVersion = project.version
      grailsVersion = "unspecified"
      servletContext = appName
      servletVersion = "2.4"
      doLast {
          ...
      }
  }

  class GrailsPluginsTask extends DefaultTask {
      @TaskAction
      void execute() {
          // Some sort of reference to buildData here.
          project.buildData.grailsVersion
      }
  }

What's the best way of connecting the two? The first task loads some
configuration files and provides some of the data therein as task
properties. The second task needs to access those properties in order
to do its work.

Should GrailsPluginsTask have a hard-coded dependsOn? Or should I link
the two in the plugin?

Thanks,

Peter

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to