Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit / JGit » How Can I ignore files when using ArchiveCommand(Ignoring file/s in ArchiveCommand)
How Can I ignore files when using ArchiveCommand [message #1790886] Tue, 19 June 2018 15:25 Go to next message
Guillermo Coscarelli is currently offline Guillermo CoscarelliFriend
Messages: 2
Registered: June 2018
Junior Member
I would like to ignore some files (in particular what the .gitignore says) when executing an ArchiveCommand.
I see no options in the API. Any idea or workaround?

Re: How Can I ignore files when using ArchiveCommand [message #1791201 is a reply to message #1790886] Mon, 25 June 2018 22:03 Go to previous message
Thomas Wolf is currently offline Thomas WolfFriend
Messages: 276
Registered: August 2016
Senior Member
As far as I see the ArchiveCommand works on the content as checked in into the git repository, so .gitignored files should never be in the archive. To exclude checked-in files, you could use ArchiveCommand.setPaths() with an array of repository-relative paths giving the files to include.
Previous Topic:Repository and project show ^nnn to represent commits not pushed, even after hard reset
Next Topic:ssh connection using an ECDSA key fails on second attempt (auth failed)
Goto Forum:

Current Time: Wed Sep 30 10:54:49 GMT 2020

Powered by FUDForum. Page generated in 0.02258 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top