Skip to content

bmarwell/cowsay-liberty-feature

Repository files navigation

WLP Feature 'cowsay'

mthmulders cowsay openliberty
Cowsay is what we need in Open Liberty!

badge Apache License v2.0

Table of Contents

Usage

See this blog article for an in-depth explanation why this plugin exists: Guide: How to develop an IBM OpenLiberty Feature

server.xml
<?xml version="1.0" encoding="UTF-8"?>
<server description="cowsay">
  <featureManager>
    <feature>usr:cowsay-1.0</feature>
  </featureManager>

  <cowsay>
    <startmessage message="Hello, Liberty!" cowfile="cow"/>
  </cowsay>
</server>
Expected Output
Launching defaultServer (WebSphere Application Server 22.0.0.5/wlp-1.0.64.cl220520220425-0301) on OpenJDK 64-Bit Server VM, version 1.8.0_332-b09 (en_US)
[AUDIT   ] CWWKE0001I: The server defaultServer has been launched.
[AUDIT   ] CWWKE0100I: This product is licensed for development, and limited production use. The full license terms can be viewed here: https://public.dhe.ibm.com/ibmdl/export/pub/software/websphere/wasdev/license/base_ilan/ilan/22.0.0.5/lafiles/en.html
[INFO    ] CWWKE0002I: The kernel started after 0.544 seconds
[INFO    ] CWWKF0007I: Feature update started.
[ERROR   ] COWSA0001I:  ________________
[ERROR   ] COWSA0001I: < Hello, Liberty >
[ERROR   ] COWSA0001I:  ----------------
[ERROR   ] COWSA0001I:         \   ^__^
[ERROR   ] COWSA0001I:          \  (oo)\_______
[ERROR   ] COWSA0001I:             (__)\       )\/\
[ERROR   ] COWSA0001I:                 ||----w |
[ERROR   ] COWSA0001I:                 ||     ||
[AUDIT   ] CWWKF0012I: The server installed the following features: [usr:cowsay-1.0].
[INFO    ] CWWKF0008I: Feature update completed in 0.075 seconds.
[AUDIT   ] CWWKF0011I: The defaultServer server is ready to run a smarter planet. The defaultServer server started in 0.620 seconds.

Building

You will need Java 11 to build this plugin, but Java 8 is enough as a runtime.

Compiling the plugin
./mvnw verify -Pdocs,run-its

About

Cowsay for YOUR Liberty!

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages