From c2755ef2907b3bf8cae73075f2df0f2534502dbd Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Sat, 31 Aug 2024 13:40:39 +0200 Subject: [PATCH] fixed directories not being excluded correctly by default --- Contentless/Config.cs | 2 +- Test/Content/Content.mgcb | 5 +++++ Test/Content/Contentless.json | 4 ++-- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/Contentless/Config.cs b/Contentless/Config.cs index 918e5f2..849a27e 100644 --- a/Contentless/Config.cs +++ b/Contentless/Config.cs @@ -7,7 +7,7 @@ namespace Contentless; public class Config { [JsonProperty("exclude")] - public string[] ExcludedFiles = {"bin/", "obj/"}; + public string[] ExcludedFiles = {"bin/*", "obj/*"}; [JsonProperty("logSkipped")] public bool LogSkipped = true; diff --git a/Test/Content/Content.mgcb b/Test/Content/Content.mgcb index 33470f6..b3e0da3 100644 --- a/Test/Content/Content.mgcb +++ b/Test/Content/Content.mgcb @@ -46,3 +46,8 @@ /importer:TiledMapTilesetImporter /processor:TiledMapTilesetProcessor /build:Tiled/Tileset.tsx +#begin Textures/Exclude.png +/importer:TextureImporter +/processor:TextureProcessor +/build:Textures/Exclude.png + diff --git a/Test/Content/Contentless.json b/Test/Content/Contentless.json index cc5e038..1b75642 100644 --- a/Test/Content/Contentless.json +++ b/Test/Content/Contentless.json @@ -1,7 +1,7 @@ { "exclude": [ - "obj/", - "bin/", + "obj/*", + "bin/*", "Ex*.png", "Tiled/*.png" ],