Buildable
, Describable
, IdeWorkspace
, Named
@Incubating public interface VisualStudioSolution extends Named, Buildable, IdeWorkspace
The content and location of the generate solution file can be modified by the supplied methods:
apply plugin: "visual-studio" model { visualStudio { solution { solutionFile.location = "vs/${name}.sln" solutionFile.withContent { TextProvider content -> content.asBuilder().insert(0, "# GENERATED FILE: DO NOT EDIT\n") content.text = content.text.replaceAll("HideSolutionNode = FALSE", "HideSolutionNode = TRUE") } } } }
Named.Namer
Modifier and Type | Method | Description |
---|---|---|
TaskDependency |
getBuildDependencies() |
Returns a dependency which contains the tasks which build this artifact.
|
String |
getDisplayName() |
Returns the display name of this object.
|
Provider<RegularFile> |
getLocation() |
Returns the location of the generated solution file.
|
String |
getName() |
The object's name.
|
TextConfigFile |
getSolutionFile() |
Configuration for the generated solution file.
|
@Internal TextConfigFile getSolutionFile()
@Internal Provider<RegularFile> getLocation()
getLocation
in interface IdeWorkspace
@Internal TaskDependency getBuildDependencies()
Buildable
Buildable
implementations
must ensure that the returned dependency object is live, so that it tracks changes to the dependencies of this
buildable.getBuildDependencies
in interface Buildable
@Internal String getName()
Named
Must be constant for the life of the object.
@Internal String getDisplayName()
Describable
getDisplayName
in interface Describable