Tabnine Logo
MuleFoldersUtil.getModulesTempFolder
Code IndexAdd Tabnine to your IDE (free)

How to use
getModulesTempFolder
method
in
org.mule.runtime.container.api.MuleFoldersUtil

Best Java code snippets using org.mule.runtime.container.api.MuleFoldersUtil.getModulesTempFolder (Showing top 2 results out of 315)

origin: mulesoft/mule

protected File createModulesTemporaryFolder() {
 File modulesTempFolder = getModulesTempFolder();
 if (modulesTempFolder.exists()) {
  try {
   cleanDirectory(modulesTempFolder);
  } catch (IOException e) {
   throw new MuleRuntimeException(createStaticMessage(format(
                                "Could not clean up folder %s, validate that the process has permissions over that directory",
                                modulesTempFolder.getAbsolutePath())));
  }
 } else {
  if (!modulesTempFolder.mkdirs()) {
   throw new MuleRuntimeException(createStaticMessage(format(
                                "Could not create folder %s, validate that the process has permissions over that directory",
                                modulesTempFolder.getAbsolutePath())));
  }
 }
 return modulesTempFolder;
}
origin: mulesoft/mule

@Test
public void shouldDeleteTemporaryModuleExportedServicesFilesWhenCreated() throws Exception {
 testWithMuleHome(moduleDiscoverer -> {
  assertThat(getModulesTempFolder().list().length, is(0));
  File serviceFile = createTempFile(getModulesTempFolder().toPath(), "someService", "tmp").toFile();
  // Creating a new classpath module discoverer will delete any file in the modules temporary folder
  new ClasspathModuleDiscoverer(classLoader);
  assertThat(serviceFile.exists(), is(false));
  assertThat(getModulesTempFolder().list().length, is(0));
 });
}
org.mule.runtime.container.apiMuleFoldersUtilgetModulesTempFolder

Popular methods of MuleFoldersUtil

  • getExecutionFolder
  • getServicesFolder
  • getDomainFolder
  • getAppDataFolder
  • getDomainsFolder
  • getMuleBaseFolder
  • getAppFolder
  • getAppsFolder
  • getMuleHomeFolder
  • getMuleLibFolder
  • getServerPluginsFolder
  • getServicesTempFolder
  • getServerPluginsFolder,
  • getServicesTempFolder,
  • getAppLibFolder,
  • getAppLibsFolderPath,
  • getAppPluginsFolderPath,
  • getAppSharedLibsFolderPath,
  • getConfFolder,
  • getDomainLibFolder,
  • getPatchesLibFolder

Popular in Java

  • Making http requests using okhttp
  • runOnUiThread (Activity)
  • setScale (BigDecimal)
  • findViewById (Activity)
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • BigInteger (java.math)
    An immutable arbitrary-precision signed integer.FAST CRYPTOGRAPHY This implementation is efficient f
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement. A servlet is a small Java program that runs within
  • Best IntelliJ plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now