Klasse GenerateIdeaModule

java.lang.Object
org.gradle.api.internal.AbstractTask
org.gradle.api.DefaultTask
org.gradle.api.internal.ConventionTask
Alle implementierten Schnittstellen:
Comparable<Task>, org.gradle.api.internal.DynamicObjectAware, org.gradle.api.internal.IConventionAware, org.gradle.api.internal.TaskInternal, Named, ExtensionAware, Task, Configurable<Task>

@DisableCachingByDefault(because="Not made cacheable, yet") public abstract class GenerateIdeaModule extends XmlGeneratorTask<Module>
Generates an IDEA module file. If you want to fine tune the idea configuration

Please refer to interesting examples on idea configuration in IdeaModule.

At this moment nearly all configuration is done via IdeaModule.

  • Konstruktordetails

    • GenerateIdeaModule

      public GenerateIdeaModule()
    • GenerateIdeaModule

      @Inject public GenerateIdeaModule(IdeaModule module)
  • Methodendetails

    • create

      protected Module create()
      Angegeben von:
      create in Klasse XmlGeneratorTask<Module>
    • configure

      protected void configure(Module xmlModule)
      Angegeben von:
      configure in Klasse XmlGeneratorTask<Module>
    • getXmlTransformer

      public org.gradle.internal.xml.XmlTransformer getXmlTransformer()
      Setzt außer Kraft:
      getXmlTransformer in Klasse XmlGeneratorTask<Module>
    • getOutputFile

      public File getOutputFile()
      Configures output *.iml file. It's optional because the task should configure it correctly for you (including making sure it is unique in the multi-module build). If you really need to change the output file name it is much easier to do it via the idea.module.name property.

      Please refer to documentation in IdeaModule name property. In IntelliJ IDEA the module name is the same as the name of the *.iml file.

      Setzt außer Kraft:
      getOutputFile in Klasse GeneratorTask<Module>
      Gibt zurück:
      The output file.
    • setOutputFile

      public void setOutputFile(File newOutputFile)
      Beschreibung aus Klasse kopiert: GeneratorTask
      Sets the output file to write the final configuration to.
      Setzt außer Kraft:
      setOutputFile in Klasse GeneratorTask<Module>
      Parameter:
      newOutputFile - The output file.
    • getModule

      @Internal public IdeaModule getModule()
      The Idea module model containing the details required to generate the module file.
    • setModule

      public void setModule(IdeaModule module)