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

Re: [JGIT RFC] JGit mavenization done right

From
Imran M Yousuf <imyousuf@gmail.com>
Date
Aug 20, 2008, 02:39 UTC
Message-ID
<7bfdc29a0808191939u2a060883o6a0047dc2caaa4fb@mail.gmail.com>
In-Reply-To
<200808192152.55267.robin.rosenberg.lists@dewire.com>

On Wed, Aug 20, 2008 at 1:52 AM, Robin Rosenberg <robin.rosenberg.lists@dewire.com> wrote:

Show 36 quoted lines
> tisdagen den 19 augusti 2008 16.44.24 skrev Shawn O. Pearce:
>> Imran M Yousuf <imyousuf@gmail.com> wrote:
>> > On Mon, Aug 18, 2008 at 11:55 AM, Shawn O. Pearce <spearce@spearce.org> wrote:
>> > > Imran M Yousuf <imyousuf@gmail.com> wrote:
>> > >> I would like to request you all to test out JGit from
>> > >> http://repo.or.cz/w/egit/imyousuf.git. Please checkout the branch
>> > >> 'unified_tst_rsrc' and try to build it with both maven and Eclipse
>> > >> (i.e. as was built earlier)
>> >
>> > Thanks, it would nice to know whether it works in the original build
>> > process or not :).
>>
>> Well, it did break it in Eclipse:
>>
>> $ git diff-tree --abbrev -r -M --diff-filter=D orcz-pub/master HEAD
>> :100644 000000 9d7d138... 0000000... D  org.spearce.jgit.test/.gitignore
>> :100644 000000 987d6be... 0000000... D  org.spearce.jgit.test/.project
>> :100644 000000 8bfa5f1... 0000000... D  org.spearce.jgit.test/.settings/org.eclipse.jdt.core.prefs
>> :100644 000000 fce94cf... 0000000... D  org.spearce.jgit.test/.settings/org.eclipse.jdt.ui.prefs
>> :100644 000000 304e861... 0000000... D  org.spearce.jgit/.classpath
>> :100644 000000 ba077a4... 0000000... D  org.spearce.jgit/.gitignore
>> :100644 000000 7d38455... 0000000... D  org.spearce.jgit/.project
>> :100644 000000 709a440... 0000000... D  org.spearce.jgit/.settings/org.eclipse.jdt.ui.prefs
>>
>> Removing this stuff was not so good.  The Eclipse projects are
>> busted and can't be used anymore.  We need them back.
>>
>> The make_jgit.sh however seems to produce a valid JAR.  Given the
>> file-level differences I didn't expect it to fail.
>>
>> Also, I wonder if JGitTestUtil is better handled by placing the
>> method in RepositoryTestCase and making sure everyone subclasses
>> that if they need a test resource file?  I'm fairly certain they
>> already do, and its a lot easier to invoke a method you inherited
>> than one in another class.  (Well, easier for the guy writing the
>> test case anyway, Java obviously doesn't care either way.)

In a true OOP sense a util class seemed a more valid approach to me. I usually prefer to inherit staffs that are actually part of the object, what I can do is have a base class method invoking the util, that will not harm me :).

Show 11 quoted lines
>>
>> If we are going to take this in upstream I'd like a flattened/cleaned
>> up history.  Being able to bisect the misstep of using symlinks
>> (the old Maven approach) isn't very valuable in the long-term view
>> of the history.
>>
>> Robin, any thoughts?
>
> Right, I'd also like to see that cleaned up approch in patch form. Cleaning up
> helps when preparing for review because one usually find bad stuff during
> that process.

I agree with the cleaned up approach I will redo it afresh by tonight or day after tomorrow and create patches and resubmit it.

Thanks,
Imran
>
> -- robin
>
-- 
Imran M Yousuf
Entrepreneur & Software Engineer
Smart IT Engineering
Dhaka, Bangladesh
Email: imran@smartitengineering.com
Blog: http://imyousuf-tech.blogs.smartitengineering.com/
Mobile: +880-1711402557
Previous: Robin Rosenberg
Message 6 of 6 in “[JGIT RFC] JGit mavenization done right”
  1. Imran M YousufAug 17, 2008
  2. Shawn O. PearceAug 18, 2008
  3. Imran M YousufAug 18, 2008
  4. Shawn O. PearceAug 19, 2008
  5. Robin RosenbergAug 19, 2008
  6. Imran M YousufAug 20, 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.