can i include specific css file in resourceDirs

fixdh's Avatar

fixdh

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:

    src/main/flex/com/mylib/
    src/main/flex/assets/images
    src/main/resources/defaults.css
    

    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

Generic

? 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

Recent Discussions

24 Jun, 2017 02:18 PM
10 Jun, 2017 04:16 PM
24 Mar, 2017 07:10 PM
19 Mar, 2017 04:39 AM
22 Jan, 2017 07:46 AM

 

11 Oct, 2016 01:18 PM
20 Sep, 2016 04:36 PM
06 Sep, 2016 08:05 PM
03 Aug, 2016 11:15 AM
01 Jun, 2016 05:20 PM
03 May, 2016 09:17 PM