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 |
Eclipse User |
|
|
|
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 |
David McKnight 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 |
Eclipse User |
|
|
|
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 #572686 is a reply to message #18552] |
Fri, 29 February 2008 19:59 |
David McKnight 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 |
Eclipse User |
|
|
|
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
|
|
| | |
Goto Forum:
Current Time: Thu Sep 26 05:15:08 GMT 2024
Powered by FUDForum. Page generated in 0.04036 seconds
|