fix: fix bugs in build.gradle

fix task errors in build.gradle
This commit is contained in:
Frank.R.Wu 2021-11-15 17:52:36 +08:00
parent c69bfa6620
commit f150621008
2 changed files with 9 additions and 8 deletions

View File

@ -79,7 +79,7 @@ task copyLibs(type: Copy, dependsOn: ["copyScript", 'copySsl']) {
// commandLine "cp", "./build/libs/$project.name-$version" + ".jar", "./build/output/bdcluster.jar"
//}
task copyJar(type: Copy, dependsOn: [":front-cluster:jar", ":front-cluster:copyLibs"]) {
task copyJar(type: Copy, dependsOn: ["jar", "copyLibs"]) {
from "./build/libs/$project.name-${project.version}.jar"
into "./build/output"
rename { String fileName -> "bdcluster.jar" }
@ -99,15 +99,14 @@ task copyWebContent(type: Copy) {
into "./build/output/WebContent"
}
task buildBDServerClusterZip(type: Zip, dependsOn: [":front-cluster:copyWebContent", ":front-cluster:copyScript",
":front-cluster:copyJar"]) {
task buildBDServerClusterZip(type: Zip, dependsOn: ["copyWebContent", "copyScript", "copyJar"]) {
from './build/output/'
duplicatesStrategy = DuplicatesStrategy.INCLUDE
archiveFileName = 'bdserver-cluster.zip'
destinationDirectory = file('build/')
}
task buildBDClusterZip(type: Zip, dependsOn: [":front-cluster:buildBDServerClusterZip"]) {
task buildBDClusterZip(type: Zip, dependsOn: ["buildBDServerClusterZip"]) {
from('./build/output/') {
include("libs/*")
include("bdcluster.jar")
@ -117,14 +116,14 @@ task buildBDClusterZip(type: Zip, dependsOn: [":front-cluster:buildBDServerClust
destinationDirectory = file('build/')
}
task buildWebContentZip(type: Zip, dependsOn: [":front-cluster:copyWebContent"]) {
task buildWebContentZip(type: Zip, dependsOn: ["copyWebContent"]) {
from "./build/output/WebContent"
duplicatesStrategy = DuplicatesStrategy.INCLUDE
archiveFileName = 'ClusterWebContent.zip'
destinationDirectory = file('build/')
}
task buildBundle(dependsOn: [":front-cluster:buildBDClusterZip", ":front-cluster:buildWebContentZip"]) {
task buildBundle(dependsOn: ["buildBDClusterZip", "buildWebContentZip"]) {
doLast {
println "buildBundle in ./build/output/ successfully"
}

View File

@ -3,10 +3,12 @@ package org.bdware.bdserver.testLucene;
import org.bdware.server.nodecenter.MetaIndexAction;
import org.junit.Test;
import java.io.IOException;
public class WordSegmentationTest {
@Test
public void go(){
public void go() throws IOException {
MetaIndexAction i = new MetaIndexAction();
i.segmentWord(null,null);
i.segmentWord(null, null);
}
}