com.android.builder.model
Interface BaseArtifact

All Known Subinterfaces:
AndroidArtifact, JavaArtifact

public interface BaseArtifact

The base information for all generated artifacts


Method Summary
 java.lang.String getAssembleTaskName()
          Returns the name of the task used to generate the artifact output(s).
 java.io.File getClassesFolder()
          Returns the folder containing the class files.
 java.lang.String getCompileTaskName()
           
 Dependencies getDependencies()
          Returns the resolved dependencies for this artifact.
 java.lang.String getJavaCompileTaskName()
          Deprecated. use getCompileTaskName() STOPSHIP remove before 1.0
 SourceProvider getMultiFlavorSourceProvider()
          A SourceProvider specific to the flavor combination.
 java.lang.String getName()
          Name of the artifact.
 SourceProvider getVariantSourceProvider()
          A SourceProvider specific to the variant.
 

Method Detail

getName

@NonNull
java.lang.String getName()
Name of the artifact. This should match ArtifactMetaData.getName().


getJavaCompileTaskName

@NonNull
@Deprecated
java.lang.String getJavaCompileTaskName()
Deprecated. use getCompileTaskName() STOPSHIP remove before 1.0

Returns:
the name of the task used to compile Java code.

getCompileTaskName

@NonNull
java.lang.String getCompileTaskName()
Returns:
the name of the task used to compile the code.

getAssembleTaskName

@NonNull
java.lang.String getAssembleTaskName()
Returns the name of the task used to generate the artifact output(s).

Returns:
the name of the task.

getClassesFolder

@NonNull
java.io.File getClassesFolder()
Returns the folder containing the class files. This is the output of the java compilation.

Returns:
a folder.

getDependencies

@NonNull
Dependencies getDependencies()
Returns the resolved dependencies for this artifact. This is a composite of all the dependencies for that artifact: default config + build type + flavor(s).s

Returns:
The dependencies.

getVariantSourceProvider

@Nullable
SourceProvider getVariantSourceProvider()
A SourceProvider specific to the variant. This can be null if there is no flavors as the "variant" is equal to the build type.

Returns:
the variant specific source provider

getMultiFlavorSourceProvider

@Nullable
SourceProvider getMultiFlavorSourceProvider()
A SourceProvider specific to the flavor combination. For instance if there are 2 dimensions, then this would be Flavor1Flavor2, and would be common to all variant using these two flavors and any of the build type. This can be null if there is less than 2 flavors.

Returns:
the multi flavor specific source provider