【发布时间】:2017-08-04 15:43:47
【问题描述】:
我正在使用 gwt 在我的应用程序中生成几个 js 文件。 我正在使用 Gradle 构建我的战争文件。 以下是我的 build.gradle 文件中的重要 sn-ps:
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'gwt'
apply plugin: 'war'
apply plugin: 'java-library'
sourceSets {
main {
java {
srcDirs=['src']
}
}
}
gwt {
gwtVersion='2.8.0'
modules 'com.wf.idc.facade.IdcFacade'
modulePathPrefix = "/"
maxHeapSize = "1024M"
}
war {
println 'building war'
archiveName('IdcAdmin.war')
destinationDir(file('dist'))
from("src") {
include '*.properties'
into ('WEB-INF/classes')
}
from("web") {
include 'login'
include 'images'
into ('/')
}
from("web") {
include '*/*.*'
include '**.*'
into ('/')
}
from("metadata/WEB-INF") {
include '*.xml'
into ('WEB-INF')
}
}
buildscript {
repositories {
maven {
url 'http://artifactory.wf.com/artifactory/idc_maven_deploy_virtual'
credentials {
username = "${artifactory_user}"
password = "${artifactory_password}"
}
}
}
dependencies {
//Check for the latest version here: http://plugins.gradle.org/plugin/com.jfrog.artifactory
classpath "org.jfrog.buildinfo:build-info-extractor-gradle:4+"
classpath 'de.richsource.gradle.plugins:gwt-gradle-plugin:0.6'
}
}
war 创建后,gwt 文件会在根目录下的“com.wf.idc.facade.IdcFacade”文件夹中创建。
com.wf.idc.facade.IdcFacade/gwt
com.wf.idc.facade.IdcFacade/*.js 文件
我想要gwt文件夹和根目录下生成的所有js文件以及WEB-INF、META-INF级别。
我该怎么做?
【问题讨论】: