fixed bug with deploymentName property

This commit is contained in:
2024-02-24 16:21:18 +08:00
parent 5304576900
commit 72bfcf4842
2 changed files with 3 additions and 4 deletions

View File

@@ -28,7 +28,7 @@ public abstract class Deploy2WildflyTask extends Exec {
@Input
public abstract Property<String> getRpcPassword();
@InputFile
@Input
public abstract Property<String> getDeploymentName();
@InputFile
@@ -66,8 +66,7 @@ public abstract class Deploy2WildflyTask extends Exec {
"--password=" + getRpcPassword().get(),
"--command=deploy "
+ getArtifact().getAsFile().get().getPath()
+ "--name "
+ getDeploymentName().get()
+ " --name=" + getDeploymentName().get()
+ " --force")
);
}