This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import aQute.bnd.annotation.metatype.Meta; | |
import com.liferay.portal.configuration.metatype.annotations.ExtendedObjectClassDefinition; | |
import com.liferay.portal.configuration.metatype.bnd.util.ConfigurableUtil; | |
import org.osgi.framework.InvalidSyntaxException; | |
import org.osgi.service.cm.Configuration; | |
import org.osgi.service.cm.ConfigurationAdmin; | |
import org.osgi.service.component.annotations.Component; | |
import org.osgi.service.component.annotations.Reference; | |
import java.io.IOException; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Make sure we can use the classes from the Download plugin, like the Verify below | |
buildscript { | |
repositories { jcenter() } | |
dependencies { classpath group: "de.undercouch", name: "gradle-download-task", version: "4.0.4" } | |
} | |
apply plugin: de.undercouch.gradle.tasks.download.DownloadTaskPlugin | |
[ | |
'SHA-256': 'liferay.workspace.bundle.checksum[sha-256]', | |
'MD5': 'liferay.workspace.bundle.checksum[md5]', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// [root]/build.gradle | |
// A sanity check in case the Tomcat version inside the bundle changes and we miss it | |
[ | |
(initBundle): gradle.liferayWorkspace.homeDir, | |
(distBundle): file("${buildDir}/dist") | |
].each {Task task, File destDir -> | |
task.configure { | |
doLast { | |
println "Checking Tomcat files in " + destDir |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd"> | |
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/"> | |
<appender class="org.apache.log4j.rolling.RollingFileAppender" name="TEXT_FILE"> | |
<!-- Inspired by: http://www.baeldung.com/java-logging-rolling-file-appenders --> | |
<!-- | |
=== What happens when current log file needs to be rotated? === | |
--> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
... | |
"Parameters": { | |
"DbRdsMultiAZ": { | |
"Type": "String", | |
"Description": "Specifies if the RDS instance is deployed in multiple Availability Zones.", | |
"AllowedValues": [ | |
"yes", | |
"no" | |
], |