refactor: Add dry-run option to base class
This commit is contained in:
parent
082fd7d277
commit
b5e068a90a
3 changed files with 10 additions and 20 deletions
|
@ -24,6 +24,16 @@ public class AbstractJReleaserPlatformAwareModelOperation<S extends AbstractJRel
|
||||||
super(command);
|
super(command);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Enables dry-run mode.
|
||||||
|
*
|
||||||
|
* @return this operation instance
|
||||||
|
*/
|
||||||
|
public S dryRun() {
|
||||||
|
setOption("--dry-run", EMPTY);
|
||||||
|
return self();
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Limits artifact selection to the current platform.
|
* Limits artifact selection to the current platform.
|
||||||
*
|
*
|
||||||
|
|
|
@ -23,14 +23,4 @@ public class JReleaserPackageOperation extends AbstractJReleaserPackagerModelOpe
|
||||||
public JReleaserPackageOperation() {
|
public JReleaserPackageOperation() {
|
||||||
super("package");
|
super("package");
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Enables dry-run mode.
|
|
||||||
*
|
|
||||||
* @return this operation instance
|
|
||||||
*/
|
|
||||||
public JReleaserPackageOperation dryRun() {
|
|
||||||
setOption("--dry-run", EMPTY);
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -23,14 +23,4 @@ public class JReleaserPublishOperation extends AbstractJReleaserPackagerModelOpe
|
||||||
public JReleaserPublishOperation() {
|
public JReleaserPublishOperation() {
|
||||||
super("publish");
|
super("publish");
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Enables dry-run mode.
|
|
||||||
*
|
|
||||||
* @return this operation instance
|
|
||||||
*/
|
|
||||||
public JReleaserPublishOperation dryRun() {
|
|
||||||
setOption("--dry-run", EMPTY);
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue