3

i'm developing for Android in Scala following instructions from Eclipse, Android, Scala made easy but still does not work. Everything works great in my development machine, building within Eclipse.

But now i need to build the project with Ant, outside of Eclipse, and i'm lost.

I still want to use this method, don't want to use SBT. So i'm assuming i should do a "headless build" of the plugin... any hint?

Community
  • 1
  • 1
ferostar
  • 7,074
  • 7
  • 38
  • 61

1 Answers1

0

You really should try and use SBT. There is a great plugin for sbt on github with a good getting started tutorial. Also, SBT's wiki has some really good information for how to go beyond the basic sbt.

The sbt-android plugin has a really nice feature where it adds Typed Resources to your android build so you can do something like:

var button:Button = activity.findView(TR.myButtonInTheLayout)

Type safe layout management... its a pretty handy feature.

Sbt-android also supports using standard scala directory layout or standard android directory layout, whatever your comfortable with.

zarthross
  • 763
  • 6
  • 13
  • I wouldn't be the only one working with the project, so the idea is to use the same Eclipse environment every Android dev is used to (with the bonus of coding in Scala). – ferostar Aug 15 '12 at 16:23
  • Like you said, your already building in eclipse but can't get ant to work correctly. Why not use SBT instead of ANT? – zarthross Aug 26 '12 at 19:40