mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-23 00:03:53 +02:00
fix for 149186 - prevent upload during download via "ignore file" for temp file listner
This commit is contained in:
parent
d94d5ac9f3
commit
d507b8b380
1 changed files with 4 additions and 1 deletions
|
@ -137,8 +137,10 @@ public class UniversalFileTransferUtility
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
// copy remote file to workspace
|
// copy remote file to workspace
|
||||||
|
SystemUniversalTempFileListener listener = SystemUniversalTempFileListener.getListener();
|
||||||
|
listener.addIgnoreFile(tempFile);
|
||||||
srcFS.download(srcFileOrFolder, tempFile, SystemEncodingUtil.ENCODING_UTF_8, monitor);
|
srcFS.download(srcFileOrFolder, tempFile, SystemEncodingUtil.ENCODING_UTF_8, monitor);
|
||||||
|
listener.removeIgnoreFile(tempFile);
|
||||||
if (!tempFile.exists() && !tempFile.isSynchronized(IResource.DEPTH_ZERO))
|
if (!tempFile.exists() && !tempFile.isSynchronized(IResource.DEPTH_ZERO))
|
||||||
{
|
{
|
||||||
// eclipse doesn't like this if the resource appears to be from another project
|
// eclipse doesn't like this if the resource appears to be from another project
|
||||||
|
@ -273,6 +275,7 @@ public class UniversalFileTransferUtility
|
||||||
{
|
{
|
||||||
if (srcFileOrFolder.isFile()) // file transfer
|
if (srcFileOrFolder.isFile()) // file transfer
|
||||||
{
|
{
|
||||||
|
|
||||||
IFile tempFile = copyRemoteFileToWorkspace(srcFileOrFolder, monitor);
|
IFile tempFile = copyRemoteFileToWorkspace(srcFileOrFolder, monitor);
|
||||||
resultSet.addResource(tempFile);
|
resultSet.addResource(tempFile);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue