Class MetalService
java.lang.Object
br.dev.pedrolamarao.gradle.metal.base.MetalService
- All Implemented Interfaces:
org.gradle.api.services.BuildService<org.gradle.api.services.BuildServiceParameters.None>
public abstract class MetalService
extends Object
implements org.gradle.api.services.BuildService<org.gradle.api.services.BuildServiceParameters.None>
Metal service.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionarchiveFileName(String name) Formats an archive file name according to the host convention.archiveFileName(String target, String name) Formats an archive file name according to the target convention.executableFileName(String name) Formats an executable file name according to the host convention.executableFileName(String target, String name) Formats an executable file name according to the target convention.protected abstract org.gradle.process.ExecOperationsgetExec()Exec operations service.getHost()Host name.getPath()Tools path.protected abstract org.gradle.api.provider.ProviderFactoryProvider factory service.Target name.locateTool(String name) Locate tool.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.gradle.api.services.BuildService
getParameters
-
Constructor Details
-
MetalService
@Inject public MetalService()Constructor.
-
-
Method Details
-
getExec
@Inject protected abstract org.gradle.process.ExecOperations getExec()Exec operations service.- Returns:
- service
-
getProviders
@Inject protected abstract org.gradle.api.provider.ProviderFactory getProviders()Provider factory service.- Returns:
- service
-
getHost
Host name.- Returns:
- value
-
getPath
Tools path.- Returns:
- value
-
getTarget
Target name.- Returns:
- value
-
archiveFileName
Formats an archive file name according to the host convention.- Parameters:
name- core name- Returns:
- file name
-
archiveFileName
Formats an archive file name according to the target convention.- Parameters:
target- targetname- core name- Returns:
- file name
-
executableFileName
Formats an executable file name according to the host convention.- Parameters:
name- core name- Returns:
- file name
-
executableFileName
Formats an executable file name according to the target convention.- Parameters:
target- targetname- core name- Returns:
- file name
-
locateTool
Locate tool.- Parameters:
name- tool name- Returns:
- tool executable file provider
-