|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mule.devkit.generation.studio.utils.MuleStudioPathResolver
public class MuleStudioPathResolver
Utility class to help resolving paths within a DevKit's project
| Constructor Summary | |
|---|---|
MuleStudioPathResolver()
|
|
| Method Summary | |
|---|---|
static File |
getFileResolvingPackages(org.mule.devkit.model.module.Module module,
String relativeFilePath)
Given a module and a relativeFilePath, it creates a File and returns it. |
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MuleStudioPathResolver()
| Method Detail |
|---|
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 with
public 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)}
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||