Added ability to the directory and script template using a String

This commit is contained in:
Erik C. Thauvin 2024-06-22 20:15:40 -07:00
parent 1e90d059cf
commit 1cfa3a712f
Signed by: erik
GPG key ID: 776702A6A2DA330E
7 changed files with 60 additions and 7 deletions

View file

@ -175,6 +175,16 @@ public class GeneratedVersionOperation extends AbstractOperation<GeneratedVersio
return this;
}
/**
* Sets the class template path.
*
* @param template the template path
* @return this operation instance
*/
public GeneratedVersionOperation classTemplate(String template) {
return classTemplate(new File(template));
}
/**
* Sets the destination directory.
*
@ -186,6 +196,16 @@ public class GeneratedVersionOperation extends AbstractOperation<GeneratedVersio
return this;
}
/**
* Sets the destination directory.
*
* @param directory the destination directory
* @return this operation instance
*/
public GeneratedVersionOperation directory(String directory) {
return directory(new File(directory));
}
/**
* Generates a version data class for this project.
*/