license-gradle-plugin icon indicating copy to clipboard operation
license-gradle-plugin copied to clipboard

Exclude File does't work as expceted

Open YorkShen opened this issue 9 years ago • 2 comments
trafficstars

I want to exclude file, the structure of my directory is like -src ----flex ---------A.java ---------B.java -----dom ---------C.java

I want to exclude all files in flex directory and C.java in dom directory. I tried excludes (["src/flex/*.java","src/dom/C.java"]), it doesn't work.

The only way to make this work is to write code like this `excludes (["/A.java","/B.java","**/C.java"])

I'd like to know whether this is a bug or not.

BTW, I am developing android using gradle plugin of android`

YorkShen avatar Feb 29 '16 06:02 YorkShen

Can you post a bit more context on what your build structure looks like? Are src/flex and src/dom sourcesets, or is src the single sourceset?

hierynomus avatar Feb 29 '16 14:02 hierynomus

src is the single sourceset, src/flex and src/dom are directories under src

YorkShen avatar Feb 29 '16 14:02 YorkShen