private void extractConfigSettings(Artifact artifact) throws MojoExecutionException {// NOSONAR
        try (JarFile configSettings = new JarFile(artifact.getFile())) {
            Enumeration<JarEntry> entries = configSettings.entries();
            while (entries.hasMoreElements()) {
                JarEntry jarFileEntry = entries.nextElement();
                // Only interested in files in the /bin directory that are not properties files
                if (!jarFileEntry.isDirectory() && jarFileEntry.getName().startsWith("bin")
                        && !jarFileEntry.getName().endsWith(".properties")) {
                    File fileToCreate = new File(jmeterDirectory, jarFileEntry.getName());
                    copyInputStreamToFile(configSettings.getInputStream(jarFileEntry), fileToCreate);
                }
            }
        } catch (IOException e) {
            throw new MojoExecutionException(e.getMessage(), e);
        }
    }
private void extractConfigSettings ( Artifact artifact ) throws MojoExecutionException { try ( JarFile configSettings = new JarFile ( artifact . getFile ( ) ) ) { Enumeration < JarEntry > entries = configSettings . entries ( ) ; while ( entries . hasMoreElements ( ) ) { JarEntry jarFileEntry = entries . nextElement ( ) ; if ( ! jarFileEntry . isDirectory ( ) && jarFileEntry . getName ( ) . startsWith ( "bin" ) && ! jarFileEntry . getName ( ) . endsWith ( ".properties" ) ) { File fileToCreate = new File ( jmeterDirectory , jarFileEntry . getName ( ) ) ; copyInputStreamToFile ( configSettings . getInputStream ( jarFileEntry ) , fileToCreate ) ; } } } catch ( IOException e ) { throw new MojoExecutionException ( e . getMessage ( ) , e ) ; } }
Extract the configuration settings (not properties files) from the configuration artifact
and load them into the /bin directory

@param artifact Configuration artifact
@throws MojoExecutionException MojoExecutionException