Beispiel #1
0
        public FileWatcherManifest CreateFileWatcherManifest(IFubuApplicationFiles files)
        {
            var manifest = new FileWatcherManifest(files.RootPath, AssemblyFinder.FindBinPath());

            if (Mode == SearchMode.PublicFolderOnly)
            {
                manifest.PublicAssetFolder = DeterminePublicFolder(files).Replace('\\', '/');
            }

            manifest.AssetExtensions =
                assetMimeTypes().SelectMany(x => x.Extensions).Union(AllowableExtensions).ToArray();

            manifest.ContentMatches = ContentMatches.ToArray();

            return(manifest);
        }
Beispiel #2
0
        public FileWatcherManifest CreateFileWatcherManifest()
        {
            var manifest = new FileWatcherManifest();

            /*TODO
             * - has public folder
             * - does not have public folder
             * - all content matches
             */

            if (Mode == SearchMode.PublicFolderOnly)
            {
                manifest.PublicAssetFolder = DeterminePublicFolder().Replace('\\', '/');
            }

            manifest.AssetExtensions =
                assetMimeTypes().SelectMany(x => x.Extensions).Union(AllowableExtensions).ToArray();

            manifest.ContentMatches = ContentMatches.ToArray();

            return(manifest);
        }
Beispiel #3
0
        public FileWatcherManifest CreateFileWatcherManifest()
        {
            var manifest = new FileWatcherManifest();

            /*TODO
             * - has public folder
             * - does not have public folder
             * - all content matches
             */

            if (Mode == SearchMode.PublicFolderOnly)
            {
                manifest.PublicAssetFolder = DeterminePublicFolder().Replace('\\', '/');
            }

            manifest.AssetExtensions =
                assetMimeTypes().SelectMany(x => x.Extensions).Union(AllowableExtensions).ToArray();

            manifest.ContentMatches = ContentMatches.ToArray();

            return manifest;
        }
Beispiel #4
0
        public FileWatcherManifest CreateFileWatcherManifest(IFubuApplicationFiles files)
        {
            var manifest = new FileWatcherManifest(files.RootPath, AssemblyFinder.FindBinPath());

            if (Mode == SearchMode.PublicFolderOnly)
            {
                manifest.PublicAssetFolder = DeterminePublicFolder(files).Replace('\\', '/');
            }

            manifest.AssetExtensions =
                assetMimeTypes().SelectMany(x => x.Extensions).Union(AllowableExtensions).ToArray();

            manifest.ContentMatches = ContentMatches.ToArray();

            return manifest;
        }