public class MavenProjectUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static org.eclipse.core.runtime.IPath |
getFullPath(org.eclipse.core.resources.IProject project,
File file)
Returns the full, absolute path of the given file relative to the workspace.
|
static org.eclipse.core.runtime.IPath |
getProjectRelativePath(org.eclipse.core.resources.IProject project,
String resourceLocation)
Returns project resource for given filesystem location or null the location is outside of project.
|
static org.eclipse.core.runtime.IPath[] |
getResourceLocations(org.eclipse.core.resources.IProject project,
List<org.apache.maven.model.Resource> resources) |
static org.eclipse.core.runtime.IPath[] |
getSourceLocations(org.eclipse.core.resources.IProject project,
List<String> roots) |
public static org.eclipse.core.runtime.IPath getProjectRelativePath(org.eclipse.core.resources.IProject project,
String resourceLocation)
resourceLocation - absolute filesystem locationpublic static org.eclipse.core.runtime.IPath[] getResourceLocations(org.eclipse.core.resources.IProject project,
List<org.apache.maven.model.Resource> resources)
public static org.eclipse.core.runtime.IPath[] getSourceLocations(org.eclipse.core.resources.IProject project,
List<String> roots)
public static org.eclipse.core.runtime.IPath getFullPath(org.eclipse.core.resources.IProject project,
File file)
Copyright © 2005–2021 Eclipse Foundation. All rights reserved.