org.kuali.common.util
Class RepositoryUtils

java.lang.Object
  extended by org.kuali.common.util.RepositoryUtils

Deprecated.

@Deprecated
public class RepositoryUtils
extends Object


Constructor Summary
RepositoryUtils()
          Deprecated.  
 
Method Summary
protected static boolean addClassifierToFilename(String classifier)
          Deprecated. Return true if classifier should become part of the filename
static void copyArtifact(String repository, Artifact artifact)
          Deprecated.  
static void copyArtifactToDirectory(String repository, Artifact artifact, File directory)
          Deprecated.  
static void copyArtifactToFile(String repository, Artifact artifact, File file)
          Deprecated.  
static File getDefaultLocalRepositoryDir()
          Deprecated.  
protected static String getDelimitedString(List<String> tokens, int delimiterCount, String delimiter)
          Deprecated.  
protected static int getDelimiterCount(List<String> tokens)
          Deprecated.  
static File getFile(Artifact artifact)
          Deprecated.  
static File getFile(File localRepositoryDir, Artifact artifact)
          Deprecated.  
static String getFilename(Artifact artifact)
          Deprecated.  
static String getRepositoryPath(Artifact artifact)
          Deprecated.  
static Artifact parseArtifact(String gav)
          Deprecated.  Order is groupId:artifactId:version:classifier:type:scope.
static Dependency parseDependency(String gav)
          Deprecated.  Order is groupId:artifactId:version:classifier:type:scope.
static String toEmpty(String token)
          Deprecated. Return the empty string if token is blank, "NULL", or "NONE"
static String toNull(String token)
          Deprecated. Return null if token is blank, "NULL", or "NONE"
static String toString(Artifact artifact)
          Deprecated.  Order is groupId:artifactId:version:classifier:type.
static String toString(Dependency dependency)
          Deprecated.  Order is groupId:artifactId:version:classifier:type:scope.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RepositoryUtils

public RepositoryUtils()
Deprecated. 
Method Detail

copyArtifact

public static final void copyArtifact(String repository,
                                      Artifact artifact)
Deprecated. 

copyArtifactToDirectory

public static final void copyArtifactToDirectory(String repository,
                                                 Artifact artifact,
                                                 File directory)
Deprecated. 

copyArtifactToFile

public static final void copyArtifactToFile(String repository,
                                            Artifact artifact,
                                            File file)
Deprecated. 

toString

public static final String toString(Artifact artifact)
Deprecated. 

Order is groupId:artifactId:version:classifier:type. The ordering here matches the order Maven uses to create actual files. Which is different from what the toString() method on Maven's Artifact object produces.

Trailing :'s are omitted.

If every field is left blank, :::: is returned.

   org.kuali.common:kuali-jdbc:1.0.0:webapp:jar  - groupId + artifactId + version + classifier + type
   org.kuali.common:kuali-jdbc:1.0.0::jar        - no classifier
   ::::                                          - Every field is blank
   org.kuali.common                              - groupId only
   ::::jar                                       - type only
   :kuali-jdbc:::jar                             - no groupId, version, classifier, or type 
   org.kuali.common:kuali-jdbc                   - groupId + artifactId
   org.kuali.common:kuali-jdbc:1.0.0             - groupId + artifactId + version 
   org.kuali.common:kuali-jdbc:1.0.0:webapp      - no type
   org.kuali.common:kuali-jdbc:1.0.0             - no classifier or type
   org.kuali.common:kuali-jdbc::webapp:jar       - no version
 


toString

public static final String toString(Dependency dependency)
Deprecated. 

Order is groupId:artifactId:version:classifier:type:scope. The ordering here matches the order Maven uses to create actual files. As opposed to what the toString() method on Maven's Dependency object produces.

Trailing :'s are omitted.

If every field is left blank, ::::: is returned.

   org.kuali.common:kuali-jdbc:1.0.0:webapp:jar:compile - groupId + artifactId + version + classifier + type + scope
   org.kuali.common:kuali-jdbc:1.0.0::jar:compile       - no classifier
   org.kuali.common:kuali-jdbc:1.0.0:webapp:jar:        - no scope
   :::::                                                - Every field is blank
   org.kuali.common                                     - groupId only
   :::::compile                                         - scope only
   :kuali-jdbc:::jar                                    - artifactId + type 
   org.kuali.common:kuali-jdbc                          - groupId + artifactId
   org.kuali.common:kuali-jdbc:1.0.0                    - groupId + artifactId + version 
   org.kuali.common:kuali-jdbc:1.0.0:webapp             - groupId + artifactId + version + classifier
   org.kuali.common:kuali-jdbc:1.0.0:::compile          - no classifier or type
   org.kuali.common:kuali-jdbc::webapp:jar:compile      - no version
 


parseArtifact

public static final Artifact parseArtifact(String gav)
Deprecated. 

Order is groupId:artifactId:version:classifier:type:scope.


parseDependency

public static final Dependency parseDependency(String gav)
Deprecated. 

Order is groupId:artifactId:version:classifier:type:scope.


getDelimitedString

protected static final String getDelimitedString(List<String> tokens,
                                                 int delimiterCount,
                                                 String delimiter)
Deprecated. 

getDelimiterCount

protected static final int getDelimiterCount(List<String> tokens)
Deprecated. 

toNull

public static String toNull(String token)
Deprecated. 
Return null if token is blank, "NULL", or "NONE"


toEmpty

public static String toEmpty(String token)
Deprecated. 
Return the empty string if token is blank, "NULL", or "NONE"


getRepositoryPath

public static final String getRepositoryPath(Artifact artifact)
Deprecated. 

addClassifierToFilename

protected static boolean addClassifierToFilename(String classifier)
Deprecated. 
Return true if classifier should become part of the filename


getFilename

public static final String getFilename(Artifact artifact)
Deprecated. 

getDefaultLocalRepositoryDir

public static final File getDefaultLocalRepositoryDir()
Deprecated. 

getFile

public static final File getFile(Artifact artifact)
Deprecated. 

getFile

public static final File getFile(File localRepositoryDir,
                                 Artifact artifact)
Deprecated. 


Copyright © 2010–2014 The Kuali Foundation. All rights reserved.