Skip to main content



      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 01:23 Go to next message
Eclipse UserFriend
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 03:58 Go to previous messageGo to next message
Eclipse UserFriend
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;"/>
Re: Not able to automate addition of ignored resources in eclipse [message #1750459 is a reply to message #1750453] Wed, 21 December 2016 04:22 Go to previous messageGo to next message
Eclipse UserFriend
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 05:17 Go to previous message
Eclipse UserFriend
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.
Previous Topic:Preference Task setting target platform status bar
Next Topic:Problems with the installed version
Goto Forum:
  


Current Time: Tue Jul 15 06:06:04 EDT 2025

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

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

Back to the top