/// <summary> /// Gets all the files from a bundle. /// </summary> /// <returns><c>true</c> when succesful; otherwise, <c>false</c>.</returns> public override bool Execute() { var files = Bundles.ToList().ConvertAll(input => new FileInfo(input.ItemSpec)).ToList(); var allFilesExist = files.TrueForAll(f => { if (!f.Exists) { this.Log.LogError("File not found. File: {0}", f.FullName); return false; } return true; }); var bundler = new MSBuildBundler(this); bundler.Bundle(files.Select(f => f.FullName)); return true; }
/// <summary> /// Gets all the files from a bundle. /// </summary> /// <returns><c>true</c> when succesful; otherwise, <c>false</c>.</returns> public override bool Execute() { var files = Bundles.ToList().ConvertAll(input => new FileInfo(input.ItemSpec)).ToList(); var allFilesExist = files.TrueForAll(f => { if (!f.Exists) { this.Log.LogError("File not found. File: {0}", f.FullName); return(false); } return(true); }); var bundler = new MSBuildBundler(this); bundler.Bundle(files.Select(f => f.FullName)); return(true); }