@@ -1195,6 +1195,7 @@ def do_install(self, args: argparse.Namespace) -> None:
1195
1195
build_mode = self .build_modes [0 ].value
1196
1196
1197
1197
lib_name = self .lib_name .lower ()
1198
+ lib_name_camel = lib_name .capitalize ()
1198
1199
1199
1200
self .gprinstall (
1200
1201
args ,
@@ -1244,6 +1245,14 @@ def do_install(self, args: argparse.Namespace) -> None:
1244
1245
os .path .join ('ocaml' , 'dune' ),
1245
1246
os .path .join ('ocaml' , 'dune-project' ),
1246
1247
os .path .join ('ocaml' , lib_name + '.opam' ),
1248
+ os .path .join ('java' , 'Makefile' ),
1249
+ os .path .join ('java' , 'pom.xml' ),
1250
+ os .path .join ('java' , 'reflect_config.json' ),
1251
+ os .path .join ('java' , 'jni' ,
1252
+ f'com_adacore_{ lib_name } _{ lib_name_camel } _NI_LIB.h' ),
1253
+ os .path .join ('java' , 'jni' , 'jni_impl.c' ),
1254
+ os .path .join ('java' , 'src' , 'main' , 'java' , 'com' , 'adacore' ,
1255
+ lib_name , f'{ lib_name_camel } .java' ),
1247
1256
]:
1248
1257
install_path = os .path .dirname (self .dirs .install_dir (fpath ))
1249
1258
if not path .isdir (install_path ):
@@ -1254,20 +1263,6 @@ def do_install(self, args: argparse.Namespace) -> None:
1254
1263
f , os .path .join (install_path , os .path .basename (f ))
1255
1264
)
1256
1265
1257
- # If Java is enabled, install using Maven
1258
- if args .enable_java :
1259
- # Install the Java bindings in the Maven repository
1260
- self .maven_command (['install' ], args )
1261
-
1262
- # Put the bindings JAR in the installation folder
1263
- jar_name = f'{ lib_name } .jar'
1264
- jar_file = self .dirs .build_dir ('java' , 'target' , jar_name )
1265
- install_file = self .dirs .install_dir ('java' , jar_name )
1266
- install_path = os .path .dirname (install_file )
1267
- if not path .isdir (install_path ):
1268
- os .makedirs (install_path )
1269
- shutil .copyfile (jar_file , install_file )
1270
-
1271
1266
def do_setenv (self , args : argparse .Namespace ) -> None :
1272
1267
"""
1273
1268
Unless --json is passed, display Bourne shell commands that setup
0 commit comments