Hello everyone,
The Functional Java trunk is a bit of a mess with build scripts and,
unsatisfied with existing solutions out there, I decided to write my own.
http://hackage.haskell.org/package/Lastik
You will see in trunk a file called Build.hs which currently does
(almost) all of what the build.xml script does and much more e.g.
incremental compile, starts a Scala REPL with a useful classpath. In
order to use it you will need Glasgow Haskell Compiler and the Lastik
and PureMD5* packages (from hackage). If, like me, you consider GHC
and cabal-install to be pre-requisite for a useful development
environment, then all you'll need to do is:
> cabal install lastik puremd5
If not, install GHC and cabal-install then do the above :)
I haven't addressed the maven issue and I'm not sure how to do that
anyway. Maybe it will go away! But probably not :( What is required to
keep the maven people happy?
* http://hackage.haskell.org/package/pureMD5
- --
Tony Morris
http://tmorris.net/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFKT0M5mnpgrYe6r60RAjZCAKCCS4GSvaslwXDnqAGdU77tx75OggCfQSBH
5N+E5HRDeANezpGWXgdwE78=
=Nuuw
-----END PGP SIGNATURE-----
Brad Clow wrote:
> I just tried it on a mac. Already had ghc & cabal installed.
>
> $ sudo cabal update
> $ sudo cabal install Lastik
> $ ./test
> no such file: fj.Tests
> ExitFailure 1
> $
>
> So shell script works, but looks like tests are not compiled.
>
> Regards
> brad
>
> 2009/7/5 Tony Morris <tmo...@tmorris.net>:
--
Tony Morris
http://tmorris.net/
In the meantime I have written a README that should help new users
http://functionaljava.googlecode.com/svn/trunk/README
--
Tony Morris
http://tmorris.net/
Ted Neward wrote:
> Speaking as one of those newbie users, one thing I've noticed is that after
> downloading cabal, I have to run "cabal update" first. (The "cabal install
> Lastik" step states this explicitly, but you might want it in your README.)
>
Agreed -- fixed. Thanks.
> One thing I will note, if there's ANY way to simplify this within the Ant
> script (maybe do all these downloads as part of an "ant init" step or
> something?), that would make it vastly more accessible to "average" Java
> devs. (Having said that, I dunno if fj is targeted at those folks or
> not--tell me to sit down & shut up if that's the case....)
>
I suppose one might use the <exec> task and call "ghc Build.hs -e
archive" to, for example, build the functionaljava.jar but is it really
worth it?
> Ted Neward | Principal Consultant, ThoughtWorks
> Java, .NET, XML Services
> Consulting, Teaching, Speaking, Writing
> http://www.thoughtworks.com | http://www.tedneward.com
>
>