o in hindsight giving warnings instead of reading the user's mind can slow down rapid development. If install is called and already installed, try a reinstall. If start is called and already started, try a restart. Do not give failures in these cases.

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@113431 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
plynch 2003-05-22 19:00:04 +00:00
parent 913a0e04f9
commit 05ad52be91

View File

@ -408,18 +408,11 @@ Maven has determined your <j:expr value="${maven.webserver.fullname}"/> webserve
<webserver:install />
</j:when>
<j:otherwise>
<ant:echo message=" ">
--------------------------------------------------------------------------
| Plugin Warning |
--------------------------------------------------------------------------
Webserver already installed
You may try
o webserver:reinstall
--------------------------------------------------------------------------
</ant:echo>
<log:warn trim="false">
Webserver could not be installed because it is already installed. Trying to
reinstall the webserver instead ...
</log:warn>
<webserver:reinstall />
</j:otherwise>
</j:choose>
@ -438,18 +431,11 @@ Maven has determined your <j:expr value="${maven.webserver.fullname}"/> webserve
<j:choose>
<j:when test="${context.getVariable('maven.webserver.installed') != 'true'}">
<ant:echo message=" ">
--------------------------------------------------------------------------
| Plugin Warning |
--------------------------------------------------------------------------
Webserver not yet installed
You may try
o webserver:install
--------------------------------------------------------------------------
</ant:echo>
<log:warn trim="false">
Webserver could not be reinstalled because it is not yet installed. Trying to
install the webserver instead ...
</log:warn>
<webserver:install />
</j:when>
<j:otherwise>
<webserver:reinstall />
@ -482,19 +468,11 @@ Maven has determined your <j:expr value="${maven.webserver.fullname}"/> webserve
</ant:echo>
</j:when>
<j:when test="${context.getVariable('maven.webserver.started') == 'true'}">
<ant:echo message=" ">
--------------------------------------------------------------------------
| Plugin Warning |
--------------------------------------------------------------------------
Webserver already started
You may try
o webserver:restart
o webserver:cycle
--------------------------------------------------------------------------
</ant:echo>
<log:warn trim="false">
Webserver could not be started because it is already started. Trying to restart
the webserver instead ...
</log:warn>
<webserver:restart />
</j:when>
<j:when test="${context.getVariable('maven.webserver.installed') == 'true'}">
<webserver:start />
@ -518,19 +496,11 @@ Maven has determined your <j:expr value="${maven.webserver.fullname}"/> webserve
<webserver:restart />
</j:when>
<j:otherwise>
<ant:echo message=" ">
--------------------------------------------------------------------------
| Plugin Warning |
--------------------------------------------------------------------------
Webserver not yet started
You may try
o webserver:start
o webserver:cycle
--------------------------------------------------------------------------
</ant:echo>
<log:warn trim="false">
Webserver could not be restarted because it is not yet started. Trying to start
the webserver ...
</log:warn>
<webserver:start />
</j:otherwise>
</j:choose>
</goal>
@ -548,7 +518,7 @@ Maven has determined your <j:expr value="${maven.webserver.fullname}"/> webserve
</j:when>
<j:otherwise>
<log:info trim="false">
==> Webserver already stopped!
Webserver already stopped!
</log:info>
</j:otherwise>
</j:choose>
@ -577,7 +547,7 @@ Maven has determined your <j:expr value="${maven.webserver.fullname}"/> webserve
<!-- already cleaned -->
<j:otherwise>
<log:info trim="false">
==> Webserver already cleaned!
Webserver already cleaned!
</log:info>
</j:otherwise>