Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Oomph » How to force "Project Set Import" task to run always at Eclipse startup?
How to force "Project Set Import" task to run always at Eclipse startup? [message #1729107] Mon, 11 April 2016 09:01 Go to next message
Silvestre Martins is currently offline Silvestre MartinsFriend
Messages: 84
Registered: July 2009
Member
What's the criteria do decide which setup tasks run only at very first run (like Project Set Import, Copy Resources, etc.) and which setup tasks run always when Eclipse starts up (like Preferences, Launch Configs, Build Projects, etc.) ?
In the configuration I only see the Excluded Triggers, but not any option to force to include in some trigger.

The reason for this is that I would like to have the "Project Set Import" setup task to run always when Eclipse starts up. This way, it would automatically import new projects that are added to the psf file. In my case, the psf is being versioned in the Git repository.

Preferably, the task could even not run automatically, but be available for selection, as it happen with the current "Launch Config" that I have.

Is this possible?

Re: How to force "Project Set Import" task to run always at Eclipse startup? [message #1729111 is a reply to message #1729107] Mon, 11 April 2016 09:44 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33137
Registered: July 2009
Senior Member
Silvestre,

Comments below.

On 11.04.2016 11:01, Silvestre Martins wrote:
> What's the criteria do decide which setup tasks run only at very first
> run (like Project Set Import, Copy Resources, etc.) and which setup
> tasks run always when Eclipse starts up (like Preferences, Launch
> Configs, Build Projects, etc.) ?
Neither of those two tasks are designed to run only the very first
time. It's a question of how is "isNeeded" determine...
> In the configuration I only see the Excluded Triggers, but not any
> option to force to include in some trigger.
That's what I mean, it's more a question of how is isNeeded computed for
the task. If it's not excluded by the trigger, isNeeded will be called,
and if it's needed it's it will be available to run, and if not, then
it's disabled.
>
> The reason for this is that I would like to have the "Project Set
> Import" setup task to run always when Eclipse starts up. This way, it
> would automatically import new projects that are added to the psf
> file. In my case, the psf is being versioned in the Git repository.
That specific tasks keeps a digest of the *.psf so if that file changes,
the task should return isNeeded true again.
>
> Preferably, the task could even not run automatically, but be
> available for selection, as it happen with the current "Launch Config"
> that I have.
It should just work.
>
> Is this possible?
>
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: How to force "Project Set Import" task to run always at Eclipse startup? [message #1729131 is a reply to message #1729111] Mon, 11 April 2016 11:35 Go to previous message
Silvestre Martins is currently offline Silvestre MartinsFriend
Messages: 84
Registered: July 2009
Member
Now I see why it didn't import in my test: I deleted the project from my workspace but didn't change the file directly.
Then this is sufficient.

Thanks Ed.

[Updated on: Mon, 11 April 2016 11:35]

Report message to a moderator

Previous Topic:eclipse-inst.ini proxy settings
Next Topic:Adding certificates to keystore during setup
Goto Forum:
  


Current Time: Sat Apr 20 03:11:23 GMT 2024

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

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

Back to the top