Skip to content
This repository has been archived by the owner on Oct 26, 2022. It is now read-only.

Commit

Permalink
fix aidlTask.
Browse files Browse the repository at this point in the history
  • Loading branch information
Yasushi authored and jberkel committed Apr 8, 2010
1 parent 1dc54a3 commit ee96247
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/main/scala/AndroidProject.scala
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,12 @@ abstract class AndroidProject(info: ProjectInfo) extends DefaultProject(info) {
if(aidlPaths.isEmpty)
Process(true)
else
aidlPath.absolutePath :: "-o" :: mainJavaSourcePath.absolutePath :: aidlPaths.toList
aidlPaths.toList.map {ap =>
aidlPath.absolutePath :: "-o" + mainJavaSourcePath.absolutePath :: "-I" + mainJavaSourcePath.absolutePath :: ap :: Nil}.foldLeft(None.asInstanceOf[Option[ProcessBuilder]]){(f, s) => f match{
case None => Some(s)
case Some(first) => Some(first ## s)
}
}.get
}

override def compileAction = super.compileAction dependsOn(aaptGenerate, aidl)
Expand Down

0 comments on commit ee96247

Please sign in to comment.