org.sonatype.tycho.p2.repository
Class LocalTychoRepositoryIndex

java.lang.Object
  extended by org.sonatype.tycho.p2.repository.DefaultTychoRepositoryIndex
      extended by org.sonatype.tycho.p2.repository.LocalTychoRepositoryIndex
All Implemented Interfaces:
TychoRepositoryIndex

public class LocalTychoRepositoryIndex
extends DefaultTychoRepositoryIndex

Simplistic local Maven repository index to allow efficient lookup of all installed Tycho projects.


Field Summary
static java.lang.String ARTIFACTS_INDEX_RELPATH
           
static java.lang.String METADATA_INDEX_RELPATH
           
 
Fields inherited from class org.sonatype.tycho.p2.repository.DefaultTychoRepositoryIndex
ENCODING, EOL, gavs, INDEX_RELPATH
 
Constructor Summary
LocalTychoRepositoryIndex(java.io.File basedir, java.lang.String relpath)
           
 
Method Summary
static void addProject(java.io.File basedir, java.lang.String groupId, java.lang.String artifactId, java.lang.String version)
           
static void lock(java.io.File basedir)
           
 void save()
           
static void unlock(java.io.File basedir)
           
 
Methods inherited from class org.sonatype.tycho.p2.repository.DefaultTychoRepositoryIndex
addProject, addProject, getProjectGAVs, read, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ARTIFACTS_INDEX_RELPATH

public static final java.lang.String ARTIFACTS_INDEX_RELPATH
See Also:
Constant Field Values

METADATA_INDEX_RELPATH

public static final java.lang.String METADATA_INDEX_RELPATH
See Also:
Constant Field Values
Constructor Detail

LocalTychoRepositoryIndex

public LocalTychoRepositoryIndex(java.io.File basedir,
                                 java.lang.String relpath)
Method Detail

addProject

public static void addProject(java.io.File basedir,
                              java.lang.String groupId,
                              java.lang.String artifactId,
                              java.lang.String version)
                       throws java.io.IOException
Throws:
java.io.IOException

save

public void save()
          throws java.io.IOException
Throws:
java.io.IOException

unlock

public static void unlock(java.io.File basedir)

lock

public static void lock(java.io.File basedir)


Copyright © 2008-2011. All Rights Reserved.