Class JavaToSchemaTask

  • All Implemented Interfaces:
    kotlin.Comparable , org.gradle.api.Named , org.gradle.api.Task , org.gradle.api.internal.DynamicObjectAware , org.gradle.api.internal.TaskInternal , org.gradle.api.plugins.ExtensionAware , org.gradle.util.Configurable

    @CacheableTask() 
    public abstract class JavaToSchemaTask
    extends DefaultTask
                        

    This task generates a schema file from existing sources.

    • Constructor Detail

      • JavaToSchemaTask

        JavaToSchemaTask(ObjectFactory objectFactory)
    • Method Detail

      • getOutputDir

        @OutputDirectory() final File getOutputDir()

        Output directory for Schema gen.

      • getInputDir

        @InputDirectory()@PathSensitive(value = PathSensitivity.RELATIVE) final File getInputDir()

        Input directory for Schema gen.

      • getEpisode

        @Optional()@Input() final String getEpisode()

        Special parameter (episode) see schemagen documentation.

      • setEpisode

         final Unit setEpisode(String <set-?>)

        Special parameter (episode) see schemagen documentation.

      • getJaxbClasspathfiles

        @Classpath() final ConfigurableFileCollection getJaxbClasspathfiles()

        Classpath files for Java code generation (see Jaxb configuration (JAXB_CONFIGURATION_NAME)).

        The plugin wires this at configuration time. The task must not resolve the configuration itself, because that would happen during input snapshotting in the execution phase, where accessing {@code Task.project} is deprecated in Gradle 9 and fails in Gradle 10.

      • getAddjaxbClasspathfiles

        @Classpath() final ConfigurableFileCollection getAddjaxbClasspathfiles()

        Additional classpath files for Java code generation (see Jaxb configuration (ADD_JAXB_CONFIGURATION_NAME)).

        The plugin wires this at configuration time, see {@link #jaxbClasspathfiles}.

      • getClasspathfiles

        @CompileClasspath() final ConfigurableFileCollection getClasspathfiles()

        Classpath files for Java code generation.

        The plugin wires this at configuration time, see {@link #jaxbClasspathfiles}.

      • provideOutputDir

         final Unit provideOutputDir(Provider<Directory> outputDir)

        This function set the output directory provider.

      • provideInputDir

         final Unit provideInputDir(Provider<Directory> inputDir)

        This function set the input directory provider.

      • generate

         final Unit generate()

        This generates a schema files from java source code.