You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@uima.apache.org by Marshall Schor <ms...@schor.com> on 2019/07/25 16:07:12 UTC

working with uimaFIT, git, eclipse, .gitignore files?

Hi,

I was able to use the latest Eclipse (2019-06) to import a local-disk clone of
the uima-fit git repo.

The trick was to select File -> import -> Git -> Projects from Git (with smart
import).

The smart import recognizes the nested form of subprojects and sets up things in
eclipse properly.

======

I did a local git checkout -b mymaster to create a branch to play around with.

Then I did the import above.  I had to do a maven-update to the
uimafit-benchmark project, and then everything was OK in Eclipse.

At one point (before) I saw some .settings/org.eclipse.jdt.core.prefs files were
updated by Eclipse. 

I see there's (only) a .gitignore file for the top-most containing "uimafit"
project which ignores this. 
Looking at the EGit docs https://wiki.eclipse.org/EGit/User_Guide it says it
.gitignore files are inherited, with lower level ones overriding higher level
(in the file tree) ones. 

So, once you put a .gitignore at the top level, you don't need them in
subprojects (unless you need to override), correct?

-Marshall


Re: working with uimaFIT, git, eclipse, .gitignore files?

Posted by Marshall Schor <ms...@schor.com>.
nice to learn about these little tricks/conventions :-) -Marshall

On 7/25/2019 5:46 PM, Richard Eckart de Castilho wrote:
> Hi,
>
>> On 25. Jul 2019, at 18:07, Marshall Schor <ms...@schor.com> wrote:
>>
>> I was able to use the latest Eclipse (2019-06) to import a local-disk clone of
>> the uima-fit git repo.
> I usually just use "File -> Import -> Existing Maven projects" and Eclipse also
> automatically recognizes the git repo and activates git support.
>
>> ======
>>
>> I did a local git checkout -b mymaster to create a branch to play around with.
>>
>> Then I did the import above.  I had to do a maven-update to the
>> uimafit-benchmark project, and then everything was OK in Eclipse.
>>
>> At one point (before) I saw some .settings/org.eclipse.jdt.core.prefs files were
>> updated by Eclipse. 
> Yeah, I commit these files to have the code style settings in the repo. Unfortunately,
> as Eclipse versions change, these files get dirty on checkout. I'm sure there are
> ways to decouple the style settings from these files, but I didn't procure them yet.
>
>> I see there's (only) a .gitignore file for the top-most containing "uimafit"
>> project which ignores this. 
>> Looking at the EGit docs https://wiki.eclipse.org/EGit/User_Guide it says it
>> .gitignore files are inherited, with lower level ones overriding higher level
>> (in the file tree) ones. 
>>
>> So, once you put a .gitignore at the top level, you don't need them in
>> subprojects (unless you need to override), correct?
> Right. There is also a .gitattributes file which tries setting up file types
> and line endings to smoothen things if Linux/OS X and Windows users collaborate
> on the repo. Not 100% sure it works though...
>
> Cheers,
>
> -- Richard

Re: working with uimaFIT, git, eclipse, .gitignore files?

Posted by Richard Eckart de Castilho <re...@apache.org>.
Hi,

> On 25. Jul 2019, at 18:07, Marshall Schor <ms...@schor.com> wrote:
> 
> I was able to use the latest Eclipse (2019-06) to import a local-disk clone of
> the uima-fit git repo.

I usually just use "File -> Import -> Existing Maven projects" and Eclipse also
automatically recognizes the git repo and activates git support.

> ======
> 
> I did a local git checkout -b mymaster to create a branch to play around with.
> 
> Then I did the import above.  I had to do a maven-update to the
> uimafit-benchmark project, and then everything was OK in Eclipse.
> 
> At one point (before) I saw some .settings/org.eclipse.jdt.core.prefs files were
> updated by Eclipse. 

Yeah, I commit these files to have the code style settings in the repo. Unfortunately,
as Eclipse versions change, these files get dirty on checkout. I'm sure there are
ways to decouple the style settings from these files, but I didn't procure them yet.

> I see there's (only) a .gitignore file for the top-most containing "uimafit"
> project which ignores this. 
> Looking at the EGit docs https://wiki.eclipse.org/EGit/User_Guide it says it
> .gitignore files are inherited, with lower level ones overriding higher level
> (in the file tree) ones. 
> 
> So, once you put a .gitignore at the top level, you don't need them in
> subprojects (unless you need to override), correct?

Right. There is also a .gitattributes file which tries setting up file types
and line endings to smoothen things if Linux/OS X and Windows users collaborate
on the repo. Not 100% sure it works though...

Cheers,

-- Richard