You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by di...@apache.org on 2022/01/05 07:21:11 UTC
[airavata] branch master updated: Ignoring sym links empty directories when building the archive
This is an automated email from the ASF dual-hosted git repository.
dimuthuupe pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/airavata.git
The following commit(s) were added to refs/heads/master by this push:
new 936c21e Ignoring sym links empty directories when building the archive
936c21e is described below
commit 936c21ed26b61c30c6d09cdb8060beda76994c5b
Author: Dimuthu Wannipurage <di...@gmail.com>
AuthorDate: Wed Jan 5 02:16:10 2022 -0500
Ignoring sym links empty directories when building the archive
---
.../org/apache/airavata/helix/impl/task/staging/ArchiveTask.java | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/modules/airavata-helix/helix-spectator/src/main/java/org/apache/airavata/helix/impl/task/staging/ArchiveTask.java b/modules/airavata-helix/helix-spectator/src/main/java/org/apache/airavata/helix/impl/task/staging/ArchiveTask.java
index 5b93e31..e1f124a 100644
--- a/modules/airavata-helix/helix-spectator/src/main/java/org/apache/airavata/helix/impl/task/staging/ArchiveTask.java
+++ b/modules/airavata-helix/helix-spectator/src/main/java/org/apache/airavata/helix/impl/task/staging/ArchiveTask.java
@@ -83,7 +83,10 @@ public class ArchiveTask extends DataStagingTask {
AgentAdaptor adaptor = getComputeResourceAdaptor(taskHelper.getAdaptorSupport());
// Creating the tar file in the output path of the compute resource
- String tarringCommand = "cd " + tarDirPath + " && tar -cvf " + tarCreationAbsPath + " ./* ";
+ // Finds the list of files that do not include directories and symlinks
+ String tarringCommand = "cd " + tarDirPath +
+ " && find ./ -not -type l -not -type d -print0 | tar --null --files-from - -cvf " + tarCreationAbsPath;
+
logger.info("Running tar creation command " + tarringCommand);
try {