Update build.gradle

This commit is contained in:
ShirosakiMio 2024-01-07 18:37:21 +08:00
parent a145316fd5
commit 0b7e027883
1 changed files with 10 additions and 5 deletions

View File

@ -110,10 +110,15 @@ ssh.settings {
remotes {
Properties prop = new Properties()
prop.load(new FileInputStream("${rootDir}/local.properties"))
debugServer {
host = prop.getProperty("sftp.host")
port = prop.getProperty("sftp.port").toInteger()
user = prop.getProperty("sftp.username")
password = prop.getProperty("sftp.password")
try {
debugServer {
host = prop.getProperty("sftp.host")
port = prop.getProperty("sftp.port").toInteger()
user = prop.getProperty("sftp.username")
password = prop.getProperty("sftp.password")
}
}catch (Exception e){
}
}