Skip to main content



      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 06:32 Go to next message
Eclipse UserFriend
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 03:52 Go to previous messageGo to next message
Eclipse UserFriend
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?
Re: [feature request] Force ResourceCopyTask to overwrite target [message #1710156 is a reply to message #1710094] Mon, 05 October 2015 03:00 Go to previous messageGo to next message
Eclipse UserFriend
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 03:14 Go to previous messageGo to next message
Eclipse UserFriend
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?
Re: [feature request] Force ResourceCopyTask to overwrite target [message #1721530 is a reply to message #1710162] Thu, 28 January 2016 00:35 Go to previous messageGo to next message
Eclipse UserFriend
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 05:57 Go to previous message
Eclipse UserFriend
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: Sat Jul 05 04:39:06 EDT 2025

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

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

Back to the top