Class BlowdryerSetup


  • public class BlowdryerSetup
    extends java.lang.Object
    Configures where Blowdryer.file(String) downloads files from.
    • Constructor Detail

      • BlowdryerSetup

        public BlowdryerSetup​(java.io.File rootDir)
        Pass in the directory that will be used to resolve string arguments to devLocal.
    • Method Detail

      • repoSubfolder

        public void repoSubfolder​(java.lang.String repoSubfolder)
        Default value is `src/main/resources`. If you change, you must change as the *first* call. The nice thing about the default `src/main/resources` is that if you ever want to, you could copy the blowdryer code into your blowdryer repo, and deploy your own plugin that pulls resources from the local jar rather than from github. Keeping the default lets you switch to that approach in the future without moving your scripts.
      • localJar

        public void localJar​(java.io.File jarFile)
        Uses the provided jarFile to extract a file resource.
        Parameters:
        jarFile - Absolute path to JAR on the file system.
      • experimental

        public void experimental​(groovy.lang.Closure<java.lang.String> function)
        Sets the mapping from `file(String)` to `immutableUrl(String)`.
      • experimental

        public void experimental​(java.util.function.Function<java.lang.String,​java.lang.String> function)
        Sets the mapping from `file(String)` to `immutableUrl(String)`.
      • devLocal

        public void devLocal​(java.lang.Object devPath)
        Sets the source to be the given local folder, usually for developing changes before they are pushed to git.