0
我使用GWT生成在我的應用程序很少js文件更改GWT出的文件路徑戰爭。 我使用的搖籃建立我的戰爭文件。 下面是我的build.gradle文件重要片段:如何在gradle這個腳本
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'
}
}
當戰爭被創建時,GWT文件獲取在根文件夾「com.wf.idc.facade.IdcFacade」中創建。
com.wf.idc.facade.IdcFacade/GWT
com.wf.idc.facade.IdcFacade/*。js文件
我想要的GWT文件夾,並在所產生的所有js文件與WEB-INF,META-INF級別沿着根。
我該怎麼做?