![]() |
|
11.12.09 Compiling Scala With Ant For Ralio Access By Sean CorfieldI'm working on a Railo project that is using some Scala code for part of the system and I'm using Ant to drive the build process. The Scala website has a lot of tools and documentation and you can read about compiling Scala with Ant for the basics of how to get started. What they don't cover there is what is needed to bundle up that compiled Scala code and put it somewhere that Railo can get at. Here's the Ant task I use to create and deploy a JAR: ![]() ${www} defines my web root and ${scala.home} defines where Scala is installed on my system. Read on for more details of the build-scala and docs-scala tasks... The build-scala task compiles the .scala files to .class files (and is very similar to that shown on the Scala website): ![]() The docs-scala task generates JavaDoc-style API documentation from the source code. It's a good idea to do this automatically every time you build the system so the documentation is always up to date. I don't commit the generated docs to git so that no one accidentally gets hold of an old version. ![]() And finally the init-scala task sets up the Scala environment for the build / docs tasks: ![]() Continue reading this article. About the Author: MSean is currently Chief Technology Officer for Railo Technologies US. He has worked in IT for over twenty five years, starting out writing database systems and compilers then moving into mobile telecoms and finally into web development in 1997. Along the way, he worked on the ISO and ANSI C++ Standards committees for eight years and is a staunch advocate of software standards and best practice. Sean has championed and contributed to a number of CFML frameworks and was lead developer on Fusebox for two years.< |
|
|
|
|
-- SysAdminNews is an iEntry, Inc. publication -- iEntry, Inc. 2549 Richmond Rd. Lexington KY, 40509 2009 iEntry, Inc. All Rights Reserved Privacy Policy Legal archives | advertising info | news headlines | free newsletters | comments/feedback | submit article |