Пример #1
0
 /// <summary>
 /// Gets the mapped build script for the given source set
 /// </summary>
 /// <param name="sourceSet">The source set to look a build script for</param>
 /// <returns>Returns the build script mapped to the given source set type</returns>
 public IBuildScript GetBuildScriptFor(ISourceSet sourceSet)
 {
     return buildScriptsForSourceSets[sourceSet.Type];
 }
Пример #2
0
 /// <summary>
 /// Constructs the dependency object
 /// </summary>
 /// <param name="fingerprintFactory">The interface to create new fingerprint instances</param>
 /// <param name="sourceSet">The source set on which we are depending on</param>
 /// <param name="exclusions">Exclusion function, if returns true for a file name, it won't be taken into account as a dependency</param>
 public SourceSetDependencies(ISourceSetFingerprintFactory fingerprintFactory, ISourceSet sourceSet, Func <string, bool> exclusions = null)
 {
     this.fingerprintFactory = fingerprintFactory;
     this.sourceSet          = sourceSet;
     this.exclusions         = exclusions;
 }
Пример #3
0
 /// <summary>
 /// Checks if there is a build script mapped for the given source set
 /// </summary>
 /// <param name="sourceSet">The source set to look a build script for</param>
 /// <returns>Returns <c>true</c> if there is a build script available</returns>
 public bool HasBuildScriptFor(ISourceSet sourceSet)
 {
     return buildScriptsForSourceSets.ContainsKey(sourceSet.Type);
 }
Пример #4
0
 protected FilteredSourceSet(ISourceSet baseSourceSet)
 {
     this.baseSourceSet = baseSourceSet;
 }
Пример #5
0
 /// <summary>
 /// Constructs the dependency object
 /// </summary>
 /// <param name="fingerprintFactory">The interface to create new fingerprint instances</param>
 /// <param name="sourceSet">The source set on which we are depending on</param>
 /// <param name="exclusions">Exclusion function, if returns true for a file name, it won't be taken into account as a dependency</param>
 public SourceSetStructureDependency(ISourceSetFingerprintFactory fingerprintFactory, ISourceSet sourceSet, Func<string, bool> exclusions = null)
 {
     this.fingerprintFactory = fingerprintFactory;
     this.sourceSet = sourceSet;
     this.exclusions = exclusions;
 }
Пример #6
0
 public FilterImpl(ISourceSet baseSourceSet, IFileSystemDirectory sourceSetRoot, IFileSystemDirectory suiteRoot) 
     : base(baseSourceSet)
 {
     this.sourceSetRoot = sourceSetRoot;
     this.suiteRoot = suiteRoot;
 }
Пример #7
0
 /// <summary>
 /// Gets the mapped build script for the given source set
 /// </summary>
 /// <param name="sourceSet">The source set to look a build script for</param>
 /// <returns>Returns the build script mapped to the given source set type</returns>
 public IBuildScript GetBuildScriptFor(ISourceSet sourceSet)
 {
     return(buildScriptsForSourceSets[sourceSet.Type]);
 }
Пример #8
0
 /// <summary>
 /// Checks if there is a build script mapped for the given source set
 /// </summary>
 /// <param name="sourceSet">The source set to look a build script for</param>
 /// <returns>Returns <c>true</c> if there is a build script available</returns>
 public bool HasBuildScriptFor(ISourceSet sourceSet)
 {
     return(buildScriptsForSourceSets.ContainsKey(sourceSet.Type));
 }
Пример #9
0
 protected FilteredSourceSet(ISourceSet baseSourceSet)
 {
     this.baseSourceSet = baseSourceSet;
 }
Пример #10
0
 public FilterImpl(ISourceSet baseSourceSet, IFileSystemDirectory sourceSetRoot, IFileSystemDirectory suiteRoot)
     : base(baseSourceSet)
 {
     this.sourceSetRoot = sourceSetRoot;
     this.suiteRoot     = suiteRoot;
 }