Skip to content
This repository was archived by the owner on Sep 23, 2018. It is now read-only.

Releases: morimekta/utils

2.7.1: Keep FileWatcher method signatures

Choose a tag to compare

@morimekta morimekta released this 18 Jun 11:24
d603d7c

Otherwise previously compiled sourcew will get no such method exceptions when trying to use the FileWatcher class.

2.7.0: FileWatcher path handling

Choose a tag to compare

@morimekta morimekta released this 18 Jun 11:23
dbd7016
  • FileWatcher get wathers with proper path params instead of just File.

ChangeLog

6328187 New minor versions, as new functionality.
fbcca21 Add develop to testing.
b9a5cd0 Update StongHashBuilder Object array to be templated.
13e3578 replaceSymbolicLink does not need the dir workaround.
15c9f34 Add TemporaryAssetFolder utility.
e90f6bc New FileWatcher constructor that provides the WatcherService.
e99d6d0 FileWatcher listener with path instead of file.

2.6.0: FileWatcher updates

Choose a tag to compare

@morimekta morimekta released this 18 Jun 10:08
71486fb

ChangeLog

2116879 Javadoc trigger updates.
cf2f0b6 Update release procedure doc.
febb148 Updates guava and mockito.
6db34a2 Add notice when NOT to use the Base64 util.
140e8bf Make helper to trigger update of javadoc.io.
1660386 Updated versions and more.
4db1ea6 Use jekyll based site docs.
6054a93 Next version is 2.6.0
51f2ba0 Make FileWatcher handle multiple levels of symlinks.

2.5.1: JSON for HTML unescaping

Choose a tag to compare

@morimekta morimekta released this 19 Mar 12:16
bb0f255

Unescape '/' in JSON strings. This is allowed in order to ensure embedded JSON cannot contain the ending "</script>" tag.

2.5.0: File Handling

Choose a tag to compare

@morimekta morimekta released this 03 Feb 08:20
2131cc1

Notable Changes

  • FileUtil class with "missing" java.nio.Files methods: to resolve absolute canonical path.
  • FileWatcher can add watcher on individual file paths.
  • Simple Tuple class meant to pass multiple arguments down streams.

ChangeLog

26b7424 ProcessExecutor tesintg.
7893da2 Correct doclint argument for new javadoc plugin.
b56989c Adding a simple tuple class.
04dc2c5 Update used plugins.
3c400ba Let FileWatcher add per file watching.
211a845 Fix Strings to be locale independent.
a6df8f5 Exclude all IDEA settings. I keep them in separate repo now.
2c4a349 Make FileWatcher use Path and FileUtil to enhance path stability.
0af49f2 Updated minor version.
d1433ca Add missing copyright notices.
87560e1 Add file utility for handling symlinks and reading canonical path.

2.4.2: FileWatcher NPE fix

Choose a tag to compare

@morimekta morimekta released this 17 Jan 14:51
5bd8bd3

Handle NPE on empty relative file paths.

if the incoming file if the relative file path does not have a parent, file.getParent() returns null and file.getParent().getCanonicalFile().getAbsoluteFile() throwse an NPE. By resolving the getAbsoluteFile() path before getParent() this is avoided. getAbsoluteFile() should not resolve any symlinks so functionality of handling symlinks should stay the same. Watching "/" will still cause NPE.

2.4.1: FileWatcher symlink support

Choose a tag to compare

@morimekta morimekta released this 17 Jan 13:03
e8d7799

Resolve FileWatcher directory, not file.

If the watched file's parent directory is resolved to canonical path,
but not the file itself we get more consistency to what we listen to:
change to the file we point to as seen from the directory we specify.

This means that given:

/path/link -> /other
/path/file -> /other/file
/other/file

If you listen to /path/link/file, you get notified to changed to the
file content.

If you listen to /path/file, you get notified of changes to the symlink
that points to /other/file, in case it points to a different file, but
not to changes to the content of that file.

Prior Behavior:

All files were resolved to canonical file paths, so only changes to the
content of the actual underlying file would be detected. Also the file
path would always be the full canonical path of the resolved file when
called back to the watchers.

2.4.0: LineBufferedReader

Choose a tag to compare

@morimekta morimekta released this 16 Dec 13:05

Separate out a LineBufferedReader Reader implementation from the JsonTokenizer, which can be used in other tokenizer-like classes that specifically read lines, but should not read more than what it consumes.

ChangeLog:

  • Updated dependencies.
  • Update codestyles for idea 2017.3.
  • JsonTokenizer: Simplify EOF error position.
  • LineBufferedReader fixes and more testing.
  • Increase minor version.
  • Add a line buffered reader.

2.3.2 ByteBufferIO read bug

Choose a tag to compare

@morimekta morimekta released this 16 Dec 13:02
  • Fix ByteBufferIO bug bad byte read.
  • Add a fixed num bached collector.

2.3.1: Fix JSON tokenizer bugs

Choose a tag to compare

@morimekta morimekta released this 24 Oct 18:03
  • Missing method test on CharSlice.
  • Lots more tests on JSON tokenizer.
  • Fix bad test.
  • Add skipUntil that consumes readers.
  • Fix JSON line consolidation and nits.:
  • Missing @nonnull annotation.