in plugins/src/main/kotlin/org/jetbrains/gradle/plugins/liquibase/LiquibaseProperties.kt [435:497]
fun generatePropertyFile() {
outputPropertiesFile.get()
.apply { parentFile.mkdirs() }
.writeText {
if (driver.isPresent) if (driver.isPresent) appendLine("driver=${driver.get()}")
if (referenceUrl.isPresent) appendLine("referenceUrl=${referenceUrl.get()}")
if (username.isPresent) appendLine("username=${username.get()}")
if (password.isPresent) appendLine("password=${password.get()}")
if (referenceDriver.isPresent) appendLine("referenceDriver=${referenceDriver.get()}")
if (url.isPresent) appendLine("url=${url.get()}")
if (referenceUsername.isPresent) appendLine("referenceUsername=${referenceUsername.get()}")
if (referencePassword.isPresent) appendLine("referencePassword=${referencePassword.get()}")
if (liquibaseProLicenseKey.isPresent) appendLine("liquibaseProLicenseKey=${liquibaseProLicenseKey.get()}")
if (classpath.isPresent) appendLine("classpath=${classpath.get()}")
if (changeExecListenerClass.isPresent) appendLine("changeExecListenerClass=${changeExecListenerClass.get()}")
if (changeExecListenerPropertiesFile.isPresent) appendLine("changeExecListenerPropertiesFile=${changeExecListenerPropertiesFile.get()}")
if (changeSetAuthor.isPresent) appendLine("changeSetAuthor=${changeSetAuthor.get()}")
if (changeSetContext.isPresent) appendLine("changeSetContext=${changeSetContext.get()}")
if (contexts.isPresent) appendLine("contexts=${contexts.get()}")
if (currentDateTimeFunction.isPresent) appendLine("currentDateTimeFunction=${currentDateTimeFunction.get()}")
if (databaseChangeLogLockTableName.isPresent) appendLine("databaseChangeLogLockTableName=${databaseChangeLogLockTableName.get()}")
if (databaseChangeLogTableName.isPresent) appendLine("databaseChangeLogTableName=${databaseChangeLogTableName.get()}")
if (databaseChangeLogTablespaceName.isPresent) appendLine("databaseChangeLogTablespaceName=${databaseChangeLogTablespaceName.get()}")
if (databaseClass.isPresent) appendLine("databaseClass=${databaseClass.get()}")
if (dataOutputDirectory.isPresent) appendLine("dataOutputDirectory=${dataOutputDirectory.get()}")
if (defaultCatalogName.isPresent) appendLine("defaultCatalogName=${defaultCatalogName.get()}")
if (defaultSchemaName.isPresent) appendLine("defaultSchemaName=${defaultSchemaName.get()}")
if (delimiter.isPresent) appendLine("delimiter=${delimiter.get()}")
if (diffTypes.isPresent) appendLine("diffTypes=${diffTypes.get()}")
if (driverPropertiesFile.isPresent) appendLine("driverPropertiesFile=${driverPropertiesFile.get()}")
if (excludeObjects.isPresent) appendLine("excludeObjects=${excludeObjects.get()}")
if (includeCatalog.isPresent) appendLine("includeCatalog=${includeCatalog.get()}")
if (includeObjects.isPresent) appendLine("includeObjects=${includeObjects.get()}")
if (includeSchema.isPresent) appendLine("includeSchema=${includeSchema.get()}")
if (includeSystemClasspath.isPresent) appendLine("includeSystemClasspath=${includeSystemClasspath.get()}")
if (includeTablespace.isPresent) appendLine("includeTablespace=${includeTablespace.get()}")
if (labels.isPresent) appendLine("labels=${labels.get()}")
if (liquibaseCatalogName.isPresent) appendLine("liquibaseCatalogName=${liquibaseCatalogName.get()}")
if (liquibaseHubApiKey.isPresent) appendLine("liquibaseHubApiKey=${liquibaseHubApiKey.get()}")
if (liquibaseHubConnectionId.isPresent) appendLine("liquibaseHubConnectionId=${liquibaseHubConnectionId.get()}")
if (liquibaseHubProjectId.isPresent) appendLine("liquibaseHubProjectId=${liquibaseHubProjectId.get()}")
if (liquibaseHubUrl.isPresent) appendLine("liquibaseHubUrl=${liquibaseHubUrl.get()}")
if (liquibaseSchemaName.isPresent) appendLine("liquibaseSchemaName=${liquibaseSchemaName.get()}")
if (logFile.isPresent) appendLine("logFile=${logFile.get()}")
if (logLevel.isPresent) appendLine("logLevel=${logLevel.get()}")
if (outputDefaultCatalog.isPresent) appendLine("outputDefaultCatalog=${outputDefaultCatalog.get()}")
if (outputDefaultSchema.isPresent) appendLine("outputDefaultSchema=${outputDefaultSchema.get()}")
if (outputFile.isPresent) appendLine("outputFile=${outputFile.get()}")
if (outputSchemasAs.isPresent) appendLine("outputSchemasAs=${outputSchemasAs.get()}")
if (overwriteOutputFile.isPresent) appendLine("overwriteOutputFile=${overwriteOutputFile.get()}")
if (promptForNonLocalDatabase.isPresent) appendLine("promptForNonLocalDatabase=${promptForNonLocalDatabase.get()}")
if (propertyProviderClass.isPresent) appendLine("propertyProviderClass=${propertyProviderClass.get()}")
if (referenceDefaultCatalogName.isPresent) appendLine("referenceDefaultCatalogName=${referenceDefaultCatalogName.get()}")
if (referenceDefaultSchemaName.isPresent) appendLine("referenceDefaultSchemaName=${referenceDefaultSchemaName.get()}")
if (referenceSchemas.isPresent) appendLine("referenceSchemas=${referenceSchemas.get()}")
if (rollbackScript.isPresent) appendLine("rollbackScript=${rollbackScript.get()}")
if (schemas.isPresent) appendLine("schemas=${schemas.get()}")
if (snapshotFormat.isPresent) appendLine("snapshotFormat=${snapshotFormat.get()}")
if (sqlFile.isPresent) appendLine("sqlFile=${sqlFile.get()}")
if (strict.isPresent) appendLine("strict=${strict.get()}")
if (changeLogFile.isPresent) appendLine("changeLogFile=${changeLogFile.get()}")
}
}