private static void copyFiles( ZipOutputStream dest, File jarFile, Predicate<String> filter )
		throws IOException
	{
		try( ZipInputStream zipInputStream = new ZipInputStream( new FileInputStream( jarFile ) ) ) {
			ZipEntry entry;
			while( (entry = zipInputStream.getNextEntry()) != null ) {
				if( filter.test( entry.getName() ) ) {
					dest.putNextEntry( entry );
					copyFile( zipInputStream, dest );
				}
			}
		}
	}
Reorders entries in a JAR file so that .properties files are placed before .class files,
which is necessary to workaround an issue in NetBeans 11.3 (and older).
See issues #13 and #93.

@author Karl Tauber
buildSrc/src/main/java/ReorderJarEntries.java