org.eclipse.emf.cdo.releng.version
Class VersionUtil
java.lang.Object
org.eclipse.emf.cdo.releng.version.VersionUtil
- public final class VersionUtil
- extends Object
Provides static utility methods for versions
, I/O tasks and access to the component
model.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BUILDER_ID
public static final String BUILDER_ID
- See Also:
- Constant Field Values
DEBUG
public static final boolean DEBUG
equals
public static boolean equals(Object o1,
Object o2)
serialize
public static byte[] serialize(Serializable object)
deserialize
public static Serializable deserialize(byte[] bytes)
normalize
public static org.osgi.framework.Version normalize(org.osgi.framework.Version version)
getFile
public static IFile getFile(IPath path,
String extension)
getContents
public static String getContents(IFile file)
throws CoreException,
IOException
- Throws:
CoreException
IOException
getLineDelimiter
public static String getLineDelimiter(IFile file)
throws IOException
- Throws:
IOException
getSHA1
public static byte[] getSHA1(IFile file)
throws NoSuchAlgorithmException,
CoreException,
IOException
- Throws:
NoSuchAlgorithmException
CoreException
IOException
copy
public static void copy(InputStream in,
OutputStream out)
throws IOException
- Throws:
IOException
close
public static void close(Closeable closeable)
delete
public static int delete(File file)
getComponentModel
public static org.eclipse.pde.core.IModel getComponentModel(IProject project)
getFeatureModel
public static org.eclipse.pde.internal.core.ifeature.IFeatureModel getFeatureModel(IProject project)
getComponentVersion
public static org.osgi.framework.Version getComponentVersion(org.eclipse.pde.core.IModel componentModel)
cleanReleaseProjects
public static void cleanReleaseProjects(String releasePath)
getBuild
public static org.eclipse.pde.core.build.IBuild getBuild(org.eclipse.pde.core.IModel componentModel)
throws CoreException
- Throws:
CoreException
getBuildModel
public static org.eclipse.pde.core.build.IBuildModel getBuildModel(org.eclipse.pde.core.IModel componentModel)
throws CoreException
- Throws:
CoreException
Copyright (c) 2011, 2012 Eike Stepper (Berlin, Germany) and others.