spring security CopyPropertiesPlugin 源码

  • 2022-08-13
  • 浏览 (450)

spring security CopyPropertiesPlugin 代码

文件路径:/buildSrc/src/main/java/org/springframework/gradle/CopyPropertiesPlugin.java

package org.springframework.gradle;

import org.gradle.api.Plugin;
import org.gradle.api.Project;

public class CopyPropertiesPlugin implements Plugin<Project> {
	@Override
	public void apply(Project project) {
		copyPropertyFromRootProjectTo("group", project);
		copyPropertyFromRootProjectTo("version", project);
		copyPropertyFromRootProjectTo("description", project);
	}


	private void copyPropertyFromRootProjectTo(String propertyName, Project project) {
		Project rootProject = project.getRootProject();
		Object property = rootProject.findProperty(propertyName);
		if(property != null) {
			project.setProperty(propertyName, property);
		}
	}
}

相关信息

spring security 源码目录

相关文章

spring security AclEntryVoter 源码

spring security AclPermissionCacheOptimizer 源码

spring security AclPermissionEvaluator 源码

spring security AbstractAclProvider 源码

spring security AclEntryAfterInvocationCollectionFilteringProvider 源码

spring security AclEntryAfterInvocationProvider 源码

spring security ArrayFilterer 源码

spring security CollectionFilterer 源码

spring security Filterer 源码

spring security package-info 源码

0  赞