can i include specific css file in resourceDirs

fixdh's Avatar


11 Aug, 2014 06:03 AM

i am developing a "flex library project" now. and the source folder structure is:
- src/main/flex/com/mylib/...
- src/main/flex/defaults.css
- src/main/flex/assets/images/....

in build.gradle:
- srcDirs = ['/src/main/flex']
- resourceDirs=['/src/main/flex']

after execute gradle build, the generated swc file not only include defaults.css, but also include all .as or .mxml file or images.
but i just want swc include defaults.css, not source file or images, does gradlefx support "resourceDirs=['/src/main/flex/default.css']" ?

  1. Support Staff 1 Posted by Yennick Trevels on 11 Aug, 2014 06:19 AM

    Yennick Trevels's Avatar

    No, GradleFx has nothing like that. But I would suggest to restructure the directories as follows:


    That way you can just use the resourceDirs property

  2. 2 Posted by fixdh on 11 Aug, 2014 08:28 AM

    fixdh's Avatar

    thanks, i will try it.

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:


Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac