org.eclipse.emf.cdo.releng.version
Class VersionUtil

java.lang.Object
  extended by 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.


Field Summary
static String BUILDER_ID
           
static boolean DEBUG
           
 
Method Summary
static void cleanReleaseProjects(String releasePath)
           
static void close(Closeable closeable)
           
static void copy(InputStream in, OutputStream out)
           
static int delete(File file)
           
static Serializable deserialize(byte[] bytes)
           
static boolean equals(Object o1, Object o2)
           
static org.eclipse.pde.core.build.IBuild getBuild(org.eclipse.pde.core.IModel componentModel)
           
static org.eclipse.pde.core.build.IBuildModel getBuildModel(org.eclipse.pde.core.IModel componentModel)
           
static org.eclipse.pde.core.IModel getComponentModel(IProject project)
           
static org.osgi.framework.Version getComponentVersion(org.eclipse.pde.core.IModel componentModel)
           
static String getContents(IFile file)
           
static org.eclipse.pde.internal.core.ifeature.IFeatureModel getFeatureModel(IProject project)
           
static IFile getFile(IPath path, String extension)
           
static String getLineDelimiter(IFile file)
           
static byte[] getSHA1(IFile file)
           
static org.osgi.framework.Version normalize(org.osgi.framework.Version version)
           
static byte[] serialize(Serializable object)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BUILDER_ID

public static final String BUILDER_ID
See Also:
Constant Field Values

DEBUG

public static final boolean DEBUG
Method Detail

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.