mirror of
https://gitee.com/BDWare/router-backend
synced 2025-01-25 01:04:05 +00:00
fix: fix bugs in build.gradle
fix task errors in build.gradle
This commit is contained in:
parent
c69bfa6620
commit
f150621008
11
build.gradle
11
build.gradle
@ -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"
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user