In changes involving C++, *.h files should appear before their corresponding *.cc file, although their lexicographic order is the reverse. With this change, the relative order of *.h and *.cpp file pairs in file groups of change comment emails is corrected. Bug: Issue 4586 Change-Id: Ic9618a07167bde570bdfeb0ea54721c763034863
		
			
				
	
	
		
			76 lines
		
	
	
		
			1.6 KiB
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			76 lines
		
	
	
		
			1.6 KiB
		
	
	
	
		
			Python
		
	
	
	
	
	
SRC = 'src/main/java/com/google/gerrit/'
 | 
						|
 | 
						|
ANNOTATIONS = [
 | 
						|
  SRC + x for x in [
 | 
						|
    'common/Nullable.java',
 | 
						|
    'common/audit/Audit.java',
 | 
						|
    'common/auth/SignInRequired.java',
 | 
						|
  ]
 | 
						|
]
 | 
						|
 | 
						|
java_library(
 | 
						|
  name = 'annotations',
 | 
						|
  srcs = ANNOTATIONS,
 | 
						|
  visibility = ['PUBLIC'],
 | 
						|
)
 | 
						|
 | 
						|
gwt_module(
 | 
						|
  name = 'client',
 | 
						|
  srcs = glob([SRC + 'common/**/*.java']),
 | 
						|
  gwt_xml = SRC + 'Common.gwt.xml',
 | 
						|
  exported_deps = [
 | 
						|
    '//gerrit-extension-api:api',
 | 
						|
    '//gerrit-prettify:client',
 | 
						|
    '//lib:guava',
 | 
						|
    '//lib:gwtorm_client',
 | 
						|
    '//lib/jgit/org.eclipse.jgit:jgit',
 | 
						|
    '//lib/joda:joda-time',
 | 
						|
    '//lib/log:api',
 | 
						|
  ],
 | 
						|
  provided_deps = ['//lib:servlet-api-3_1'],
 | 
						|
  visibility = ['PUBLIC'],
 | 
						|
)
 | 
						|
 | 
						|
java_library(
 | 
						|
  name = 'server',
 | 
						|
  srcs = glob([SRC + 'common/**/*.java'], excludes = ANNOTATIONS),
 | 
						|
  deps = [
 | 
						|
    ':annotations',
 | 
						|
    '//gerrit-extension-api:api',
 | 
						|
    '//gerrit-patch-jgit:server',
 | 
						|
    '//gerrit-prettify:server',
 | 
						|
    '//gerrit-reviewdb:server',
 | 
						|
    '//lib:guava',
 | 
						|
    '//lib:gwtjsonrpc',
 | 
						|
    '//lib:gwtorm',
 | 
						|
    '//lib/jgit/org.eclipse.jgit:jgit',
 | 
						|
    '//lib/joda:joda-time',
 | 
						|
    '//lib/log:api',
 | 
						|
  ],
 | 
						|
  provided_deps = ['//lib:servlet-api-3_1'],
 | 
						|
  visibility = ['PUBLIC'],
 | 
						|
)
 | 
						|
 | 
						|
TEST = 'src/test/java/com/google/gerrit/common/'
 | 
						|
AUTO_VALUE_TEST_SRCS = [TEST + 'AutoValueTest.java']
 | 
						|
 | 
						|
java_test(
 | 
						|
  name = 'client_tests',
 | 
						|
  srcs = glob(['src/test/java/**/*.java'], excludes = AUTO_VALUE_TEST_SRCS),
 | 
						|
  deps = [
 | 
						|
    ':client',
 | 
						|
    '//lib:guava',
 | 
						|
    '//lib:junit',
 | 
						|
    '//lib:truth',
 | 
						|
  ],
 | 
						|
)
 | 
						|
 | 
						|
java_test(
 | 
						|
  name = 'auto_value_tests',
 | 
						|
  srcs = AUTO_VALUE_TEST_SRCS,
 | 
						|
  deps = [
 | 
						|
    '//lib:truth',
 | 
						|
    '//lib/auto:auto-value',
 | 
						|
  ],
 | 
						|
)
 |