Skip to content

Latest commit

 

History

History
30 lines (21 loc) · 989 Bytes

libertyStart.md

File metadata and controls

30 lines (21 loc) · 989 Bytes

libertyStart task

Start a Liberty server in the background. The server instance is automatically created if it does not exist.

dependsOn

libertyStart depends on libertyCreate, and deploy if configured.

Parameters

See the Liberty server configuration properties for common server configuration.

Example

clean is set to false by default unless specified in build.gradle as shown in this example.
To set up verification of applications installed from deploy, set verifyAppStartTimeout to the number of seconds the server should spend checking for start messages in the message logs before it times out.

apply plugin: 'liberty'

liberty {
    server {
        name = 'myServer'
        
        // Clean logs, workarea, apps, dropins on server startup 
        clean = true
        
        // Wait 30 seconds to verify application start
        verifyAppStartTimeout = 30
    }
}