Permalink
Browse files

Merge pull request #165 from tlbollwitt/forked-mods

Forked mods
  • Loading branch information...
2 parents bae5758 + 2fa2a48 commit b109f807b1fb23c5e998d59522de2c7cf66077ba @mosabua mosabua committed Dec 27, 2012
Showing with 6 additions and 2 deletions.
  1. +6 −2 src/main/java/com/jayway/maven/plugins/android/phase09package/ApklibMojo.java
@@ -321,8 +321,12 @@ private void generateIntermediateApk() throws MojoExecutionException
{
if ( apkLibraryArtifact.getType().equals( APKLIB ) )
{
- commands.add( "-S" );
- commands.add( getLibraryUnpackDirectory( apkLibraryArtifact ) + "/res" );
+ String apklibResDirectory = getLibraryUnpackDirectory( apkLibraryArtifact ) + "/res";
+ if ( new File( apklibResDirectory ).exists() )
+ {
+ commands.add( "-S" );
+ commands.add( apklibResDirectory );
+ }
}
}
commands.add( "--auto-add-overlay" );

0 comments on commit b109f80

Please sign in to comment.