OpenLiberty / ci.ant

Ant tasks for managing Liberty profile server instances #devops
Apache License 2.0
8 stars 36 forks source link

Changing the logging directory not possible for server start validation #76

Closed cthigh closed 5 years ago

cthigh commented 7 years ago

The issue described in https://github.com/WASdev/ci.maven/issues/279 needs to be fixed in ci.ant.

I have tried to change the logging directory (in the server.xml file). The plugin has not "seen" the server start.

It seems the Liberty plugin try to locate the "started message" in the default location.

[INFO] CWWKM2010I: Recherche de CWWKF0011I dans D:\Workspace\ZUDB0\RSA_9_Developer\SRVT_RecupererListeCartesPaylib-TEST\target\liberty\wlp\usr\servers\defaultSe rver\logs\messages.log. Cette recherche arrive à expiration après 30 secondes.

The problem is down in the AbstractTask.getLogFile() method where we use the server output directory and do not consider logDirectory attribute from the logging element such as: <logging logDirectory="/some/log/directory">

cherylking commented 5 years ago

The original maven issue references this as a duplicate and the associated PR is merged. That maven issue is closed. So closing this issue.