Class SampleDirOptions.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • files

        @Stability(Experimental)
        public SampleDirOptions.Builder files​(Map<String,​String> files)
        Sets the value of SampleDirOptions.getFiles()
        Parameters:
        files - The files to render into the directory. These files get added after any files from source if that option is specified (replacing if names overlap).
        Returns:
        this
      • sourceDir

        @Stability(Experimental)
        public SampleDirOptions.Builder sourceDir​(String sourceDir)
        Parameters:
        sourceDir - Absolute path to a directory to copy files from (does not need to be text files). If your project is typescript-based and has configured testdir to be a subdirectory of src, sample files should outside of the src directory otherwise they may not be copied. For example:

                          new SampleDir(this, 'public', { source: path.join(__dirname, '..', 'sample-assets') });
                          
        Returns:
        this