Any reason your not using eGit? Seems like it would be a lot better to  
make a scala wrapper around that rather than use exec.

Cheers, Tim

Sent from my iPhone

On 2 Nov 2009, at 21:58, wapgui <[email protected]> wrote:

>
> Hi,
>
> I'm playing a littlebit with Lift and git and the following code looks
> good for me (doesn't mean that it is working).
> No errors, but also no output. Where am I wrong?
>
> Cheers
> Torsten
>
> class HelloWorld {
>  def howdy = <span>Welcome to scagit using {exec("git --version")._1}
> </span>
>  var tree = exec("git ls-tree HEAD","/home/git/repositories/
> scagit.git")._1
>  var elem = List.fromString(tree,'\0')
>  //def list = elem.foreach(files => println(files))
>  def list(xhtml:NodeSeq):NodeSeq = {
>    //elem.foreach(file => println(file))
>    elem.flatMap(file => bind("list", xhtml, "item" -> <p>file</p>))
>  }
> }
>
> <p><lift:HelloWorld.howdy /></p>
> <lift:HelloWorld.list>
>   <item />
> </lift:HelloWorld.list>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to