Java Code Examples for org.wso2.carbon.utils.ServerConstants#CARBON_HOME
The following examples show how to use
org.wso2.carbon.utils.ServerConstants#CARBON_HOME .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: MediationLibraryServiceTestCase.java From micro-integrator with Apache License 2.0 | 6 votes |
/** * Wait until the zip file is copied to the synapse-libs directory or the default wait time is exceeded * * @param connectorZip */ private void waitUntilLibAvailable(String connectorZip) { String connectorZipPath = ServerConstants.CARBON_HOME + File.separator + "repository" + File.separator + "deployment" + File.separator + "server" + File.separator + "synapse-libs" + File.separator + connectorZip; File zipFile = new File(connectorZipPath); long startTime = System.currentTimeMillis(); while (((System.currentTimeMillis() - startTime) < 20000) && !zipFile.exists()) { try { Thread.sleep(500); } catch (InterruptedException e) { log.warn("Error while sleep the thread for 0.5 sec"); } } }
Example 2
Source File: MediationLibraryServiceTestCase.java From product-ei with Apache License 2.0 | 6 votes |
/** * Wait until the zip file is copied to the synapse-libs directory or the default wait time is exceeded * * @param connectorZip */ private void waitUntilLibAvailable(String connectorZip) { String connectorZipPath = ServerConstants.CARBON_HOME + File.separator + "repository" + File.separator + "deployment" + File.separator + "server" + File.separator + "synapse-libs" + File.separator + connectorZip; File zipFile = new File(connectorZipPath); long startTime = System.currentTimeMillis(); while (((System.currentTimeMillis() - startTime) < 20000) && !zipFile.exists()) { try { Thread.sleep(500); } catch (InterruptedException e) { log.warn("Error while sleep the thread for 0.5 sec"); } } }