Cleaned up API to match bld operations aand options APIs
This commit is contained in:
parent
46b9a52215
commit
eabca28d38
6 changed files with 56 additions and 6 deletions
|
@ -22,6 +22,7 @@ import rife.bld.operations.AbstractOperation;
|
|||
import rife.bld.operations.exceptions.ExitStatusException;
|
||||
|
||||
import java.io.File;
|
||||
import java.nio.file.Path;
|
||||
import java.util.logging.Level;
|
||||
import java.util.logging.Logger;
|
||||
|
||||
|
@ -67,6 +68,16 @@ public class GeneratedVersionOperation extends AbstractOperation<GeneratedVersio
|
|||
return classTemplate(new File(template));
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the class template path.
|
||||
*
|
||||
* @param template the template path
|
||||
* @return this operation instance
|
||||
*/
|
||||
public GeneratedVersionOperation classTemplate(Path template) {
|
||||
return classTemplate(template.toFile());
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the destination directory.
|
||||
*
|
||||
|
@ -88,6 +99,16 @@ public class GeneratedVersionOperation extends AbstractOperation<GeneratedVersio
|
|||
return directory(new File(directory));
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the destination directory.
|
||||
*
|
||||
* @param directory the destination directory
|
||||
* @return this operation instance
|
||||
*/
|
||||
public GeneratedVersionOperation directory(Path directory) {
|
||||
return directory(directory.toFile());
|
||||
}
|
||||
|
||||
/**
|
||||
* Generates a version data class for this project.
|
||||
*/
|
||||
|
@ -140,6 +161,15 @@ public class GeneratedVersionOperation extends AbstractOperation<GeneratedVersio
|
|||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrieves the generated version instance.
|
||||
*
|
||||
* @return the generated version
|
||||
*/
|
||||
public GeneratedVersion generatedVersion() {
|
||||
return generatedVersion_;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the package name.
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue