Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » DSDP - Target Management » Connecting a local project with remote folder
Connecting a local project with remote folder [message #18552] Thu, 28 February 2008 20:18 Go to next message
Eclipse UserFriend
Originally posted by: c.wodo.org

Hello!

This is my first message to a newsgroup, so please forgive me if this post
misses some standard conventions.

I've been a user of Dreamweaver for many years, and am wanting to move to
Eclipse. The one problem I'm having is synchronizing a local and remote
project. For example, in Dreamweaver, you can have an FTP account
connected with your project, and when you're ready, you just click the
'upload' button (or use a hot key) to upload the file you're working on to
the remote server. It's very simple, and critical to my workflow.

In Eclipse, I've installed TM, and have the Remote Systems view showing. I
see that I can import / export or create a remote project, and have tested
these out, but they don't quite do what I need (so far as I can tell). I
have a staging server locally, and so I need to make some changes locally,
test them, then upload them. Most of the time it's just one or two files,
so I just want to upload them, not the entire project.

I would be very grateful if someone can point me in the right direction
here. This problem, for which I'm sure there's a solution, has kept me
from using Eclipse the past few years.

Thank you!
Chris
Re: Connecting a local project with remote folder [message #18582 is a reply to message #18552] Fri, 29 February 2008 19:59 Go to previous messageGo to next message
David McKnight is currently offline David McKnightFriend
Messages: 244
Registered: July 2009
Senior Member
Hi Chris,

I'm not sure if this helps or not but here's something you may want to try.
When you use the Remote File System export do the following:
1) check off the particular files you wish to upload,
2) check off the checkbox for "Save the settings of this export in the
workspace"
3) specify a file name (i.e. "myexport.rexpfd") and store it in your
project.

After that, the saved settings can then be run directly via a mouse-click
action without opening the wizard in the future. I guess the benefit
depends on it's the same files everytime that change or whether it's random.

It might be good to open an enhancement request for doing exports that have
timestamp checks (i.e. so that only changed files need exporting).

Dave

"Chris" <c@wodo.org> wrote in message
news:200dca0f81c5d1807762fc543366e045$1@www.eclipse.org...
> Hello!
>
> This is my first message to a newsgroup, so please forgive me if this post
> misses some standard conventions.
>
> I've been a user of Dreamweaver for many years, and am wanting to move to
> Eclipse. The one problem I'm having is synchronizing a local and remote
> project. For example, in Dreamweaver, you can have an FTP account
> connected with your project, and when you're ready, you just click the
> 'upload' button (or use a hot key) to upload the file you're working on to
> the remote server. It's very simple, and critical to my workflow.
>
> In Eclipse, I've installed TM, and have the Remote Systems view showing. I
> see that I can import / export or create a remote project, and have tested
> these out, but they don't quite do what I need (so far as I can tell). I
> have a staging server locally, and so I need to make some changes locally,
> test them, then upload them. Most of the time it's just one or two files,
> so I just want to upload them, not the entire project.
>
> I would be very grateful if someone can point me in the right direction
> here. This problem, for which I'm sure there's a solution, has kept me
> from using Eclipse the past few years.
>
> Thank you!
> Chris
>
Re: Connecting a local project with remote folder [message #18590 is a reply to message #18552] Mon, 03 March 2008 08:59 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: reinhard.haller.interactive-net.de

Hi Chris,

try it with the builtin ant build tool. The following snippet
copies the changed files of the subdir /data via SSH to the
remote host, if they are newer.

<!-- =================================
target: getpass
================================= -->
<target name="getpass"
description="Get passphrase for the following task">
<input message="Please enter passphrase:"
addproperty="passphrase" />
</target>

<!-- =================================
target: remote
================================= -->
<target name="remote" depends="getpass" description="remote copy">
<scp todir="root@${host}:/"
keyfile="${user.home}/certs/id_dsa"
passphrase="${passphrase}"
trust="true"
sftp="yes">
<fileset dir="data">
<exclude name="**/*.bak **/*.sample" />
</fileset>
</scp>
</target>

HTH
Reinhard
Re: Connecting a local project with remote folder [message #18606 is a reply to message #18590] Mon, 03 March 2008 19:51 Go to previous messageGo to next message
Jamie Jackson is currently offline Jamie JacksonFriend
Messages: 19
Registered: July 2009
Junior Member
I added a nearly identical thread moments ago because I had searched for
"sync" before posting (not "connect"). Anyway, FTP/Webdav support (now
obsolete) used to do this for you via the "Synchronize" perspective, but
it seems like this functionality doesn't exist for 3.3, unless I missed
something.

It's too bad, because it's nice to do a comparison before uploading (as
you can from the synchronize perspective via say, Subclipse, or through
FTP/Webdav synching in 3.2).

Could someone please confirm or refute the assertion that FTP
synchronization capability is lost when going from 3.2 to 3.3? (Aside from
workarounds like the helpful ANT script posted.)

Thanks,
Jamie
Re: Connecting a local project with remote folder [message #19337 is a reply to message #18606] Wed, 05 March 2008 02:24 Go to previous message
Martin Oberhuber is currently offline Martin OberhuberFriend
Messages: 985
Registered: July 2009
Senior Member
Yes,

the FTP/WebDAV component was retired in Eclipse 3.3 -- which
doesn't necessarily mean that the old FTP/WebDAV 3.2 component
wouldn't work in Eclipse 3.3 or 3.4 since it should be backward
compatible.

For synchronization support via TM/RSE, we have an enhancement
request open:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=185926
and we'll appreciate any community help on it since it's
currently not the main focus of TM core committers.

Thanks,
--
Martin Oberhuber, Senior Member of Technical Staff, Wind River
Target Management Project Lead, DSDP PMC Member
http://www.eclipse.org/dsdp/tm
Re: Connecting a local project with remote folder [message #572686 is a reply to message #18552] Fri, 29 February 2008 19:59 Go to previous message
David McKnight is currently offline David McKnightFriend
Messages: 244
Registered: July 2009
Senior Member
Hi Chris,

I'm not sure if this helps or not but here's something you may want to try.
When you use the Remote File System export do the following:
1) check off the particular files you wish to upload,
2) check off the checkbox for "Save the settings of this export in the
workspace"
3) specify a file name (i.e. "myexport.rexpfd") and store it in your
project.

After that, the saved settings can then be run directly via a mouse-click
action without opening the wizard in the future. I guess the benefit
depends on it's the same files everytime that change or whether it's random.

It might be good to open an enhancement request for doing exports that have
timestamp checks (i.e. so that only changed files need exporting).

Dave

"Chris" <c@wodo.org> wrote in message
news:200dca0f81c5d1807762fc543366e045$1@www.eclipse.org...
> Hello!
>
> This is my first message to a newsgroup, so please forgive me if this post
> misses some standard conventions.
>
> I've been a user of Dreamweaver for many years, and am wanting to move to
> Eclipse. The one problem I'm having is synchronizing a local and remote
> project. For example, in Dreamweaver, you can have an FTP account
> connected with your project, and when you're ready, you just click the
> 'upload' button (or use a hot key) to upload the file you're working on to
> the remote server. It's very simple, and critical to my workflow.
>
> In Eclipse, I've installed TM, and have the Remote Systems view showing. I
> see that I can import / export or create a remote project, and have tested
> these out, but they don't quite do what I need (so far as I can tell). I
> have a staging server locally, and so I need to make some changes locally,
> test them, then upload them. Most of the time it's just one or two files,
> so I just want to upload them, not the entire project.
>
> I would be very grateful if someone can point me in the right direction
> here. This problem, for which I'm sure there's a solution, has kept me
> from using Eclipse the past few years.
>
> Thank you!
> Chris
>
Re: Connecting a local project with remote folder [message #572741 is a reply to message #18552] Mon, 03 March 2008 08:59 Go to previous message
Eclipse UserFriend
Originally posted by: reinhard.haller.interactive-net.de

Hi Chris,

try it with the builtin ant build tool. The following snippet
copies the changed files of the subdir /data via SSH to the
remote host, if they are newer.

<!-- =================================
target: getpass
================================= -->
<target name="getpass"
description="Get passphrase for the following task">
<input message="Please enter passphrase:"
addproperty="passphrase" />
</target>

<!-- =================================
target: remote
================================= -->
<target name="remote" depends="getpass" description="remote copy">
<scp todir="root@${host}:/"
keyfile="${user.home}/certs/id_dsa"
passphrase="${passphrase}"
trust="true"
sftp="yes">
<fileset dir="data">
<exclude name="**/*.bak **/*.sample" />
</fileset>
</scp>
</target>

HTH
Reinhard
Re: Connecting a local project with remote folder [message #572781 is a reply to message #18590] Mon, 03 March 2008 19:51 Go to previous message
Jamie Jackson is currently offline Jamie JacksonFriend
Messages: 19
Registered: July 2009
Junior Member
I added a nearly identical thread moments ago because I had searched for
"sync" before posting (not "connect"). Anyway, FTP/Webdav support (now
obsolete) used to do this for you via the "Synchronize" perspective, but
it seems like this functionality doesn't exist for 3.3, unless I missed
something.

It's too bad, because it's nice to do a comparison before uploading (as
you can from the synchronize perspective via say, Subclipse, or through
FTP/Webdav synching in 3.2).

Could someone please confirm or refute the assertion that FTP
synchronization capability is lost when going from 3.2 to 3.3? (Aside from
workarounds like the helpful ANT script posted.)

Thanks,
Jamie
Re: Connecting a local project with remote folder [message #572837 is a reply to message #18606] Wed, 05 March 2008 02:24 Go to previous message
Martin Oberhuber is currently offline Martin OberhuberFriend
Messages: 985
Registered: July 2009
Senior Member
Yes,

the FTP/WebDAV component was retired in Eclipse 3.3 -- which
doesn't necessarily mean that the old FTP/WebDAV 3.2 component
wouldn't work in Eclipse 3.3 or 3.4 since it should be backward
compatible.

For synchronization support via TM/RSE, we have an enhancement
request open:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=185926
and we'll appreciate any community help on it since it's
currently not the main focus of TM core committers.

Thanks,
--
Martin Oberhuber, Senior Member of Technical Staff, Wind River
Target Management Project Lead, DSDP PMC Member
http://www.eclipse.org/dsdp/tm
Previous Topic:Syncing with remote file systems in eclipse 3.3
Next Topic:RSE: Directories not showing
Goto Forum:
  


Current Time: Mon Dec 22 02:13:23 GMT 2014

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

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