git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Newbie questions regarding jgit

From
Robin Rosenberg <robin.rosenberg@dewire.com>
Date
Nov 12, 2008, 22:36 UTC
Message-ID
<200811122336.55408.robin.rosenberg@dewire.com>

(resend without HTML) tisdag 11 november 2008 22:12:58 skrev Farrukh Najmi:

Show 7 quoted lines
> 
> I should clarify that I am not using eclipse nor am I using any GUI. My 
> objective is to have Java API access to git from within a servlet using 
> jgit. At present, all I have to go on is javadoc and its not clear where 
> to begin if I simply wish to create, read and update files in a git repo 
> from within the servlet java code.
>

We do not have a tutorial. The JUnit tests are the best examples on how to use the API today. I did some experiement wit J2EE and created some jsp tags, but that's for JSP only and mostly experimental. To comply with the JEE spec one should create a resource manager for Git to deal with scalability when many users try to access repos.

Show 6 quoted lines
> > I am git newbie and looking to use jgit in a servlet endpoint.
> >
> > Where can I find a public maven repo for gjit? It seems there is one 
> > somewhere because of the following file in src tree:
> >
> > jgit-maven/jgit/pom.xml

We do not use maven ourselves right now, though that might change, so there is not public maven repository for jgit just yet. What do I need to do to set it up?

Show 6 quoted lines
> >
> > For now I have built the jar using /make_jgit.sh and installed the pom 
> > manually using m
> >
> > mvn install:install-file -DpomFile=jgit-maven/jgit/pom.xml 
> > -Dfile=jgit.jar

The pom.xml works for building jgit. cd to the mave dir and type mvn and watch it build (and run unit tests if you ask it to).

-- robin
Message 1 of 1 in “Re: Newbie questions regarding jgit”
  1. Robin RosenbergNov 12, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.