クラス Compiler
- java.lang.Object
-
- com.matsuyoido.plugin.frontend.task.Compiler
-
- 直系の既知のサブクラス:
Minifier
public abstract class Compiler extends java.lang.ObjectCompiler
-
-
フィールドの概要
フィールド 修飾子とタイプ フィールド 説明 protected org.gradle.api.logging.Loggerlogprotected java.lang.StringoutputExtension
-
コンストラクタの概要
コンストラクタ コンストラクタ 説明 Compiler(java.lang.String outputExtension, java.lang.String regex, java.util.Set<java.lang.String> excludeRegex, boolean continueIfErrorExist)
-
メソッドの概要
すべてのメソッド インスタンス・メソッド abstractメソッド concreteメソッド 修飾子とタイプ メソッド 説明 protected voidafterEvaluate(java.nio.file.Path filePath, java.nio.file.Path outputPath, java.util.Optional<java.lang.Throwable> exception)If we handle compile result, this method override.protected abstract java.lang.Stringcompile(java.nio.file.Path filePath)protected voidcompileExecute(java.nio.file.Path filePath, java.nio.file.Path outputPath)protected java.nio.file.PathconvetToOutputPath(java.nio.file.Path inputRootPath, java.nio.file.Path outputRootPath, java.nio.file.Path inputFilePath)voidexecute(java.io.File inputDirectory, java.io.File outputDirectory)protected java.util.Set<java.nio.file.Path>getTargets(java.io.File inputDirectory)protected voidoutputFile(java.io.File outputFile, java.lang.String content)
-
-
-
メソッドの詳細
-
execute
public final void execute(java.io.File inputDirectory, java.io.File outputDirectory)
-
compileExecute
protected final void compileExecute(java.nio.file.Path filePath, java.nio.file.Path outputPath)
-
compile
protected abstract java.lang.String compile(java.nio.file.Path filePath)
-
afterEvaluate
protected void afterEvaluate(java.nio.file.Path filePath, java.nio.file.Path outputPath, java.util.Optional<java.lang.Throwable> exception)If we handle compile result, this method override.- パラメータ:
filePath- compile target pathoutputPath- compiled output pathexception- if happened error
-
getTargets
protected java.util.Set<java.nio.file.Path> getTargets(java.io.File inputDirectory) throws java.io.IOException- 例外:
java.io.IOException
-
convetToOutputPath
protected java.nio.file.Path convetToOutputPath(java.nio.file.Path inputRootPath, java.nio.file.Path outputRootPath, java.nio.file.Path inputFilePath)
-
outputFile
protected void outputFile(java.io.File outputFile, java.lang.String content) throws java.io.IOException- 例外:
java.io.IOException
-
-