safedb 디버깅
This commit is contained in:
+9
-7
@@ -210,15 +210,17 @@ tasks.test {
|
|||||||
if (project.hasProperty("safedb")) {
|
if (project.hasProperty("safedb")) {
|
||||||
println "======================== SafeDB Classpath applied to test task ====================="
|
println "======================== SafeDB Classpath applied to test task ====================="
|
||||||
|
|
||||||
classpath += files(
|
classpath += files("/safedb/JavaAPI/config")
|
||||||
"/safedb/JavaAPI/config/",
|
classpath += fileTree(dir: "/safedb/JavaAPI/lib", include: ["*.jar"])
|
||||||
"/safedb/JavaAPI/lib/*"
|
|
||||||
)
|
|
||||||
|
|
||||||
println "classpath : ${classpath}"
|
classpath.each { println "classpath : $it" }
|
||||||
|
|
||||||
systemProperty "safedb", project.hasProperty("safedb")
|
systemProperty "safedb", project.property("safedb")
|
||||||
println "project.property : ${systemProperty("safedb", null)}"
|
println "systemProperty \"safedb\", ${project.property("safedb")}"
|
||||||
println "-------------------------------------------------------------------------------------"
|
println "-------------------------------------------------------------------------------------"
|
||||||
|
|
||||||
|
testLogging {
|
||||||
|
showStandardStreams = true
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -88,7 +88,7 @@ public class SafeDBWrapper extends SafeDBBroker {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public String encryptNotRnnoString(String data) throws SafeDBWrapperSdkException {
|
public String encryptNotRnnoString(String data) throws SafeDBWrapperSdkException {
|
||||||
return new String(this.encrypt("SAFEDB", "SAFEDB.POLICY", "NOT_RNNO", data));
|
return new String(this.encrypt("SAFEDB", "SAFEDB.POLICY", "RNNO", data));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -109,6 +109,6 @@ public class SafeDBWrapper extends SafeDBBroker {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public String decryptNotRnno(String data) throws SafeDBWrapperSdkException {
|
public String decryptNotRnno(String data) throws SafeDBWrapperSdkException {
|
||||||
return new String(this.decrypt("SAFEDB", "SAFEDB.POLICY", "NOT_RNNO", data));
|
return new String(this.decrypt("SAFEDB", "SAFEDB.POLICY", "RNNO", data));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user