# Exclude files from building, a la ".unoignore

**URL:** <https://forums.fusetools.com/t/exclude-files-from-building-a-la-unoignore/1022>\
**Category:** How-to Discussions\
**Created:** [March 30, 2016, 1:41am UTC](https://forums.fusetools.com/t/exclude-files-from-building-a-la-unoignore/1022 "2016-03-30T01:41:06Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Peter\_Andreas\_Moelga](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/peter_andreas_moelga/32/294_2.png) [@Peter\_Andreas\_Moelga](https://forums.fusetools.com/u/Peter_Andreas_Moelga)\
**Post date:** [March 30, 2016, 1:41am UTC](https://forums.fusetools.com/t/exclude-files-from-building-a-la-unoignore/1022/1 "2016-03-30T01:41:06Z")

</div>

How-to exclude files from being packaged and build, e.g. folders like “.idea” and “.ds\_store” ?

---

<div class="post-metadata">

**Author:** ![Anders\_Lassen](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/anders_lassen/32/522_2.png) [@Anders\_Lassen](https://forums.fusetools.com/u/Anders_Lassen)\
**Post date:** [March 30, 2016, 9:31am UTC](https://forums.fusetools.com/t/exclude-files-from-building-a-la-unoignore/1022/2 "2016-03-30T09:31:33Z")

</div>

Hi!

We don’t have an exclude-feature per se, but you can go into your `.unoproj` and replace the `Include: "*"` with more granuarly including the files and folders you actually want to include 🙂

---

<div class="post-metadata">

**Author:** ![Peter\_Andreas\_Moelga](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/peter_andreas_moelga/32/294_2.png) [@Peter\_Andreas\_Moelga](https://forums.fusetools.com/u/Peter_Andreas_Moelga)\
**Post date:** [March 30, 2016, 10:32am UTC](https://forums.fusetools.com/t/exclude-files-from-building-a-la-unoignore/1022/3 "2016-03-30T10:32:13Z")

</div>

Thank you for your response, however despite making the includes explicit, it still includes everything else e.g. “.idea” directories, which naturally is not intended.

---

<div class="post-metadata">

**Author:** ![Anders\_Lassen](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/anders_lassen/32/522_2.png) [@Anders\_Lassen](https://forums.fusetools.com/u/Anders_Lassen)\
**Post date:** [April 1, 2016, 9:44am UTC](https://forums.fusetools.com/t/exclude-files-from-building-a-la-unoignore/1022/4 "2016-04-01T09:44:02Z")

</div>

It shouldn’t. Of course you also need to remove the “\*”. If it doesn’t work, can yo show us your complete unoproj?

---

<div class="post-metadata">

**Author:** ![Peter\_Andreas\_Moelga](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/peter_andreas_moelga/32/294_2.png) [@Peter\_Andreas\_Moelga](https://forums.fusetools.com/u/Peter_Andreas_Moelga)\
**Post date:** [April 1, 2016, 10:46am UTC](https://forums.fusetools.com/t/exclude-files-from-building-a-la-unoignore/1022/5 "2016-04-01T10:46:52Z")

</div>

**Contents of the project file**

```auto
{
        "Packages": [
                "Fuse.Animations",
                "Fuse.BasicTheme",
                "Fuse.Themes",
                "Fuse.Controls",
                "Fuse.Designer",
                "Fuse.Drawing",
                "Fuse.Drawing.Primitives",
                "Fuse.Effects",
                "Fuse.Elements",
                "Fuse.Entities",
                "Fuse.Gestures",
                "Fuse.Navigation",
                "Experimental.Physics",
                "Fuse.Scripting",
                "Fuse.Shapes",
                "Fuse.Triggers",
                "Fuse.Reactive",
                "Fuse.Android",
                "Fuse.Desktop",
                "Fuse.iOS",
                "Fuse.UserEvents",
                "FuseCore",
                "Uno.Collections",
                "Uno.Geometry"
        ],
    "Includes": [
        "app.js:File",
        "app.ux:UXFile",
        "theme.ux:UXFile"
    ],
    "Android": { // removed }
}

```

**Output on the fs**

 ![file](https://s3.us-east-2.amazonaws.com/fuse-legacy-forum-assets/N4aFGm8vxRUT-legacy-files-yGO7ZdETkh1COvui-anCz92W0aLyUUjYS_xdMqJAF.png)

**Command I run**

```auto
uno build --target=android --configuration=Release

```

---

<div class="post-metadata">

**Author:** ![Peter\_Andreas\_Moelga](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/peter_andreas_moelga/32/294_2.png) [@Peter\_Andreas\_Moelga](https://forums.fusetools.com/u/Peter_Andreas_Moelga)\
**Post date:** [April 3, 2016, 4:28am UTC](https://forums.fusetools.com/t/exclude-files-from-building-a-la-unoignore/1022/6 "2016-04-03T04:28:57Z")

</div>

I just remembered reading something about this, and went back to the very beginning… [https://www.fusetools.com/learn/fuse](https://www.fusetools.com/learn/fuse)… and came across the paragraph below… however, being a long shot, it also didn’t yield any result.

* * *

**Sublime Text projects** When you drop a folder into Sublime Text 3, it will by default search through all files in all subfolders. When building a Fuse project, this isn’t always what you want.

If you create a file called ProjectName.sublime-project, you can drop this into it to make it ignore the .uno and build directories:

```auto
{
    "folders":
    [
        {
            "folder_exclude_patterns":
            [
                "build",
                ".uno",
                ".idea",
                "tasks"
            ],
            "path": "."
        }
    ]
}

```

---

<div class="post-metadata">

**Author:** ![Remi\_Pedersen](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/remi_pedersen/32/432_2.png) [@Remi\_Pedersen](https://forums.fusetools.com/u/Remi_Pedersen)\
**Post date:** [April 4, 2016, 8:48am UTC](https://forums.fusetools.com/t/exclude-files-from-building-a-la-unoignore/1022/7 "2016-04-04T08:48:48Z")

</div>

Hi Peter, I tried to reproduce it and it seems like the .idea/ folder inside build/ doesn’t actually contain the same things as the .idea/ folder placed in the root project directory.

In other words: while something strange is going on it doesn’t seem like Fuse is actually bundling the files. Can you check whether this is the case for you as well?

---

<div class="post-metadata">

**Author:** ![Remi\_Pedersen](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/remi_pedersen/32/432_2.png) [@Remi\_Pedersen](https://forums.fusetools.com/u/Remi_Pedersen)\
**Post date:** [April 4, 2016, 8:51am UTC](https://forums.fusetools.com/t/exclude-files-from-building-a-la-unoignore/1022/8 "2016-04-04T08:51:51Z")

</div>

Actually, it seems like the Android build contains an `.idea` folder regardless of what you place in the project directory and that this is completely unrelated.

---

<div class="post-metadata">

**Author:** ![Peter\_Andreas\_Moelga](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/peter_andreas_moelga/32/294_2.png) [@Peter\_Andreas\_Moelga](https://forums.fusetools.com/u/Peter_Andreas_Moelga)\
**Post date:** [April 4, 2016, 8:55am UTC](https://forums.fusetools.com/t/exclude-files-from-building-a-la-unoignore/1022/9 "2016-04-04T08:55:30Z")

</div>

Hi Remi,

Yes, I just did a similar experiment, removing the folder entirely, and then see if would appear, and it does, so I suppose this is intrinsic to Android in this context, however it’s odd since .idea is with respect to JetBrains and not to Android… somewhat odd, however for now I believe it’s safe to just ignore the folder…
