 bc485ee2fc
			
		
	
	bc485ee2fc
	
	
	
		
			
			These have essentially the same public fields, except for a few that were not previously exposed through ChangeApiImpl for no good reason. The most invasive change this requires is to hold on to the SubmitRecord.Label.Status value during label initialization in ChangeJson, which we now do by holding a pair of (LabelInfo, Status). This is an implementation detail of ChangeJson, so does not need to leak into the ChangeInfo class. Additionally, although we can kill most of ChangeInfoMapper, we still need the mapping of Change.Status to ChangeStatus, to avoid exposing an internal implementation detail of the database storage layer to the extension API. Change-Id: I20f78ed0bd893560bce1b55d47583d6cba3e3fb2
		
			
				
	
	
		
			61 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			61 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			Python
		
	
	
	
	
	
| SRC = 'src/main/java/com/google/gerrit/extensions/'
 | |
| SRCS = glob([SRC + '**/*.java'])
 | |
| 
 | |
| gwt_module(
 | |
|   name = 'client',
 | |
|   srcs = glob([
 | |
|     SRC + 'api/projects/ProjectState.java',
 | |
|     SRC + 'common/ChangeStatus.java',
 | |
|     SRC + 'common/InheritableBoolean.java',
 | |
|     SRC + 'common/ListChangesOption.java',
 | |
|     SRC + 'common/SubmitType.java',
 | |
|     SRC + 'common/Theme.java',
 | |
|     SRC + 'webui/GerritTopMenu.java',
 | |
|   ]),
 | |
|   gwt_xml = SRC + 'Extensions.gwt.xml',
 | |
|   visibility = ['PUBLIC'],
 | |
| )
 | |
| 
 | |
| java_binary(
 | |
|   name = 'extension-api',
 | |
|   deps = [':lib'],
 | |
|   visibility = ['PUBLIC'],
 | |
| )
 | |
| 
 | |
| java_library(
 | |
|   name = 'lib',
 | |
|   exported_deps = [
 | |
|     ':api',
 | |
|     '//lib/guice:guice',
 | |
|     '//lib/guice:guice-servlet',
 | |
|     '//lib:servlet-api-3_1',
 | |
|   ],
 | |
|   visibility = ['PUBLIC'],
 | |
| )
 | |
| 
 | |
| java_library(
 | |
|   name = 'api',
 | |
|   srcs = glob([SRC + '**/*.java']),
 | |
|   provided_deps = ['//lib/guice:guice'],
 | |
|   visibility = ['PUBLIC'],
 | |
| )
 | |
| 
 | |
| java_sources(
 | |
|   name = 'extension-api-src',
 | |
|   srcs = SRCS,
 | |
|   visibility = ['PUBLIC'],
 | |
| )
 | |
| 
 | |
| java_doc(
 | |
|   name = 'extension-api-javadoc',
 | |
|   title = 'Gerrit Review Extension API Documentation',
 | |
|   pkgs = ['com.google.gerrit.extensions'],
 | |
|   paths = ['src/main/java'],
 | |
|   srcs = SRCS,
 | |
|   deps = [
 | |
|     '//lib/guice:javax-inject',
 | |
|     '//lib/guice:guice_library'
 | |
|   ],
 | |
|   visibility = ['PUBLIC'],
 | |
| )
 |