com.android.build.api.transform
Class SecondaryFile

java.lang.Object
  extended by com.android.build.api.transform.SecondaryFile

public class SecondaryFile
extends Object

A secondary input file for a Transform. A secondary input is part of the transform inputs and can be decorated to indicate if a change to the input would trigger a non incremental Transform#transform(Context, Collection, Collection, Collection, TransformOutputProvider, boolean) call


Constructor Summary
SecondaryFile(File secondaryInputFile, boolean supportsIncrementalBuild)
           
 
Method Summary
 File getFile()
          Returns the file handle for this secondary input to a Transform.
 boolean supportsIncrementalBuild()
          Returns true if this secondary input changes can be handled by the receiving Transform incrementally.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SecondaryFile

public SecondaryFile(File secondaryInputFile,
                     boolean supportsIncrementalBuild)
Method Detail

supportsIncrementalBuild

public boolean supportsIncrementalBuild()
Returns true if this secondary input changes can be handled by the receiving Transform incrementally. If false, a change to the file returned by getFile() will trigger a non incremental build.

Returns:
true when the input file changes can be handled incrementally, false otherwise.

getFile

public File getFile()
Returns the file handle for this secondary input to a Transform.

Returns:
a file handle.