use of org.gradle.ide.visualstudio.internal.VisualStudioProjectConfiguration in project gradle by gradle.
the class GenerateProjectFileTask method configure.
@Override
protected void configure(VisualStudioProjectFile projectFile) {
DefaultVisualStudioProject vsProject = visualStudioProject;
projectFile.setGradleCommand(buildGradleCommand());
projectFile.setProjectUuid(DefaultVisualStudioProject.getUUID(getOutputFile()));
projectFile.setVisualStudioVersion(visualStudioProject.getVisualStudioVersion().get());
projectFile.setSdkVersion(visualStudioProject.getSdkVersion().get());
for (File sourceFile : vsProject.getSourceFiles()) {
projectFile.addSourceFile(sourceFile);
}
for (File resourceFile : vsProject.getResourceFiles()) {
projectFile.addResource(resourceFile);
}
for (File headerFile : vsProject.getHeaderFiles()) {
projectFile.addHeaderFile(headerFile);
}
if (vsProject.getConfigurations().stream().noneMatch(it -> it.isBuildable())) {
getLogger().warn("'" + vsProject.getComponentName() + "' component in project '" + getProject().getPath() + "' is not buildable.");
}
for (VisualStudioProjectConfiguration configuration : vsProject.getConfigurations()) {
projectFile.addConfiguration(configuration);
}
for (Action<? super XmlProvider> xmlAction : vsProject.getProjectFile().getXmlActions()) {
getXmlTransformer().addAction(xmlAction);
}
}
Aggregations