Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Oomph » [feature request] Force ResourceCopyTask to overwrite target
[feature request] Force ResourceCopyTask to overwrite target [message #1709349] Sun, 27 September 2015 10:32 Go to next message
Johannes Dorn is currently offline Johannes DornFriend
Messages: 61
Registered: June 2013
Member
I have a RescourceCopyTask that isn't executed if the target resource already exists.

I would like to be able to force the task to overwrite the target file.
Re: [feature request] Force ResourceCopyTask to overwrite target [message #1710094 is a reply to message #1709349] Sun, 04 October 2015 07:52 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33140
Registered: July 2009
Senior Member
Johannes,

Comments below.

On 27/09/2015 12:32 PM, Johannes Dorn wrote:
> I have a RescourceCopyTask that isn't executed if the target resource
> already exists.
> I would like to be able to force the task to overwrite the target file.
But I assume you wouldn't want such a task to be executed each and every
time? Ideally it would only executed if the result were different from
the current contents, I suppose. But that could be a relatively
expensive check if source resource were a remote resource... I wonder
if a resource modify task might help in some way; isNeeded logic for
that would be perhaps more directly helpful?


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: [feature request] Force ResourceCopyTask to overwrite target [message #1710156 is a reply to message #1710094] Mon, 05 October 2015 07:00 Go to previous messageGo to next message
Codetrails Team is currently offline Codetrails TeamFriend
Messages: 5
Registered: July 2014
Junior Member
My ResourceCopyTask is part of the product definition and will place a file in user.home.

This task is only intended to be executed during the initial product installation. It is not needed at every startup.

Before the installation, the file might not yet exist, or be outdated. In any case, using the copied file would be correct.


A resource modify task doesn't exist yet, does it?
Re: [feature request] Force ResourceCopyTask to overwrite target [message #1710162 is a reply to message #1710156] Mon, 05 October 2015 07:14 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33140
Registered: July 2009
Senior Member
Sorry, it's called a Text Modify Task.

I'm not sure it totally helps solve your problem; the file must exist to
be modified, and the modifications must be in the setup model itself...


On 05/10/2015 9:00 AM, Codetrails Team wrote:
> My ResourceCopyTask is part of the product definition and will place a
> file in user.home.
>
> This task is only intended to be executed during the initial product
> installation. It is not needed at every startup.
>
> Before the installation, the file might not yet exist, or be outdated.
> In any case, using the copied file would be correct.
>
>
> A resource modify task doesn't exist yet, does it?


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: [feature request] Force ResourceCopyTask to overwrite target [message #1721530 is a reply to message #1710162] Thu, 28 January 2016 05:35 Go to previous messageGo to next message
Duane Nielsen is currently offline Duane NielsenFriend
Messages: 4
Registered: January 2016
Junior Member
Just thought I'd mention I have the same problem. I want to overwrite the .m2 directory with the companies settings. Force overwrite with a complete and correct config would be a lot simpler than the alternatives.
Re: [feature request] Force ResourceCopyTask to overwrite target [message #1725555 is a reply to message #1709349] Fri, 04 March 2016 10:57 Go to previous message
Patrick Ruckstuhl is currently offline Patrick RuckstuhlFriend
Messages: 65
Registered: July 2009
Member
I think the same is true for the createResource task, maybe there should be an "ensureResource" resource task, that way it would be easy to change a setting and everyone will get the updated setting on next eclipse startup/manual run.
Previous Topic:Log Severity
Next Topic:Eclipse-Installer called by Console
Goto Forum:
  


Current Time: Thu Apr 25 05:03:21 GMT 2024

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

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

Back to the top