File tree Expand file tree Collapse file tree 1 file changed +11
-4
lines changed
src/main/java/org/scm4j/deployer/installers Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -65,15 +65,22 @@ public DeploymentResult start() {
65
65
66
66
@ Override
67
67
public void init (IDeploymentContext depCtx ) {
68
- if (folderName != null )
69
- outputFile = new File (depCtx .getDeploymentPath (), folderName );
70
- else
71
- outputFile = new File (depCtx .getDeploymentPath ());
68
+ if (outputFile == null ) {
69
+ if (folderName != null )
70
+ outputFile = new File (depCtx .getDeploymentPath (), folderName );
71
+ else
72
+ outputFile = new File (depCtx .getDeploymentPath ());
73
+ }
72
74
filesForDeploy = depCtx .getArtifacts ().values ();
73
75
}
74
76
75
77
public Copy setDefaultFolderName (String folderName ) {
76
78
this .folderName = folderName ;
77
79
return this ;
78
80
}
81
+
82
+ public Copy setFullPathToOutputFile (String fullPath ) {
83
+ this .outputFile = new File (fullPath );
84
+ return this ;
85
+ }
79
86
}
You can’t perform that action at this time.
0 commit comments