Brings java wrapper updates from develop
The wrappers compile but fail tests due to some missing develop functionality
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
||||
* Copyright by The HDF Group. *
|
||||
* Copyright by the Board of Trustees of the University of Illinois. *
|
||||
* All rights reserved. *
|
||||
* *
|
||||
* This file is part of HDF5. The full HDF5 copyright notice, including *
|
||||
@@ -60,9 +59,9 @@ public class H5Ex_G_Compact {
|
||||
}
|
||||
|
||||
public static void CreateGroup() {
|
||||
long file_id = -1;
|
||||
long group_id = -1;
|
||||
long fapl_id = -1;
|
||||
long file_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long group_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long fapl_id = HDF5Constants.H5I_INVALID_HID;
|
||||
H5G_info_t ginfo;
|
||||
long size;
|
||||
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
||||
* Copyright by The HDF Group. *
|
||||
* Copyright by the Board of Trustees of the University of Illinois. *
|
||||
* All rights reserved. *
|
||||
* *
|
||||
* This file is part of HDF5. The full HDF5 copyright notice, including *
|
||||
@@ -25,10 +24,10 @@ public class H5Ex_G_Corder {
|
||||
private static String FILE = "H5Ex_G_Corder.h5";
|
||||
|
||||
private static void CreateGroup() throws Exception {
|
||||
long file_id = -1;
|
||||
long group_id = -1;
|
||||
long subgroup_id = -1;
|
||||
long gcpl_id = -1;
|
||||
long file_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long group_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long subgroup_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long gcpl_id = HDF5Constants.H5I_INVALID_HID;
|
||||
int status;
|
||||
H5G_info_t ginfo;
|
||||
int i;
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
||||
* Copyright by The HDF Group. *
|
||||
* Copyright by the Board of Trustees of the University of Illinois. *
|
||||
* All rights reserved. *
|
||||
* *
|
||||
* This file is part of HDF5. The full HDF5 copyright notice, including *
|
||||
@@ -25,8 +24,8 @@ public class H5Ex_G_Create {
|
||||
private static String GROUPNAME = "G1";
|
||||
|
||||
private static void CreateGroup() {
|
||||
long file_id = -1;
|
||||
long group_id = -1;
|
||||
long file_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long group_id = HDF5Constants.H5I_INVALID_HID;
|
||||
|
||||
// Create a new file using default properties.
|
||||
try {
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
||||
* Copyright by The HDF Group. *
|
||||
* Copyright by the Board of Trustees of the University of Illinois. *
|
||||
* All rights reserved. *
|
||||
* *
|
||||
* This file is part of HDF5. The full HDF5 copyright notice, including *
|
||||
@@ -31,9 +30,9 @@ public class H5Ex_G_Intermediate {
|
||||
|
||||
private void CreateGroup() throws Exception {
|
||||
|
||||
long file_id = -1;
|
||||
long group_id = -1;
|
||||
long gcpl_id = -1;
|
||||
long file_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long group_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long gcpl_id = HDF5Constants.H5I_INVALID_HID;
|
||||
|
||||
try {
|
||||
// Create a new file_id using the default properties.
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
||||
* Copyright by The HDF Group. *
|
||||
* Copyright by the Board of Trustees of the University of Illinois. *
|
||||
* All rights reserved. *
|
||||
* *
|
||||
* This file is part of HDF5. The full HDF5 copyright notice, including *
|
||||
@@ -58,7 +57,7 @@ public class H5Ex_G_Iterate {
|
||||
}
|
||||
|
||||
private static void do_iterate() {
|
||||
long file_id = -1;
|
||||
long file_id = HDF5Constants.H5I_INVALID_HID;
|
||||
|
||||
// Open a file using default properties.
|
||||
try {
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
||||
* Copyright by The HDF Group. *
|
||||
* Copyright by the Board of Trustees of the University of Illinois. *
|
||||
* All rights reserved. *
|
||||
* *
|
||||
* This file is part of HDF5. The full HDF5 copyright notice, including *
|
||||
@@ -60,11 +59,11 @@ public class H5Ex_G_Phase {
|
||||
}
|
||||
|
||||
private static void CreateGroup() {
|
||||
long file_id = -1;
|
||||
long group_id = -1;
|
||||
long subgroup_id = -1;
|
||||
long fapl_id = -1;
|
||||
long gcpl_id = -1;
|
||||
long file_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long group_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long subgroup_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long fapl_id = HDF5Constants.H5I_INVALID_HID;
|
||||
long gcpl_id = HDF5Constants.H5I_INVALID_HID;
|
||||
H5G_info_t ginfo;
|
||||
String name = "G0"; // Name of subgroup_id
|
||||
int i;
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
||||
* Copyright by The HDF Group. *
|
||||
* Copyright by the Board of Trustees of the University of Illinois. *
|
||||
* All rights reserved. *
|
||||
* *
|
||||
* This file is part of HDF5. The full HDF5 copyright notice, including *
|
||||
@@ -43,7 +42,7 @@ public class H5Ex_G_Traverse {
|
||||
public static H5L_iterate_t iter_cb = new H5L_iter_callbackT();
|
||||
|
||||
private static void OpenGroup() {
|
||||
long file_id = -1;
|
||||
long file_id = HDF5Constants.H5I_INVALID_HID;
|
||||
H5O_info_t infobuf;
|
||||
opdata od = new opdata();
|
||||
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
||||
* Copyright by The HDF Group. *
|
||||
* Copyright by the Board of Trustees of the University of Illinois. *
|
||||
* All rights reserved. *
|
||||
* *
|
||||
* This file is part of HDF5. The full HDF5 copyright notice, including *
|
||||
@@ -47,7 +46,7 @@ public class H5Ex_G_Visit {
|
||||
|
||||
private void VisitGroup() throws Exception {
|
||||
|
||||
long file_id = -1;
|
||||
long file_id = HDF5Constants.H5I_INVALID_HID;
|
||||
|
||||
try {
|
||||
// Open file
|
||||
|
||||
@@ -14,6 +14,7 @@
|
||||
top_builddir=@top_builddir@
|
||||
top_srcdir=@top_srcdir@
|
||||
srcdir=@srcdir@
|
||||
IS_DARWIN="@H5_IS_DARWIN@"
|
||||
|
||||
TESTNAME=EX_Groups
|
||||
EXIT_SUCCESS=0
|
||||
@@ -32,9 +33,9 @@ nerrors=0
|
||||
|
||||
# where the libs exist
|
||||
HDFLIB_HOME="$top_srcdir/java/lib"
|
||||
BLDLIBDIR="$top_builddir/hdf5/lib"
|
||||
BLDITERDIR="./groups"
|
||||
BLDDIR="."
|
||||
BLDLIBDIR="$BLDDIR/testlibs"
|
||||
BLDITERDIR="./groups"
|
||||
HDFTEST_HOME="$top_srcdir/java/examples/groups"
|
||||
JARFILE=jar@PACKAGE_TARNAME@-@PACKAGE_VERSION@.jar
|
||||
TESTJARFILE=jar@PACKAGE_TARNAME@groups.jar
|
||||
@@ -104,6 +105,13 @@ COPY_LIBFILES_TO_BLDLIBDIR()
|
||||
fi
|
||||
fi
|
||||
done
|
||||
if [ "$IS_DARWIN" = "yes" ]; then
|
||||
(cd $BLDLIBDIR; \
|
||||
install_name_tool -add_rpath @loader_path libhdf5_java.dylib; \
|
||||
exist_path=` otool -l libhdf5_java.dylib | grep libhdf5 | grep -v java | awk '{print $2}'`; \
|
||||
echo $exist_path; \
|
||||
install_name_tool -change $exist_path @rpath/libhdf5.dylib libhdf5_java.dylib)
|
||||
fi
|
||||
# copy jar files. Used -f to make sure get a new copy
|
||||
for tstfile in $COPY_JARTESTFILES
|
||||
do
|
||||
|
||||
Reference in New Issue
Block a user