本文介绍了gradle如何只添加JavaScript文件到战争文件中的目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试创建一个使用angular2的Web应用程序。 build.gradle负责编译打字稿并将其添加到战争中的部分如下:

I am trying to create a web application that uses angular2. The part of the build.gradle responsible for compiling the typescript and adding it to the war is as follows:

      $  {
转换为(js){fileTree中的
(dir:'./src/main/typescrypt/')匹配{
include('** / *。js)
} .files.stream()。map {
File-> file.toString()
} .collect(Collectors.toSet())
}

这篇关于gradle如何只添加JavaScript文件到战争文件中的目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-31 19:25