@@ -48,24 +48,23 @@ public class LocalDirectory implements Serializable
4848 private final Path _remoteDir ;
4949 private Path _logFile ;
5050 private final String _baseLogFileName ;
51- private final String _moduleName ;
5251
53- public static LocalDirectory create (@ NotNull PipeRoot root , @ NotNull String moduleName )
52+ public static LocalDirectory create (@ NotNull PipeRoot root )
5453 {
55- return create (root , moduleName , "dummyLogFile" , root .isCloudRoot () ? "dummy" : root .getRootPath ().getPath ());
54+ return create (root , "dummyLogFile" , root .isCloudRoot () ? "dummy" : root .getRootPath ().getPath ());
5655 }
5756
5857 @ Deprecated //Prefer to use a Path for workingDir -- can be local or remote, but should match with root
59- public static LocalDirectory create (@ NotNull PipeRoot root , @ NotNull String moduleName , @ NotNull String baseLogFileName , @ NotNull String workingDir )
58+ public static LocalDirectory create (@ NotNull PipeRoot root , @ NotNull String baseLogFileName , @ NotNull String workingDir )
6059 {
61- return create (root , moduleName , baseLogFileName , Path .of (workingDir ));
60+ return create (root , baseLogFileName , Path .of (workingDir ));
6261 }
6362
64- public static LocalDirectory create (@ NotNull PipeRoot root , @ NotNull String moduleName , @ NotNull String baseLogFileName , @ NotNull Path workingDir )
63+ public static LocalDirectory create (@ NotNull PipeRoot root , @ NotNull String baseLogFileName , @ NotNull Path workingDir )
6564 {
6665 return !root .isCloudRoot () ?
67- new LocalDirectory (workingDir .toFile (), moduleName , baseLogFileName ) :
68- new LocalDirectory (root .getContainer (), moduleName , root , baseLogFileName );
66+ new LocalDirectory (workingDir .toFile (), baseLogFileName ) :
67+ new LocalDirectory (root .getContainer (), root , baseLogFileName );
6968 }
7069
7170 @ JsonCreator
@@ -74,30 +73,27 @@ private LocalDirectory(
7473 @ JsonProperty ("_isTemporary" ) boolean isTemporary ,
7574 @ JsonProperty ("_pipeRoot" ) PipeRoot pipeRoot ,
7675 @ JsonProperty ("_baseLogFileName" ) String baseLogFileName ,
77- @ JsonProperty ("_moduleName" ) String moduleName ,
7876 @ JsonProperty ("_remoteDir" ) Path remoteDir )
7977 {
8078 _localDirectoryFile = localDirectoryFile ;
8179 _isTemporary = isTemporary ;
8280 _pipeRoot = pipeRoot ;
8381 _remoteDir = remoteDir != null ? remoteDir : _pipeRoot == null ? null : _pipeRoot .getRootNioPath (); //Using _piperoot as default for backwards compatability
8482 _baseLogFileName = baseLogFileName ;
85- _moduleName = moduleName ;
8683 }
8784
8885 // Constructor for runs and actions when pipeline root is cloud
89- public LocalDirectory (Container container , String moduleName , PipeRoot pipeRoot , String basename )
86+ public LocalDirectory (Container container , PipeRoot pipeRoot , String basename )
9087 {
91- this (container , moduleName , pipeRoot , basename , null );
88+ this (container , pipeRoot , basename , null );
9289 }
9390
94- public LocalDirectory (Container container , String moduleName , PipeRoot pipeRoot , String basename , Path remoteDir )
91+ public LocalDirectory (Container container , PipeRoot pipeRoot , String basename , Path remoteDir )
9592 {
9693 _isTemporary = true ;
9794 _pipeRoot = pipeRoot ;
9895 _remoteDir = remoteDir != null ? remoteDir : _pipeRoot == null ? null : _pipeRoot .getRootNioPath (); //Using _piperoot as default for backwards compatability
9996 _baseLogFileName = basename ;
100- _moduleName = moduleName ;
10197
10298 try
10399 {
@@ -113,13 +109,12 @@ public LocalDirectory(Container container, String moduleName, PipeRoot pipeRoot,
113109 }
114110
115111 // Constructor when pipeline root not in cloud
116- public LocalDirectory (@ NotNull File localDirectory , String moduleName , String basename )
112+ public LocalDirectory (@ NotNull File localDirectory , String basename )
117113 {
118114 _localDirectoryFile = localDirectory ;
119115 _isTemporary = false ;
120116 _pipeRoot = null ;
121117 _baseLogFileName = basename ;
122- _moduleName = moduleName ;
123118 _remoteDir = null ;
124119 }
125120
0 commit comments