cytomine / Cytomine-IMS

Cytomine-IMS: Image Management System
GNU Lesser General Public License v2.1
14 stars 16 forks source link

Convert bash script to groovy #19

Open geektortoise opened 7 years ago

geektortoise commented 7 years ago

https://github.com/cytomine/Cytomine-IMS/blob/master/src/groovy/be/cytomine/multidim/hdf5/output/HDF5FileReader.groovy#L45

https://github.com/cytomine/Cytomine-IMS/blob/master/natives/scripts/relatedFiles.sh

Called : ./relatedFiles.sh filepath Ex : ./relatedFiles.sh /data/images/15660178/hdf5_24188462

Result : A string with all the filepath.*.h5. Ex : /data/images/15660178//hdf5_24188462.0.h5,/data/images/15660178//hdf5_24188462.1.h5,/data/images/15660178//hdf5_24188462.2.h5,/data/images/15660178//hdf5_24188462.3.h5,/data/images/15660178//hdf5_24188462.4.h5,/data/images/15660178//hdf5_24188462.5.h5,/data/images/15660178//hdf5_24188462.6.h5

Seems easy to do it in groovy and will simplify the buildConfig https://github.com/cytomine/Cytomine-IMS/commit/9788443cb4ae8a520cd143ef870ef80e2161f484

geektortoise commented 7 years ago

Also https://github.com/cytomine/Cytomine-bootstrap/commit/592a792abc2f61f537b3ba32c2cc8dc609510ae6

urubens commented 6 years ago

Done in ULiegeDev branch.