public class MuleStudioPathResolver extends Object
| Constructor and Description |
|---|
MuleStudioPathResolver() |
| Modifier and Type | Method and Description |
|---|---|
static File |
getFileResolvingPackages(org.mule.devkit.model.module.Module module,
String relativeFilePath)
|
static String |
getPathWithoutPackages(org.mule.devkit.model.module.Module module)
Given a
module, it returns the full path to the source file removing all the packages it has. |
public static String getPathWithoutPackages(org.mule.devkit.model.module.Module module)
module, it returns the full path to the source file removing all the packages it has.
Sample: The connector is under firstPackage.secondPackage.HelloConnector.java, which means a full path like the
following, /Users/
module - The module to reference withpublic static File getFileResolvingPackages(org.mule.devkit.model.module.Module module, String relativeFilePath)
module and a relativeFilePath, it creates a File and returns it. Keep in mind
the relativeFilePath should be relative to the actual module, which means that if you want to access
a root level, "../" must be added.
Sample:
relativeFilePath
must have the value of "../../../some/folder/file.txt"module - The module to reference withrelativeFilePath - the file to access (must be relative to the module/connector folder file)File.exists())#getPathWithoutPackages(org.mule.devkit.model.module.Module)}Copyright © 2010–2015 MuleSoft, Inc.. All rights reserved.