Skip to content
The Jenkins Controller is preparing for shutdown. No new builds can be started.
Unstable

Changes

Summary

  1. JarUtil: Use common strings for exceptions (same as used in IOUtil) (details)
  2. IOUtil/JarUtil: DEBUG output on stderr not stdout (details)
  3. IOUtil: Add comments to slashify args @ caller; Use validated File @ (details)
  4. JARUtil/IOUtil: Reuse IOUtil.JAR_SCHEME_SEPARATOR (now a char); Add (details)
  5. IOUtil.toURL(..) Apply decodeFromURI(uri.getPath()) if file-scheme; Add (details)
  6. IOUtil.encodeToURI(): Only use method if required (details)
Commit f523625e510dbff8d8bc16f1bbf0a1e9189e40d0 by Sven Gothel
JarUtil: Use common strings for exceptions (same as used in IOUtil)
The file was modified src/java/com/jogamp/common/util/JarUtil.java (diff)
Commit a42d7974725769407de82430ed77ec4b16d8a60c by Sven Gothel
IOUtil/JarUtil: DEBUG output on stderr not stdout
The file was modified src/java/com/jogamp/common/util/JarUtil.java (diff)
The file was modified src/java/com/jogamp/common/util/IOUtil.java (diff)
Commit bd72d40781caf40c2148cdc7990218af44750c76 by Sven Gothel
IOUtil: Add comments to slashify args @ caller; Use validated File @ IOUtil.toURISimple ; DEBUG: stdout -> stderr

Add comments to slashify(..) arguments for better documentation.

+++

Use validated File @ IOUtil.toURISimple(..):
    slashify(file, true, isDirectory)
to
    slashify(new File(path).getAbsolutePath(), true, isDirectory)

i.e. same w/ above variant and determine absolute path via File instance.

+++

DEBUG: stdout -> stderr
The file was modified src/java/com/jogamp/common/util/IOUtil.java (diff)
Commit e9aae0ace6780af5f65e01001324832d56ed592f by Sven Gothel
JARUtil/IOUtil: Reuse IOUtil.JAR_SCHEME_SEPARATOR (now a char); Add DEBUG to JarUtil.getJarEntry(..)
The file was modified src/java/com/jogamp/common/util/IOUtil.java (diff)
The file was modified src/java/com/jogamp/common/util/JarUtil.java (diff)
Commit 4c835f0337674a0181c43f448d44d961e27b2f54 by Sven Gothel
IOUtil.toURL(..) Apply decodeFromURI(uri.getPath()) if file-scheme; Add IOUtil.decodeURIToFilePath(..) for native usage.

Refine comments, API doc.

toURL(..): Apply space conversion, decodeFromURI(..), on file-scheme path,
           ensuring decoded space.

++

Add decodeURIToFilePath(String uriPath) and decodeURIToFilePath(URI uri)

Both methods shall simplify decoding a file-URI for native platform usage.

Tested in TestIOUtilURIHandling

+++
The file was modified src/java/com/jogamp/common/util/IOUtil.java (diff)
The file was modified src/java/com/jogamp/common/util/JarUtil.java (diff)
The file was modified src/junit/com/jogamp/common/util/TestIOUtilURIHandling.java (diff)
The file was modified make/scripts/runtest.sh (diff)
The file was modified make/scripts/runtest-x64.bat (diff)
Commit 67dd9498368f0250180528d4fa10a09854066fea by Sven Gothel
IOUtil.encodeToURI(): Only use method if required

Only use IOUtil.encodeToURI() if required,
i.e. 'new URI(String)' but not 'new URI(scheme, ...)' since the latter already encodes the path.

TestIOUtilURIHandling.test00BasicCoding() validates above findings.
The file was modified src/junit/com/jogamp/common/util/TestIOUtilURIHandling.java (diff)
The file was modified src/java/com/jogamp/common/util/IOUtil.java (diff)