コード例 #1
0
ファイル: Bundle.cs プロジェクト: radleta/Frappe
        /// <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;
        }
コード例 #2
0
ファイル: Bundle.cs プロジェクト: beufordy3k/Frappe
        /// <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);
        }