Skip to content

Commit

Permalink
Merge pull request #15 from project-tsurugi/remove-tsubakuro-jni
Browse files Browse the repository at this point in the history
Remove to use tsubakuro-jni
  • Loading branch information
t-horikawa authored Aug 28, 2023
2 parents ff576da + 2ced015 commit 2122f63
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 40 deletions.
12 changes: 0 additions & 12 deletions buildSrc/src/main/groovy/tsubakuro-examples.app-conventions.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,10 @@ plugins {
id 'application'
}

configurations {
nativeLib
}

dependencies {
implementation "com.tsurugidb.tsubakuro:tsubakuro-session:${tsubakuroVersion}"
implementation "com.tsurugidb.tsubakuro:tsubakuro-connector:${tsubakuroVersion}"
implementation "com.tsurugidb.tsubakuro:tsubakuro-explain:${tsubakuroVersion}"

implementation 'org.slf4j:slf4j-simple:1.7.32'

nativeLib "com.tsurugidb.tsubakuro:tsubakuro-jni:${tsubakuroVersion}"
}

task copyNativeLib(type: Copy) {
from configurations.nativeLib
into "${buildDir}/native"
rename "tsubakuro-jni-${tsubakuroVersion}.so", 'libtsubakuro.so'
}
9 changes: 0 additions & 9 deletions modules/cases/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,43 +10,34 @@ tasks.register('runDateTime', JavaExec) {
classpath = sourceSets.main.runtimeClasspath
mainClass = 'com.tsurugidb.tsubakuro.examples.datetime.Main'

systemProperty 'com.tsurugidb.tsubakuro.jnilib', "${buildDir}/native/libtsubakuro.so"
systemProperty 'tsurugi.dbname', findProperty('tsurugi.dbname') ?: 'ipc:tsurugi'

systemProperty 'org.slf4j.simpleLogger.defaultLogLevel', findProperty('loglevel') ?: 'info'
systemProperty 'org.slf4j.simpleLogger.showThreadName', 'false'
systemProperty 'org.slf4j.simpleLogger.showShortLogName', 'true'
systemProperty 'org.slf4j.simpleLogger.levelInBrackets', 'true'

dependsOn copyNativeLib
}

tasks.register('runIssue', JavaExec) {
classpath = sourceSets.main.runtimeClasspath
mainClass = 'com.tsurugidb.tsubakuro.examples.Main'

systemProperty 'com.tsurugidb.tsubakuro.jnilib', "${buildDir}/native/libtsubakuro.so"
systemProperty 'tsurugi.dbname', findProperty('tsurugi.dbname') ?: 'ipc:tsurugi'

systemProperty 'org.slf4j.simpleLogger.defaultLogLevel', findProperty('loglevel') ?: 'info'
systemProperty 'org.slf4j.simpleLogger.showThreadName', 'false'
systemProperty 'org.slf4j.simpleLogger.showShortLogName', 'true'
systemProperty 'org.slf4j.simpleLogger.levelInBrackets', 'true'

dependsOn copyNativeLib
}

tasks.register('runMS', JavaExec) {
classpath = sourceSets.main.runtimeClasspath
mainClass = 'com.tsurugidb.tsubakuro.examples.multipleSelect.Main'

systemProperty 'com.tsurugidb.tsubakuro.jnilib', "${buildDir}/native/libtsubakuro.so"
systemProperty 'tsurugi.dbname', findProperty('tsurugi.dbname') ?: 'ipc:tsurugi'

systemProperty 'org.slf4j.simpleLogger.defaultLogLevel', findProperty('loglevel') ?: 'info'
systemProperty 'org.slf4j.simpleLogger.showThreadName', 'false'
systemProperty 'org.slf4j.simpleLogger.showShortLogName', 'true'
systemProperty 'org.slf4j.simpleLogger.levelInBrackets', 'true'

dependsOn copyNativeLib
}
10 changes: 0 additions & 10 deletions modules/clients/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,13 @@ tasks.register('runExample', JavaExec) {
classpath = sourceSets.main.runtimeClasspath
mainClass = 'com.tsurugidb.tsubakuro.examples.Main'

systemProperty 'com.tsurugidb.tsubakuro.jnilib', "${buildDir}/native/libtsubakuro.so"
systemProperty 'tsurugi.dbname', findProperty('tsurugi.dbname') ?: 'ipc:tsurugi'

systemProperty 'org.slf4j.simpleLogger.defaultLogLevel', findProperty('loglevel') ?: 'info'
systemProperty 'org.slf4j.simpleLogger.showThreadName', 'false'
systemProperty 'org.slf4j.simpleLogger.showShortLogName', 'true'
systemProperty 'org.slf4j.simpleLogger.levelInBrackets', 'true'

dependsOn copyNativeLib

jvmArgs '-Dcom.sun.management.jmxremote.port=9999'
jvmArgs '-Dcom.sun.management.jmxremote.authenticate=false'
jvmArgs '-Dcom.sun.management.jmxremote.ssl=false'
Expand All @@ -29,22 +26,18 @@ tasks.register('runDataStore', JavaExec) {
classpath = sourceSets.main.runtimeClasspath
mainClass = 'com.tsurugidb.tsubakuro.examples.datastore.Main'

systemProperty 'com.tsurugidb.tsubakuro.jnilib', "${buildDir}/native/libtsubakuro.so"
systemProperty 'tsurugi.dbname', findProperty('tsurugi.dbname') ?: 'ipc:tsurugi'

systemProperty 'org.slf4j.simpleLogger.defaultLogLevel', findProperty('loglevel') ?: 'info'
systemProperty 'org.slf4j.simpleLogger.showThreadName', 'false'
systemProperty 'org.slf4j.simpleLogger.showShortLogName', 'true'
systemProperty 'org.slf4j.simpleLogger.levelInBrackets', 'true'

dependsOn copyNativeLib
}

tasks.register('runDiagnostic', JavaExec) {
classpath = sourceSets.main.runtimeClasspath
mainClass = 'com.tsurugidb.tsubakuro.examples.diagnostics.JMXClient'

systemProperty 'com.tsurugidb.tsubakuro.jnilib', "${buildDir}/native/libtsubakuro.so"
systemProperty 'tsurugi.dbname', findProperty('tsurugi.dbname') ?: 'ipc:tsurugi'

systemProperty 'org.slf4j.simpleLogger.defaultLogLevel', findProperty('loglevel') ?: 'info'
Expand All @@ -57,13 +50,10 @@ tasks.register('runBook', JavaExec) {
classpath = sourceSets.main.runtimeClasspath
mainClass = 'com.tsurugidb.tsubakuro.examples.book.Main'

systemProperty 'com.tsurugidb.tsubakuro.jnilib', "${buildDir}/native/libtsubakuro.so"
systemProperty 'tsurugi.dbname', findProperty('tsurugi.dbname') ?: 'ipc:tsurugi'

systemProperty 'org.slf4j.simpleLogger.defaultLogLevel', findProperty('loglevel') ?: 'info'
systemProperty 'org.slf4j.simpleLogger.showThreadName', 'false'
systemProperty 'org.slf4j.simpleLogger.showShortLogName', 'true'
systemProperty 'org.slf4j.simpleLogger.levelInBrackets', 'true'

dependsOn copyNativeLib
}
3 changes: 0 additions & 3 deletions modules/tpcc/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,13 @@ tasks.register('runTpcc', JavaExec) {
classpath = sourceSets.main.runtimeClasspath
mainClass = 'com.tsurugidb.tsubakuro.examples.tpcc.Main'

systemProperty 'com.tsurugidb.tsubakuro.jnilib', "${buildDir}/native/libtsubakuro.so"
systemProperty 'com.tsurugidb.tsubakuro.jniverify', 'false'
systemProperty 'tsurugi.dbname', findProperty('tsurugi.dbname') ?: 'ipc:tsurugi'

systemProperty 'org.slf4j.simpleLogger.defaultLogLevel', findProperty('loglevel') ?: 'info'
systemProperty 'org.slf4j.simpleLogger.showThreadName', 'false'
systemProperty 'org.slf4j.simpleLogger.showShortLogName', 'true'
systemProperty 'org.slf4j.simpleLogger.levelInBrackets', 'true'

dependsOn copyNativeLib
}

startScripts {
Expand Down
3 changes: 0 additions & 3 deletions modules/tpccLoader/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,13 @@ tasks.register('runTpccLoader', JavaExec) {
classpath = sourceSets.main.runtimeClasspath
mainClass = 'com.tsurugidb.tsubakuro.examples.tpccLoader.Main'

systemProperty 'com.tsurugidb.tsubakuro.jnilib', "${buildDir}/native/libtsubakuro.so"
systemProperty 'com.tsurugidb.tsubakuro.jniverify', 'false'
systemProperty 'tsurugi.dbname', findProperty('tsurugi.dbname') ?: 'ipc:tsurugi'

systemProperty 'org.slf4j.simpleLogger.defaultLogLevel', findProperty('loglevel') ?: 'info'
systemProperty 'org.slf4j.simpleLogger.showThreadName', 'false'
systemProperty 'org.slf4j.simpleLogger.showShortLogName', 'true'
systemProperty 'org.slf4j.simpleLogger.levelInBrackets', 'true'

dependsOn copyNativeLib
}

startScripts {
Expand Down
3 changes: 0 additions & 3 deletions modules/tpch/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,10 @@ tasks.register('runTpch', JavaExec) {
classpath = sourceSets.main.runtimeClasspath
mainClass = 'com.tsurugidb.tsubakuro.examples.tpch.Main'

systemProperty 'com.tsurugidb.tsubakuro.jnilib', "${buildDir}/native/libtsubakuro.so"
systemProperty 'tsurugi.dbname', findProperty('tsurugi.dbname') ?: 'ipc:tsurugi'

systemProperty 'org.slf4j.simpleLogger.defaultLogLevel', findProperty('loglevel') ?: 'info'
systemProperty 'org.slf4j.simpleLogger.showThreadName', 'false'
systemProperty 'org.slf4j.simpleLogger.showShortLogName', 'true'
systemProperty 'org.slf4j.simpleLogger.levelInBrackets', 'true'

dependsOn copyNativeLib
}

0 comments on commit 2122f63

Please sign in to comment.