git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: [JGIT] Request for help
@ 2009-09-04  7:12 Mark Struberg
  0 siblings, 0 replies; 28+ messages in thread
From: Mark Struberg @ 2009-09-04  7:12 UTC (permalink / raw)
  To: Jonas Fonseca, Shawn O. Pearce
  Cc: Johannes Schindelin, Nasser Grainawi, Git Mailing List

Hi!

Since I work on the sonatype repo and also being a maven guy, I'd be happy to help!

There are a few patches from the work we've done to come the next weeks anyway, starting with IgnoreRules and stuff. I think we still have to improve the code quality of SimpleRepository but I'd be happy to hear your opinion on this too, so I maybe send a RFC.

If you like to go with maven for JGIT, we have 2 options:

1.) Use the current directory structure and use the configuration you can see in the sonatype poms Jason did. E.g all paths have to be set in pom.sml


2.) Do a complete rework and move over to the standard maven layout [1] . This may include moving org.spearce.jgit.test/ to org.spearce.jgit/src/test/java resp org.spearce.jgit/src/test/resources. 
In the meantime Eclipse is really fine with handling separate target folders for production code and test classes (target/classes vs target/test-classes) so this is not a showstopper any more.


LieGrue,
strub

[1] http://maven.apache.org/guides/introduction/introduction-to-the-standard-directory-layout.html


--- On Thu, 9/3/09, Shawn O. Pearce <spearce@spearce.org> wrote:

> From: Shawn O. Pearce <spearce@spearce.org>
> Subject: Re: [JGIT] Request for help
> To: "Jonas Fonseca" <jonas.fonseca@gmail.com>
> Cc: "Johannes Schindelin" <Johannes.Schindelin@gmx.de>, "Nasser Grainawi" <nasser@codeaurora.org>, "Git Mailing List" <git@vger.kernel.org>
> Date: Thursday, September 3, 2009, 5:52 PM
> Jonas Fonseca <jonas.fonseca@gmail.com>
> wrote:
> > On Thu, Sep 3, 2009 at 10:42, Shawn O. Pearce<spearce@spearce.org>
> wrote:
> > > Actually, now that we have forked out of the
> egit.git repository,
> > > I want to refactor the layout of the JGit project
> to be more maven
> > > like, and have a proper top-level pom to build
> things.
> > 
> > What kind of module structure do you have in mind? Do
> you want to move
> > some of the modules/subdirectories?
> > Some refactoring of the maven setup for JGit back was
> done back in
> > April in sonatype's (a maven company) JGit clone. It
> is not
> > signed-off, but can serve as a reference.
> 
> Yea, I was hoping they would contribute this back as
> patches,
> but thus far they haven't.
>  
> > The Maven layout in the sonatype clone simply uses the
> Eclipse project layout.
> > 
> > pom.xml: JGit :: Parent
> >  |- org.spearce.jgit/pom.xml: JGit :: Core
> >  |- org.spearce.jgit.pgm/pom.xml: JGit ::
> Programs
> >  `- org.spearce.jgit.test/pom.xml: JGit :: Test
> > 
> > However, having tests in a separate module can be both
> good/bad. For
> > example, they will not automatically get run when you
> only build the
> > Core module.
> 
> Yea, I know.  This is one area where Maven is just
> whack, by putting
> the tests in the same project the Maven plugin for Eclipse
> puts
> them into the same classpath, which means you can see test
> code
> from project code.  Wrong.  They should be
> different projects so
> the test classpath is isolated.
> 
> However.  This is a bug in the Eclipse plugin I think,
> not
> necessarily with Maven's approach of trying to keep tests
> alongside
> the code they test.  Thus we probably want:
> 
>   pom.xml: JGit :: Parent
>    |- jgit-lib/pom.xml: JGit
>    | 
>    src/main/java  <-- from
> org.spearce.jgit/src
>    | 
>    src/test/java  <-- from
> org.spearce.jgit.test/src
>    |
>    `- jgit-pgm/pom.xml: JGit pgm
>          src/main/java 
> <-- from org.spearce.jgit.pgm/src
> 
> IIRC there is Maven support to create proper MANIFEST.MF
> files for
> OSGI bundles, which is what we need for the Eclipse plugin
> support.
> That should be able to replace the META-INF/MANIFEST.MF in
> the top
> of each of the current directories.
> 
> > Anyway, I would like to help.
> 
> Please post patches; formatted with -M.  I do want to
> do this, I just
> don't have the patience and Maven-fu to write the new poms
> myself.
> 
> -- 
> Shawn.
> --
> To unsubscribe from this list: send the line "unsubscribe
> git" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>




      

^ permalink raw reply	[flat|nested] 28+ messages in thread
* [JGIT] Request for help
@ 2009-09-02 23:28 Nasser Grainawi
  2009-09-03  0:04 ` Johannes Schindelin
  2009-09-03  1:23 ` Shawn O. Pearce
  0 siblings, 2 replies; 28+ messages in thread
From: Nasser Grainawi @ 2009-09-02 23:28 UTC (permalink / raw)
  To: Git Mailing List; +Cc: Shawn O. Pearce

Hello all,

I'm looking to add 'git patch-id' to JGit and I could use a few 
pointers. I'm not very familiar with the JGit code base or Java, so 
please excuse any blatant oversights or unintelligent questions.

First off, is there a "hacking JGit" document anywhere? One of those 
would be great right now.

So far I'm just trying to define the inputs and outputs. On Shawn's 
suggestion I'm planning on making it part of the org.spearce.jgit.patch 
package. C Git patch-id very generically has an input of a 'patch', so 
I'm thinking this implementation should use the Patch object. Looking at 
that class it seems that has everything patch-id should need, so perhaps 
that's the only input.

As far as output, C Git patch-id has the special feature to output the 
commit-id along with the patch-id when it gets input in the format of 
git-diff-tree. Should JGit do the same or just return the patch-id? I 
don't know that this question even makes sense in the context of JGit 
(since the commit-id is almost certainly available elsewhere and someone 
calling 'getPatchId()' is likely only interested in the patch-id).

Should PatchId be a class on its own, or just a method within the Patch 
class?

Thanks,
Nasser

^ permalink raw reply	[flat|nested] 28+ messages in thread

end of thread, other threads:[~2009-09-05 16:41 UTC | newest]

Thread overview: 28+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <ed88cb980909040744k2fa372fapb7ee457c745b9aa0@mail.gmail.com>
2009-09-04 14:49 ` [JGIT] Request for help Mark Struberg
2009-09-04 17:28   ` Mark Struberg
2009-09-04 18:50     ` Jonas Fonseca
2009-09-04 18:54       ` Mark Struberg
2009-09-04 19:51       ` Mark Struberg
2009-09-04 23:47     ` Gabe
2009-09-05  0:06       ` Douglas Campos
2009-09-05  1:29         ` Gabe McArthur
2009-09-05 16:25     ` Robin Rosenberg
2009-09-05 16:40       ` Mark Struberg
2009-09-04  7:12 Mark Struberg
  -- strict thread matches above, loose matches on Subject: below --
2009-09-02 23:28 Nasser Grainawi
2009-09-03  0:04 ` Johannes Schindelin
2009-09-03  1:22   ` Shawn O. Pearce
2009-09-03 12:45     ` Jonas Fonseca
2009-09-03 14:42       ` Shawn O. Pearce
2009-09-03 15:38         ` Jonas Fonseca
2009-09-03 15:52           ` Shawn O. Pearce
2009-09-04  5:00             ` Gabe McArthur
2009-09-04  7:33               ` Mark Struberg
2009-09-04 12:22                 ` Jonas Fonseca
2009-09-04 12:27                   ` Mark Struberg
2009-09-04 12:41                 ` Jonas Fonseca
2009-09-04 12:47                   ` Mark Struberg
2009-09-03  1:23 ` Shawn O. Pearce
2009-09-03 19:46   ` Nasser Grainawi
2009-09-03 19:49     ` Shawn O. Pearce
2009-09-03 21:09       ` Nasser Grainawi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).