com.android.sdklib.build
Class DependencyFile

java.lang.Object
  extended by com.android.sdklib.build.DependencyFile

public class DependencyFile
extends java.lang.Object

Parse a dependency file.


Constructor Summary
DependencyFile(java.io.File dependencyFile, java.util.List<java.io.File> sourceFolders)
           
 
Method Summary
 java.io.File getFile()
           
 java.io.File getFirstOutput()
          Shortcut access to the first output file.
 java.util.List<java.io.File> getInputFiles()
           
 java.util.List<java.io.File> getOutputFiles()
           
 java.util.List<java.io.File> getSdkInputFiles()
           
 boolean hasInput(java.io.File file)
          Returns whether the given file is a dependency for this source file.
 boolean hasOutput(java.io.File file)
          Returns whether the given file is an ouput of this source file.
 boolean needCompilation()
          Deprecated. Use Gradle instead!
 void parse()
          Parses the dependency file(s)
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DependencyFile

public DependencyFile(@NonNull
                      java.io.File dependencyFile,
                      @NonNull
                      java.util.List<java.io.File> sourceFolders)
Method Detail

getFile

@NonNull
public java.io.File getFile()

getInputFiles

@NonNull
public java.util.List<java.io.File> getInputFiles()

getSdkInputFiles

@NonNull
public java.util.List<java.io.File> getSdkInputFiles()

getOutputFiles

@NonNull
public java.util.List<java.io.File> getOutputFiles()

getFirstOutput

public java.io.File getFirstOutput()
Shortcut access to the first output file. This is useful for generator that only output one file.


hasInput

public boolean hasInput(@NonNull
                        java.io.File file)
Returns whether the given file is a dependency for this source file.

Note that the source file itself is not tested against. Therefore if file.equals(getSourceFile() returns true, this method will return false.

Parameters:
file - the file to check against
Returns:
true if the given file is a dependency for this source file.

hasOutput

public boolean hasOutput(@NonNull
                         java.io.File file)
Returns whether the given file is an ouput of this source file.

Parameters:
file - the file to test.
Returns:
true if the file is an output file.

parse

public void parse()
           throws java.io.IOException
Parses the dependency file(s)

Throws:
java.io.IOException

needCompilation

@Deprecated
public boolean needCompilation()
Deprecated. Use Gradle instead!

Checks whether a need for compilation is needed. THIS ONLY CHECK TIMESTAMP AND IS NOT A VALID WAY OF DOING THIS CHECK

Returns:
true if file timestamp detect a need for compilation

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object