@ -1150,10 +1150,6 @@ class BuildTarget(Target):
( str , bool ) )
( str , bool ) )
self . install_mode = kwargs . get ( ' install_mode ' , None )
self . install_mode = kwargs . get ( ' install_mode ' , None )
self . install_tag = stringlistify ( kwargs . get ( ' install_tag ' , [ None ] ) )
self . install_tag = stringlistify ( kwargs . get ( ' install_tag ' , [ None ] ) )
main_class = kwargs . get ( ' main_class ' , ' ' )
if not isinstance ( main_class , str ) :
raise InvalidArguments ( ' Main class must be a string ' )
self . main_class = main_class
if isinstance ( self , Executable ) :
if isinstance ( self , Executable ) :
# This kwarg is deprecated. The value of "none" means that the kwarg
# This kwarg is deprecated. The value of "none" means that the kwarg
# was not specified and win_subsystem should be used instead.
# was not specified and win_subsystem should be used instead.
@ -2913,6 +2909,7 @@ class Jar(BuildTarget):
self . filename = self . name + ' .jar '
self . filename = self . name + ' .jar '
self . outputs = [ self . filename ]
self . outputs = [ self . filename ]
self . java_args = kwargs . get ( ' java_args ' , [ ] )
self . java_args = kwargs . get ( ' java_args ' , [ ] )
self . main_class = kwargs . get ( ' main_class ' , ' ' )
self . java_resources : T . Optional [ StructuredSources ] = kwargs . get ( ' java_resources ' , None )
self . java_resources : T . Optional [ StructuredSources ] = kwargs . get ( ' java_resources ' , None )
def get_main_class ( self ) :
def get_main_class ( self ) :