private static void copyFile( InputStream src, OutputStream dest )
		throws IOException
	{
		byte[] buf = new byte[8*1024];
		int len;
		while( (len = src.read( buf )) > 0 )
			dest.write( buf, 0, len );
		dest.flush();
	}
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