Class GitIgnoreContributor

java.lang.Object
io.spring.initializr.generator.spring.scm.git.GitIgnoreContributor
All Implemented Interfaces:
ProjectContributor, org.springframework.core.Ordered

public class GitIgnoreContributor extends Object implements ProjectContributor
A SingleResourceProjectContributor that contributes a .gitignore file to a project.
Author:
Andy Wilkinson, Stephane Nicoll
  • Constructor Details

    • GitIgnoreContributor

      public GitIgnoreContributor(GitIgnore gitIgnore)
  • Method Details

    • contribute

      public void contribute(Path projectRoot) throws IOException
      Description copied from interface: ProjectContributor
      Contribute additional resources to the project in the specified root directory.
      Specified by:
      contribute in interface ProjectContributor
      Parameters:
      projectRoot - the root directory of the project
      Throws:
      IOException - if contributing a resource failed