Search in sources :

Example 1 with WindowsResourceSet

use of org.gradle.language.rc.WindowsResourceSet in project gradle by gradle.

the class DefaultVisualStudioProject method getSourceFiles.

public List<File> getSourceFiles() {
    Set<File> allSource = new LinkedHashSet<File>();
    allSource.addAll(additionalFiles);
    for (LanguageSourceSet sourceSet : sources) {
        if (!(sourceSet instanceof WindowsResourceSet)) {
            allSource.addAll(sourceSet.getSource().getFiles());
        }
    }
    return new ArrayList<File>(allSource);
}
Also used : LinkedHashSet(java.util.LinkedHashSet) WindowsResourceSet(org.gradle.language.rc.WindowsResourceSet) LanguageSourceSet(org.gradle.language.base.LanguageSourceSet) ArrayList(java.util.ArrayList) XmlConfigFile(org.gradle.ide.visualstudio.XmlConfigFile) File(java.io.File)

Aggregations

File (java.io.File)1 ArrayList (java.util.ArrayList)1 LinkedHashSet (java.util.LinkedHashSet)1 XmlConfigFile (org.gradle.ide.visualstudio.XmlConfigFile)1 LanguageSourceSet (org.gradle.language.base.LanguageSourceSet)1 WindowsResourceSet (org.gradle.language.rc.WindowsResourceSet)1