threads / discuss / 16295

Re: Newbie questions regarding jgit

Subject: Re: Newbie questions regarding jgit

## tl;dr

One message between Nov 12, 2008 and Nov 12, 2008.

replies: 0people: 1as markdown or json

Robin Rosenberg· Nov 12, 2008, 22:36 UTC · lore

(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

← back to recent threads