java.lang.Object
io.spring.initializr.generator.buildsystem.maven.MavenResource

public class MavenResource extends Object
A resource of a MavenBuild.
Author:
Stephane Nicoll
  • Constructor Details

  • Method Details

    • getDirectory

      public String getDirectory()
      Return the directory where resources are to be found. Can use regular maven token such as ${basedir}/src/main.
      Returns:
      the resources directory
    • getTargetPath

      public String getTargetPath()
      Return the directory structure to place the set of resources from a build. Return null by default which represents the root directory.
      Returns:
      the target path or null
    • isFiltering

      public boolean isFiltering()
      Return whether filtering is enabled when copying resources.
      Returns:
      true if filtering is enabled
    • getIncludes

      public List<String> getIncludes()
      Return files patterns which specify the files to include as resources under that specified directory. Can use * for all.
      Returns:
      the include patterns
    • getExcludes

      public List<String> getExcludes()
      Return files patterns which specify the files to ignore as resources under that specified directory. In conflicts between include and exclude, exclude wins.
      Returns:
      the exclude patterns