Kaydet (Commit) b82cc80e authored tarafından Noel Grandin's avatar Noel Grandin

java: NO_CWS_ATTACH parameter is unused

Change-Id: I3e465987ef3dd502faecaf3c5ce151013a5bf314
üst 7e394e77
...@@ -161,7 +161,6 @@ public class ClParser ...@@ -161,7 +161,6 @@ public class ClParser
COMMAND_LINE_OPTION_TO_TEST_PARAMETER.put("-debug", "DebugIsActive"); COMMAND_LINE_OPTION_TO_TEST_PARAMETER.put("-debug", "DebugIsActive");
COMMAND_LINE_OPTION_TO_TEST_PARAMETER.put("-log", "LoggingIsActive"); COMMAND_LINE_OPTION_TO_TEST_PARAMETER.put("-log", "LoggingIsActive");
COMMAND_LINE_OPTION_TO_TEST_PARAMETER.put("-dbout", "DataBaseOut"); COMMAND_LINE_OPTION_TO_TEST_PARAMETER.put("-dbout", "DataBaseOut");
COMMAND_LINE_OPTION_TO_TEST_PARAMETER.put("-nca", "NoCwsAttach");
} }
private String getParameterFor(String name) private String getParameterFor(String name)
......
...@@ -143,12 +143,6 @@ public interface PropertyName { ...@@ -143,12 +143,6 @@ public interface PropertyName {
* environment * environment
*/ */
String CYGWIN = "Cygwin"; String CYGWIN = "Cygwin";
/**
* parameter name: "NoCwsAttach"<p>
* If this parameter is set to "true" , a status of CWS-UnoAPI-Tests was not attached to EIS<p>
* @see complex.unoapi.CheckModuleAPI
*/
String NO_CWS_ATTACH = "NoCwsAttach";
/** /**
* internal only, no parameter * internal only, no parameter
*/ */
......
...@@ -530,23 +530,18 @@ public class CheckModuleAPI extends ComplexTestCase ...@@ -530,23 +530,18 @@ public class CheckModuleAPI extends ComplexTestCase
private void setUnoApiCwsStatus(boolean status) private void setUnoApiCwsStatus(boolean status)
{ {
final String version = (String) param.get(PropertyName.VERSION);
if (!param.getBool(PropertyName.NO_CWS_ATTACH)) if (version.startsWith("cws_"))
{ {
try
final String version = (String) param.get(PropertyName.VERSION);
if (version.startsWith("cws_"))
{ {
try
{
final CwsDataExchangeImpl cde = new CwsDataExchangeImpl(param, log); final CwsDataExchangeImpl cde = new CwsDataExchangeImpl(param, log);
cde.setUnoApiCwsStatus(status); cde.setUnoApiCwsStatus(status);
} }
catch (ParameterNotFoundException ex) catch (ParameterNotFoundException ex)
{ {
log.println("ERROR: could not wirte status to EIS database: " + ex.toString()); log.println("ERROR: could not wirte status to EIS database: " + ex.toString());
}
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment