0

build.gradle:

...

configurations {
    dartLibrary
}

dependencies {
   // Dart - web has a lot of subdirs... (packages and so forth)
   dartLibrary fileTree(dir: 'src/main/dart/web')
}

war {
   into('/') {
      from configurations.dartLibrary
   }
}

This copies all the files form src/main/dart/web into my war but the problem is that it "flattens" the structure. Means all files from web and its subdirs are merged into the / of my war.

Pls. help :-)

4

1 回答 1

1

Configurations 是平FileCollections。您需要删除间接(并且也可以省略对 的调用fileTree):

war {
    from "src/main/dart/web"
}
于 2013-10-07T16:40:19.003 回答