com.buglabs.osgi.concierge.core.utils
Class ProjectUtils
java.lang.Object
com.buglabs.osgi.concierge.core.utils.ProjectUtils
public class ProjectUtils
- extends java.lang.Object
- Author:
- Angel Roman - roman@mdesystems.com
|
Method Summary |
static void |
configureBuilder(org.eclipse.core.resources.IProject project,
java.lang.String builderId)
Configures given project with a builder. |
static boolean |
existsProblems(org.eclipse.core.resources.IProject proj)
|
static java.io.File |
exporToJar(java.io.File location,
org.eclipse.core.resources.IProject project)
|
static java.lang.String |
formatName(java.lang.String projectName)
|
static java.lang.String |
formatNameToPackage(java.lang.String projectName)
|
static java.util.List |
getJarContents(org.eclipse.core.resources.IProject proj)
|
static org.eclipse.core.resources.IFile |
getManifestFile(org.eclipse.core.resources.IProject project)
|
static java.lang.String |
getProjectJarName(org.eclipse.core.resources.IProject project)
|
static java.net.URL |
getProjectJarURL(java.io.File destination,
org.eclipse.core.resources.IProject project)
|
static java.util.List |
getWSCGProjects()
Builds a list of Concierge Projects |
static void |
importProjectIntoWorkspace(org.eclipse.core.resources.IProject proj,
java.io.File jarFile)
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ProjectUtils
public ProjectUtils()
formatName
public static java.lang.String formatName(java.lang.String projectName)
getManifestFile
public static org.eclipse.core.resources.IFile getManifestFile(org.eclipse.core.resources.IProject project)
exporToJar
public static java.io.File exporToJar(java.io.File location,
org.eclipse.core.resources.IProject project)
throws org.eclipse.core.runtime.CoreException
- Throws:
org.eclipse.core.runtime.CoreException
getProjectJarName
public static java.lang.String getProjectJarName(org.eclipse.core.resources.IProject project)
throws org.eclipse.core.runtime.CoreException
- Throws:
org.eclipse.core.runtime.CoreException
getProjectJarURL
public static java.net.URL getProjectJarURL(java.io.File destination,
org.eclipse.core.resources.IProject project)
throws java.io.IOException,
java.net.URISyntaxException,
org.eclipse.core.runtime.CoreException
- Throws:
java.io.IOException
java.net.URISyntaxException
org.eclipse.core.runtime.CoreException
getJarContents
public static java.util.List getJarContents(org.eclipse.core.resources.IProject proj)
throws org.eclipse.core.runtime.CoreException
- Throws:
org.eclipse.core.runtime.CoreException
getWSCGProjects
public static java.util.List getWSCGProjects()
throws org.eclipse.core.runtime.CoreException
- Builds a list of Concierge Projects
- Returns:
- A list of projects in the workspace containing the Concierge
Project Nature.
- Throws:
org.eclipse.core.runtime.CoreException
importProjectIntoWorkspace
public static void importProjectIntoWorkspace(org.eclipse.core.resources.IProject proj,
java.io.File jarFile)
throws java.util.zip.ZipException,
java.io.IOException,
java.lang.reflect.InvocationTargetException,
java.lang.InterruptedException
- Throws:
java.util.zip.ZipException
java.io.IOException
java.lang.reflect.InvocationTargetException
java.lang.InterruptedException
formatNameToPackage
public static java.lang.String formatNameToPackage(java.lang.String projectName)
existsProblems
public static boolean existsProblems(org.eclipse.core.resources.IProject proj)
throws org.eclipse.core.runtime.CoreException
- Parameters:
proj - project that needs to be checked for errors
- Returns:
true if project has sever errors, false otherwise
- Throws:
org.eclipse.core.runtime.CoreException
configureBuilder
public static void configureBuilder(org.eclipse.core.resources.IProject project,
java.lang.String builderId)
throws org.eclipse.core.runtime.CoreException
- Configures given project with a builder. Will check if project already has builder associated with it, if not will add it.
- Parameters:
project - builderId -
- Throws:
org.eclipse.core.runtime.CoreException