public class ThemeCompile
extends org.gradle.api.DefaultTask
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
cleanup |
static java.lang.String |
COMPILE_CLASSPATH_CONFIGURATION |
protected boolean |
compress |
protected java.lang.String |
destDir |
protected java.util.List<java.lang.String> |
doNotUnpackPaths |
protected java.util.List<java.lang.String> |
excludedThemes |
protected java.util.List<java.lang.String> |
excludePaths |
protected boolean |
gzip |
protected java.lang.String |
scssDir |
protected java.util.List<java.lang.String> |
themes |
static java.lang.String |
VAADIN_STYLESHEETS_MANIFEST_KEY |
| Constructor and Description |
|---|
ThemeCompile() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
buildTheme(java.lang.String themeDirName,
java.io.File stylesDirectory,
java.io.File vaadinThemesRoot) |
protected void |
collectAddonIncludes(org.gradle.api.artifacts.Configuration configuration,
java.lang.StringBuilder appComponentsIncludeBuilder,
java.util.Set<org.gradle.api.artifacts.ResolvedArtifact> addedArtifacts,
java.util.List<java.lang.String> includeMixins,
java.util.Set<java.lang.String> includedPaths) |
protected java.util.List<java.io.File> |
collectThemeArchives(org.gradle.api.artifacts.Configuration themesConf) |
protected void |
collectThemeArchives(org.gradle.api.artifacts.ResolvedDependency dependency,
java.util.Set<org.gradle.api.artifacts.ResolvedArtifact> passedArtifacts,
java.util.List<java.io.File> files) |
protected void |
compileScss(java.io.File scssFile,
java.io.File cssFile) |
void |
compileThemes() |
protected void |
copyResources(java.io.File themesBuildDir,
java.io.File themesDestDir) |
protected void |
createGzipCss(java.io.File themeBuildDir,
java.io.File cssFile) |
protected void |
generateAddonIncludes(java.io.File themeBuildDir) |
java.lang.String |
getDestDir() |
java.io.File |
getOutputDirectory() |
java.lang.String |
getScssDir() |
java.io.File |
getSourceDirectory() |
java.util.List<java.lang.String> |
getThemes() |
protected java.lang.String |
getVaadinStylesheets(java.util.jar.JarInputStream jarStream) |
protected void |
includeVaadinStyles(java.lang.String vaadinStylesheets,
java.util.List<java.lang.String> includeMixins,
java.util.Set<java.lang.String> includedPaths,
java.lang.StringBuilder includeBuilder) |
boolean |
isCleanup() |
boolean |
isCompress() |
boolean |
isGzip() |
protected void |
performCssCompression(java.io.File themeDir,
java.io.File cssFile) |
protected void |
recursiveVisitDir(java.io.File dir,
java.util.function.Consumer<java.io.File> apply) |
protected void |
removeEmptyDirs(java.io.File themesDestDir) |
void |
setCleanup(boolean cleanup) |
void |
setCompress(boolean compress) |
void |
setDestDir(java.lang.String destDir) |
void |
setGzip(boolean gzip) |
void |
setScssDir(java.lang.String scssDir) |
void |
setThemes(java.util.List<java.lang.String> themes) |
protected void |
unpackThemesDependencies(java.io.File themesTmp,
java.io.File vaadinThemesRoot) |
protected void |
unpackVaadinAddonsThemes(java.io.File themesTmp) |
protected void |
walkDependencies(java.util.Set<org.gradle.api.artifacts.ResolvedDependency> dependencies,
java.util.Set<org.gradle.api.artifacts.ResolvedDependency> visitedDependencies,
java.util.Set<org.gradle.api.artifacts.ResolvedArtifact> addedArtifacts,
java.util.function.Consumer<org.gradle.api.artifacts.ResolvedArtifact> artifactAction) |
compareTo, configure, dependsOn, doFirst, doFirst, doFirst, doLast, doLast, doLast, finalizedBy, getActions, getAnt, getDependsOn, getDescription, getDestroyables, getDidWork, getEnabled, getExtensions, getFinalizedBy, getGroup, getInputs, getLocalState, getLogger, getLogging, getMustRunAfter, getName, getOutputs, getPath, getProject, getShouldRunAfter, getState, getTaskDependencies, getTemporaryDir, getTimeout, hasProperty, mustRunAfter, onlyIf, onlyIf, onlyIf, property, setActions, setDependsOn, setDescription, setDidWork, setEnabled, setFinalizedBy, setGroup, setMustRunAfter, setOnlyIf, setOnlyIf, setOnlyIf, setProperty, setShouldRunAfter, shouldRunAfter, usesServiceacceptServiceReferences, appendParallelSafeAction, doNotTrackState, getAsDynamicObject, getConvention, getIdentityPath, getImpliesSubProjects, getLifecycleDependencies, getOnlyIf, getReasonNotToTrackState, getReasonTaskIsIncompatibleWithConfigurationCache, getRequiredServices, getServices, getSharedResources, getStandardOutputCapture, getTaskActions, getTaskIdentity, getTemporaryDirFactory, hasTaskActions, injectIntoNewInstance, isCompatibleWithConfigurationCache, isEnabled, isHasCustomActions, notCompatibleWithConfigurationCache, prependParallelSafeAction, setImpliesSubProjectspublic static final java.lang.String VAADIN_STYLESHEETS_MANIFEST_KEY
public static final java.lang.String COMPILE_CLASSPATH_CONFIGURATION
@Input protected java.util.List<java.lang.String> themes
@Input protected java.lang.String scssDir
@Input protected java.lang.String destDir
@Input protected boolean compress
@Input protected boolean cleanup
@Input protected boolean gzip
protected java.util.List<java.lang.String> excludedThemes
protected java.util.List<java.lang.String> excludePaths
protected java.util.List<java.lang.String> doNotUnpackPaths
@OutputDirectory public java.io.File getOutputDirectory()
@InputDirectory public java.io.File getSourceDirectory()
public java.util.List<java.lang.String> getThemes()
public void setThemes(java.util.List<java.lang.String> themes)
public java.lang.String getScssDir()
public void setScssDir(java.lang.String scssDir)
public java.lang.String getDestDir()
public void setDestDir(java.lang.String destDir)
public boolean isCompress()
public void setCompress(boolean compress)
public boolean isCleanup()
public void setCleanup(boolean cleanup)
public boolean isGzip()
public void setGzip(boolean gzip)
public void compileThemes()
throws java.io.IOException
java.io.IOExceptionprotected void unpackVaadinAddonsThemes(java.io.File themesTmp)
protected void unpackThemesDependencies(java.io.File themesTmp,
java.io.File vaadinThemesRoot)
protected java.util.List<java.io.File> collectThemeArchives(org.gradle.api.artifacts.Configuration themesConf)
protected void collectThemeArchives(org.gradle.api.artifacts.ResolvedDependency dependency,
java.util.Set<org.gradle.api.artifacts.ResolvedArtifact> passedArtifacts,
java.util.List<java.io.File> files)
protected void buildTheme(java.lang.String themeDirName,
java.io.File stylesDirectory,
java.io.File vaadinThemesRoot)
throws java.io.FileNotFoundException
java.io.FileNotFoundExceptionprotected void compileScss(java.io.File scssFile,
java.io.File cssFile)
protected void createGzipCss(java.io.File themeBuildDir,
java.io.File cssFile)
protected void performCssCompression(java.io.File themeDir,
java.io.File cssFile)
protected void generateAddonIncludes(java.io.File themeBuildDir)
protected void collectAddonIncludes(org.gradle.api.artifacts.Configuration configuration,
java.lang.StringBuilder appComponentsIncludeBuilder,
java.util.Set<org.gradle.api.artifacts.ResolvedArtifact> addedArtifacts,
java.util.List<java.lang.String> includeMixins,
java.util.Set<java.lang.String> includedPaths)
protected void includeVaadinStyles(java.lang.String vaadinStylesheets,
java.util.List<java.lang.String> includeMixins,
java.util.Set<java.lang.String> includedPaths,
java.lang.StringBuilder includeBuilder)
protected void walkDependencies(java.util.Set<org.gradle.api.artifacts.ResolvedDependency> dependencies,
java.util.Set<org.gradle.api.artifacts.ResolvedDependency> visitedDependencies,
java.util.Set<org.gradle.api.artifacts.ResolvedArtifact> addedArtifacts,
java.util.function.Consumer<org.gradle.api.artifacts.ResolvedArtifact> artifactAction)
@Nullable protected java.lang.String getVaadinStylesheets(java.util.jar.JarInputStream jarStream)
protected void copyResources(java.io.File themesBuildDir,
java.io.File themesDestDir)
protected void removeEmptyDirs(java.io.File themesDestDir)
protected void recursiveVisitDir(java.io.File dir,
java.util.function.Consumer<java.io.File> apply)