Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Oomph » Not able to automate addition of ignored resources in eclipse
Not able to automate addition of ignored resources in eclipse [message #1750436] Wed, 21 December 2016 06:23 Go to next message
Himanshu Ghadiya is currently offline Himanshu GhadiyaFriend
Messages: 5
Registered: December 2016
Junior Member
Hi,
I need to automate addition of ignored resources in eclipse(windows->preference ->team->ignored resources).
I know the key for the preferences is /instance/org.eclipse.team.core/ignore_files.
But the problem is how to add multiple patterns like *.settings, *.project etc,


Thanks
Re: Not able to automate addition of ignored resources in eclipse [message #1750453 is a reply to message #1750436] Wed, 21 December 2016 08:58 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33258
Registered: July 2009
Senior Member
Did you try just recording the changes you want?
<?xml version="1.0" encoding="UTF-8"?>
<setup:PreferenceTask
    xmi:version="2.0"
    xmlns:xmi="http://www.omg.org/XMI"
    xmlns:setup="http://www.eclipse.org/oomph/setup/1.0"
    key="/instance/org.eclipse.team.core/ignore_files"
    value="*.alsobogus&#xA;true&#xA;*.verybogus&#xA;true&#xA;"/>


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Not able to automate addition of ignored resources in eclipse [message #1750459 is a reply to message #1750453] Wed, 21 December 2016 09:22 Go to previous messageGo to next message
Himanshu Ghadiya is currently offline Himanshu GhadiyaFriend
Messages: 5
Registered: December 2016
Junior Member
Yes I tried and it work well but the thing I want is, to avoid sharing one extra file "user.setup" (inside .eclipse directory) among others if I can do that using project.setup file. I defined all the preference in project.setup file, so just wanted to know if can define in that.

Thanks for your reply.
Re: Not able to automate addition of ignored resources in eclipse [message #1750462 is a reply to message #1750459] Wed, 21 December 2016 10:17 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33258
Registered: July 2009
Senior Member
Yes, you can put that task into the project.setup. In fact you can generally record changes into any *.setup file. Just open it in the editor and use the Record Preferences toolbar button to open the preferences dialog. Of course if you're using Git, it seems much more appropriate to put everything into your .gitignore files.

Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:Preference Task setting target platform status bar
Next Topic:Problems with the installed version
Goto Forum:
  


Current Time: Sun Dec 08 00:19:35 GMT 2024

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

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

Back to the top