Skip to content

Commit

Permalink
Renamed to generateRForApkLibDependency() for clarity.
Browse files Browse the repository at this point in the history
  • Loading branch information
hugojosefson committed Mar 4, 2011
1 parent 76ae384 commit 15faa5c
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -418,20 +418,20 @@ private void generateApklibR() throws MojoExecutionException {

apkLibGen.mkdirs();

// generateRForManifest(androidManifestFile.getAbsolutePath());
// generateRForApkLibDependency(androidManifestFile.getAbsolutePath());

for (Artifact artifact : getAllRelevantDependencyArtifacts()) {
if (artifact.getType().equals(APKLIB)) {
generateRForManifest(getLibraryUnpackDirectory(artifact) + "/" + "AndroidManifest.xml");
generateRForApkLibDependency(getLibraryUnpackDirectory(artifact) + "/" + "AndroidManifest.xml");
}
}

project.addCompileSourceRoot(genDirectory.getAbsolutePath());

}

private void generateRForManifest(String pathToManifest) throws MojoExecutionException {
getLog().debug("Generating R file for apklibrary: " + pathToManifest);
private void generateRForApkLibDependency(String pathToApkLibAndroidManifest) throws MojoExecutionException {
getLog().debug("Generating R file for apklibrary: " + pathToApkLibAndroidManifest);


CommandExecutor executor = CommandExecutor.Factory.createDefaultCommmandExecutor();
Expand All @@ -443,7 +443,7 @@ private void generateRForManifest(String pathToManifest) throws MojoExecutionExc
commands.add("-J");
commands.add(apkLibGen.getAbsolutePath());
commands.add("-M");
commands.add(pathToManifest);
commands.add(pathToApkLibAndroidManifest);
commands.add("-S");
commands.add(resourceDirectory.getAbsolutePath());
for (Artifact artifact: getAllRelevantDependencyArtifacts()) {
Expand Down

0 comments on commit 15faa5c

Please sign in to comment.