mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-03 15:15:25 +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
|
||||
{
|
||||
// copy remote file to workspace
|
||||
SystemUniversalTempFileListener listener = SystemUniversalTempFileListener.getListener();
|
||||
listener.addIgnoreFile(tempFile);
|
||||
srcFS.download(srcFileOrFolder, tempFile, SystemEncodingUtil.ENCODING_UTF_8, monitor);
|
||||
|
||||
listener.removeIgnoreFile(tempFile);
|
||||
if (!tempFile.exists() && !tempFile.isSynchronized(IResource.DEPTH_ZERO))
|
||||
{
|
||||
// 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
|
||||
{
|
||||
|
||||
IFile tempFile = copyRemoteFileToWorkspace(srcFileOrFolder, monitor);
|
||||
resultSet.addResource(tempFile);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue