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

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

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

origin: mulesoft/mule

public static File getMuleLibFolder() {
 return new File(getMuleHomeFolder(), LIB_FOLDER);
}
origin: mulesoft/mule

private File findRepositoryFolder(File artifactFile) {
 while (!getMuleHomeFolder().equals(artifactFile) && !REPOSITORY_FOLDER.equals(artifactFile.getName())) {
  artifactFile = artifactFile.getParentFile();
 }
 if (!REPOSITORY_FOLDER.equals(artifactFile.getName()) || !artifactFile.isDirectory()) {
  throw new IllegalStateException("Unable to find repository folder for artifact " + artifactFile.getAbsolutePath());
 }
 return artifactFile;
}
origin: mulesoft/mule

/**
 * @return the mule runtime base folder.
 */
public static File getMuleBaseFolder() {
 File muleBase = getMuleBase().orElse(null);
 if (muleBase == null) {
  muleBase = getMuleHomeFolder();
 }
 return muleBase;
}
origin: mulesoft/mule

protected File getLogConfigFile(M artifactModel) {
 File logConfigFile = null;
 if (artifactModel.getLogConfigFile() != null) {
  Path logConfigFilePath = new File(artifactModel.getLogConfigFile()).toPath();
  Path muleHomeFolderPath = getMuleHomeFolder().toPath();
  logConfigFile = muleHomeFolderPath.resolve(logConfigFilePath).toFile();
 }
 return logConfigFile;
}
origin: mulesoft/mule

 @Test
 public void getsMuleHome() throws Exception {
  MuleTestUtils.testWithSystemProperty(MuleProperties.MULE_HOME_DIRECTORY_PROPERTY, muleHome.getRoot().getAbsolutePath(),
                     () -> {
                      File folder = MuleFoldersUtil.getMuleHomeFolder();
                      assertThat(folder.getAbsolutePath(),
                           equalTo(muleHome.getRoot().getAbsolutePath()));
                     });
 }
}
origin: org.mule.runtime/mule-module-deployment-model-impl

private File findRepositoryFolder(File artifactFile) {
 while (!getMuleHomeFolder().equals(artifactFile) && !REPOSITORY_FOLDER.equals(artifactFile.getName())) {
  artifactFile = artifactFile.getParentFile();
 }
 if (!REPOSITORY_FOLDER.equals(artifactFile.getName()) || !artifactFile.isDirectory()) {
  throw new IllegalStateException("Unable to find repository folder for artifact " + artifactFile.getAbsolutePath());
 }
 return artifactFile;
}
origin: org.mule.runtime/mule-module-deployment-model-impl

File containerRepository;
if (isStandalone() && !getBoolean("mule.mode.embedded")) {
 containerRepository = new File(getMuleHomeFolder(), "repository");
 if (!containerRepository.exists()) {
  if (!containerRepository.mkdirs()) {
org.mule.runtime.container.apiMuleFoldersUtilgetMuleHomeFolder

Popular methods of MuleFoldersUtil

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

Popular in Java

  • Updating database using SQL prepared statement
  • requestLocationUpdates (LocationManager)
  • runOnUiThread (Activity)
  • onCreateOptionsMenu (Activity)
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • Runner (org.openjdk.jmh.runner)
  • Logger (org.slf4j)
    The org.slf4j.Logger interface is the main user entry point of SLF4J API. It is expected that loggin
  • CodeWhisperer alternatives
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