下面列出了怎么用org.gradle.api.tasks.Internal的API类实例代码及写法,或者点击链接到github查看源代码。
@Internal
protected BuildFile getGradleBuildFile() {
final Path projectDirPath = getProject().getProjectDir().toPath();
final Path rootProjectPath = getProject().getParent() != null ? getProject().getRootProject().getProjectDir().toPath()
: null;
return new GradleBuildFileFromConnector(projectDirPath, platformDescriptor(),
rootProjectPath);
}
@Internal
public Object getSourceMap() {
File sourceMap = sourceMapFile.getAsFile().getOrNull();
if (sourceMap == null) {
return sourceMapEnabled;
} else {
return sourceMap;
}
}
@Internal
public PythonDetails getPythonDetails() {
if (null == pythonDetails) {
pythonDetails = getComponent().getDetails();
}
return pythonDetails;
}
@Internal
public PythonExtension getExtension() {
if (null == extension) {
extension = getProject().getExtensions().getByType(PythonExtension.class);
}
return extension;
}
@Internal
public SSOCredentialsCache getCredentialsCache() {
return credentialsCache;
}
@Internal
protected QuarkusProject getQuarkusProject() {
return QuarkusProject.of(getProject().getProjectDir().toPath(), platformDescriptor(), getGradleBuildFile());
}
@Internal
public Property<PlayPlatform> getPlatform() {
return platform;
}
@Internal
public boolean isJavaProject() {
return false;
}
@Internal
public Property<PlayPlatform> getPlatform() {
return platform;
}
@Internal
public VariantConfiguration getVariantConfiguration() {
return variantConfiguration;
}
@Internal
public CopySpec getMetaInf() {
return metaInf.addChild();
}
@Internal
protected abstract ReportRenderer getRenderer();
@Internal
public ConfigurableFileCollection getSourceRoots() {
return sourceRoots;
}
@Internal
public ConfigurableFileCollection getSourceRoots() {
return sourceRoots;
}
@Internal
public ConfigurableFileCollection getSourceRoots() {
return sourceRoots;
}
@Internal
public DirectoryProperty getPrefixDirectory() {
return prefixDirectory;
}
@Internal
public DirectoryProperty getVariantDirectory() {
return variantDirectory;
}
@Internal
public DirectoryProperty getProjectDirectory() {
return projectDirectory;
}
@Internal
public final DirectoryProperty getVariantDirectory() {
return variantDirectory;
}
@Internal
public DirectoryProperty getPrefixDirectory() {
return prefixDirectory;
}
@Internal
public DirectoryProperty getVariantDirectory() {
return variantDirectory;
}
@Internal
public DirectoryProperty getProjectDirectory() {
return projectDirectory;
}
@Internal
public final DirectoryProperty getVariantDirectory() {
return variantDirectory;
}
@Internal
public DirectoryProperty getPrefixDirectory() {
return prefixDirectory;
}
@Internal
public DirectoryProperty getVariantDirectory() {
return variantDirectory;
}
@Internal
public DirectoryProperty getProjectDirectory() {
return projectDirectory;
}
@Internal
public final DirectoryProperty getVariantDirectory() {
return variantDirectory;
}
@Internal
public DirectoryProperty getPrefixDirectory() {
return prefixDirectory;
}
@Internal
public DirectoryProperty getVariantDirectory() {
return variantDirectory;
}
@Internal
public DirectoryProperty getProjectDirectory() {
return projectDirectory;
}