Discussion:
Sync file with ftp server
maxy83
2010-04-09 08:59:20 UTC
Permalink
Hi,
i'm an italian developer, and i try to use netbean 6.8 fom my php projects.
I have a problem, i create a netbean project, with an ftp folder connection (because my php file are on a server).
The problem is:
I modify one php file outside netbeans. Is there a way to auto update this file in netbean when i open the IDE?
i try to explain better, if i download the single project file i have the right version. I would like to make this automatic, only for the modified file. Is this possilbe?
I try to use the "scan for project changes" but it doesn't work.

I hope somenone can help me, sorry for my English

Thank's
MaX
Tomas Mysik
2010-04-09 10:06:31 UTC
Permalink
Hi,
Post by maxy83
I modify one php file outside netbeans. Is there a way to auto update this
file in netbean when i open the IDE?
if you modify your _local_ copy of the remote file, then NetBeans should
recognize the change automatically. If not, you can use Source > Scan for
external changes.
Post by maxy83
i try to explain better, if i
download the single project file i have the right version. I would like to
make this automatic, only for the modified file. Is this possilbe? I try
to use the "scan for project changes" but it doesn't work.
As written above, this action is related only to your _local_ changes.
If I understand correctly, you want to download only changed files, right? If
yes, then in NB 6.9 this should work (I use "should" because working with
timestamps on FTP/SFTP servers is a bit tricky and not always reliable). How
to do that:
- create a Remote Server Run Configuration (in Project Properties dialog)
- right click _Source Files_ (this is very important! it does not work for any
other folder or file!) and choose download
- repeat the previous step whenever you want, newer remote files should be
preselected (again, only "should" as explained above).

Please notice that the same scenario should work for Upload action as well.

You can try this behavior even now, using our development build [1]
(currently, I would recommend you to start NB with a special option [2] so it
is more stable and more usable).

HTH,
Tomas
[1] http://bertram.netbeans.org/hudson/job/PHP-build/
[2] -J-Dorg.netbeans.editor.linewrap.disable=true
--
Tomas Mysik
tomas.mysik-xsfywfwIY+***@public.gmane.org
maxy83
2010-04-09 10:50:50 UTC
Permalink
Hi,

Thank's for the reply, but my problem is a little bit different.
Because i work on my local machine with the local project.
If a save the file to ftp folder there is no problem.
But if i modify the file on the server (with program like htmlkit), and not in local,how can netbeans auto syncronize this file.
So i wuold like to download only the modified file.
Ex. if i modify the index.php on the server, i have to download this new index on my local machine. I can click on my local file and choose download, but i would like to know if is possible to do this in automatic mode and not for the all project but only for modified file.

Thank's again

MaX
Tomas Mysik
2010-04-09 11:16:41 UTC
Permalink
Hi,
Post by maxy83
But if i modify the file on the server (with program like htmlkit), and not
in local,how can netbeans auto syncronize this file. So i wuold like to
download only the modified file.
I already answered - right click on the Source Files and choose download.

Or am I missing something?

HTH,
Tomas
--
Tomas Mysik
tomas.mysik-xsfywfwIY+***@public.gmane.org
maxy83
2010-04-12 15:15:50 UTC
Permalink
No you don't miss anything, your answer si perfect, thank's.
But my question is if there is a method or an option to do this in automatic.
Because if i dont' remember what is the modified file i have to download all the project folder right?

Thak's a lot and sorry for the mistake.
Tomas Mysik
2010-04-12 15:34:31 UTC
Permalink
Hi,
Post by maxy83
No you don't miss anything, your answer si perfect, thank's.
you're welcome.
Post by maxy83
But my question is if there is a method or an option to do this in automatic.
Only uploading - see Project Properties > Run Configuration (Remote W=
eb Site) -=20
select Upload On Save.
Post by maxy83
Because if i dont' remember what is the modified file i have to
download all the project folder right?
- right click Source Files (this is very important! it does not wor=
k for
Post by maxy83
any other folder or file!) and choose Download
If you do that, only _changed_ files will/should be preselected so yo=
u don't=20
need to download all the files.

HTH,
Tomas
--=20
Tomas Mysik
tomas.mysik-xsfywfwIY+***@public.gmane.org
niverin
2010-04-25 17:32:16 UTC
Permalink
This is the reason I cannot use Netbeans, very unhappy because it is nice IDE otherwise.
I need to auto update my local project to be sure I am working with it's last state.
This is really the must-have feature for me and have to use some other IDE with classic FTP explorer because of this.
Tomas Mysik
2010-04-25 19:56:06 UTC
Permalink
Hi,
Post by niverin
This is the reason I cannot use Netbeans, very unhappy because it is nice
IDE otherwise. I need to auto update my local project to be sure I am
working with it's last state. This is really the must-have feature for me
and have to use some other IDE with classic FTP explorer because of this.
I don't know your particular use case but IMHO NetBeans 6.9 could/should be
usable for you - just right click the Source Files and select Download - only
files changed on the remote server should be preselected (please notice that
this works _only_ on Source Files directory).

HTH,
Tomas
--
Tomas Mysik
tomas.mysik-xsfywfwIY+***@public.gmane.org
niverin
2010-04-25 21:13:08 UTC
Permalink
Hi,
thank you for reply, I tried the Download option on Source Files but it preselects all files although they are not newer :?
Tomas Mysik
2010-04-26 10:53:34 UTC
Permalink
Hi,
Post by niverin
thank you for reply, I tried the Download option on Source Files but it
preselects all files although they are not newer :?
this typically happens only for the first time (the timestamp needs to be
remembered), it should work next time.

Tomas
--
Tomas Mysik
tomas.mysik-xsfywfwIY+***@public.gmane.org
Continue reading on narkive:
Loading...