org.apache.hadoop.hive.ant
Class DistinctElementsClassPath

java.lang.Object
  extended by org.apache.tools.ant.ProjectComponent
      extended by org.apache.tools.ant.types.DataType
          extended by org.apache.tools.ant.types.Path
              extended by org.apache.hadoop.hive.ant.DistinctElementsClassPath
All Implemented Interfaces:
Cloneable, org.apache.tools.ant.types.ResourceCollection

public class DistinctElementsClassPath
extends org.apache.tools.ant.types.Path

This object represents a path as used by CLASSPATH or PATH environment variable. String representation of this object returns the path with unique elements to reduce the chances of exceeding the character limit problem on windows by removing if there are duplicate files(JARs) in the original class path.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.tools.ant.types.Path
org.apache.tools.ant.types.Path.PathElement
 
Field Summary
 
Fields inherited from class org.apache.tools.ant.types.Path
systemBootClasspath, systemClasspath
 
Fields inherited from class org.apache.tools.ant.types.DataType
checked, ref
 
Fields inherited from class org.apache.tools.ant.ProjectComponent
description, location, project
 
Constructor Summary
DistinctElementsClassPath(org.apache.tools.ant.Project project)
          Construct an empty Path.
DistinctElementsClassPath(org.apache.tools.ant.Project p, String path)
          Invoked by IntrospectionHelper for setXXX(Path p) attribute setters.
 
Method Summary
 String[] list()
          Returns the list of path elements after removing the duplicate files from the original Path
 String toString()
          Returns a textual representation of the path after removing the duplicate files from the original Path.
 
Methods inherited from class org.apache.tools.ant.types.Path
add, add, addDirset, addExisting, addExisting, addExtdirs, addFilelist, addFileset, addJavaRuntime, append, assertFilesystemOnly, clone, concatSystemBootClasspath, concatSystemClasspath, concatSystemClasspath, createPath, createPathElement, delegateIteratorToList, dieOnCircularReference, isFilesystemOnly, iterator, setCache, setLocation, setPath, setRefid, size, translateFile, translateFileSep, translatePath
 
Methods inherited from class org.apache.tools.ant.types.DataType
checkAttributesAllowed, checkChildrenAllowed, circularReference, dieOnCircularReference, dieOnCircularReference, getCheckedRef, getCheckedRef, getCheckedRef, getCheckedRef, getDataTypeName, getRefid, invokeCircularReferenceCheck, isChecked, isReference, noChildrenAllowed, pushAndInvokeCircularReferenceCheck, setChecked, tooManyAttributes
 
Methods inherited from class org.apache.tools.ant.ProjectComponent
getDescription, getLocation, getProject, log, log, setDescription, setLocation, setProject
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DistinctElementsClassPath

public DistinctElementsClassPath(org.apache.tools.ant.Project p,
                                 String path)
Invoked by IntrospectionHelper for setXXX(Path p) attribute setters.

Parameters:
p - the Project for this path.
path - the String path definition.

DistinctElementsClassPath

public DistinctElementsClassPath(org.apache.tools.ant.Project project)
Construct an empty Path.

Parameters:
project - the Project for this path.
Method Detail

list

public String[] list()
Returns the list of path elements after removing the duplicate files from the original Path

Overrides:
list in class org.apache.tools.ant.types.Path

toString

public String toString()
Returns a textual representation of the path after removing the duplicate files from the original Path.

Overrides:
toString in class org.apache.tools.ant.types.Path


Copyright © 2013 The Apache Software Foundation