Class GitIgnore
java.lang.Object
io.spring.initializr.generator.spring.scm.git.GitIgnore
Project's
.gitignore
. Contain a general section and pre-defined section for
popular IDEs. Empty sections are not rendered.- Author:
- Stephane Nicoll
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Representation of a section of a.gitignore
file. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addSection
(GitIgnore.GitIgnoreSection section) addSectionIfAbsent
(String sectionName) Adds a section if it doesn't already exist.getSection
(String sectionName) getSts()
boolean
isEmpty()
void
write
(PrintWriter writer)
-
Constructor Details
-
GitIgnore
public GitIgnore()
-
-
Method Details
-
write
- Throws:
IOException
-
addSection
-
addSectionIfAbsent
Adds a section if it doesn't already exist.- Parameters:
sectionName
- the name of the section- Returns:
- the newly added section or the existing one
-
getSection
-
isEmpty
public boolean isEmpty() -
getGeneral
-
getSts
-
getIntellijIdea
-
getNetBeans
-
getVscode
-