Building Android app from ant via Hudson - chicken and egg problem

Posted by Eno on Stack Overflow See other posts from Stack Overflow or by Eno
Published on 2010-04-23T21:47:47Z Indexed on 2010/04/23 21:53 UTC
Read the original article Hit count: 309

Filed under:
|
|
|
|

When using an Android-generated ant build file, the file references your SDK installation via an sdk.dir property inside the local.properties files which is generated by "android update project -p .".

The comments in build.xml suggest that local.properties should NOT be checked into version control.

BUT, when you run your build from Hudson, it does a fresh checkout of your code from version control, hence local.properties does not exist and subsequently the build fails without sdk.dir being set. So its kind of chicken and egg problem. As a workaround I have checked local.properties into version control for now (nobody else will use it) but I was curious as to how other developers had tackled this problem ?

© Stack Overflow or respective owner

Related posts about android

Related posts about ant