mirror of
https://gitee.com/BDWare/router-backend
synced 2025-01-26 09:44:04 +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"
|
// 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"
|
from "./build/libs/$project.name-${project.version}.jar"
|
||||||
into "./build/output"
|
into "./build/output"
|
||||||
rename { String fileName -> "bdcluster.jar" }
|
rename { String fileName -> "bdcluster.jar" }
|
||||||
@ -99,15 +99,14 @@ task copyWebContent(type: Copy) {
|
|||||||
into "./build/output/WebContent"
|
into "./build/output/WebContent"
|
||||||
}
|
}
|
||||||
|
|
||||||
task buildBDServerClusterZip(type: Zip, dependsOn: [":front-cluster:copyWebContent", ":front-cluster:copyScript",
|
task buildBDServerClusterZip(type: Zip, dependsOn: ["copyWebContent", "copyScript", "copyJar"]) {
|
||||||
":front-cluster:copyJar"]) {
|
|
||||||
from './build/output/'
|
from './build/output/'
|
||||||
duplicatesStrategy = DuplicatesStrategy.INCLUDE
|
duplicatesStrategy = DuplicatesStrategy.INCLUDE
|
||||||
archiveFileName = 'bdserver-cluster.zip'
|
archiveFileName = 'bdserver-cluster.zip'
|
||||||
destinationDirectory = file('build/')
|
destinationDirectory = file('build/')
|
||||||
}
|
}
|
||||||
|
|
||||||
task buildBDClusterZip(type: Zip, dependsOn: [":front-cluster:buildBDServerClusterZip"]) {
|
task buildBDClusterZip(type: Zip, dependsOn: ["buildBDServerClusterZip"]) {
|
||||||
from('./build/output/') {
|
from('./build/output/') {
|
||||||
include("libs/*")
|
include("libs/*")
|
||||||
include("bdcluster.jar")
|
include("bdcluster.jar")
|
||||||
@ -117,14 +116,14 @@ task buildBDClusterZip(type: Zip, dependsOn: [":front-cluster:buildBDServerClust
|
|||||||
destinationDirectory = file('build/')
|
destinationDirectory = file('build/')
|
||||||
}
|
}
|
||||||
|
|
||||||
task buildWebContentZip(type: Zip, dependsOn: [":front-cluster:copyWebContent"]) {
|
task buildWebContentZip(type: Zip, dependsOn: ["copyWebContent"]) {
|
||||||
from "./build/output/WebContent"
|
from "./build/output/WebContent"
|
||||||
duplicatesStrategy = DuplicatesStrategy.INCLUDE
|
duplicatesStrategy = DuplicatesStrategy.INCLUDE
|
||||||
archiveFileName = 'ClusterWebContent.zip'
|
archiveFileName = 'ClusterWebContent.zip'
|
||||||
destinationDirectory = file('build/')
|
destinationDirectory = file('build/')
|
||||||
}
|
}
|
||||||
|
|
||||||
task buildBundle(dependsOn: [":front-cluster:buildBDClusterZip", ":front-cluster:buildWebContentZip"]) {
|
task buildBundle(dependsOn: ["buildBDClusterZip", "buildWebContentZip"]) {
|
||||||
doLast {
|
doLast {
|
||||||
println "buildBundle in ./build/output/ successfully"
|
println "buildBundle in ./build/output/ successfully"
|
||||||
}
|
}
|
||||||
|
@ -3,10 +3,12 @@ package org.bdware.bdserver.testLucene;
|
|||||||
import org.bdware.server.nodecenter.MetaIndexAction;
|
import org.bdware.server.nodecenter.MetaIndexAction;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
|
import java.io.IOException;
|
||||||
|
|
||||||
public class WordSegmentationTest {
|
public class WordSegmentationTest {
|
||||||
@Test
|
@Test
|
||||||
public void go(){
|
public void go() throws IOException {
|
||||||
MetaIndexAction i = new MetaIndexAction();
|
MetaIndexAction i = new MetaIndexAction();
|
||||||
i.segmentWord(null,null);
|
i.segmentWord(null, null);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user