Editing Zz.unkrig.de
Jump to navigation
Jump to search
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 3: | Line 3: | ||
A set of command-line tools that handle not only directories and files, but also archive and compressed files, and even nested archive files. They can even disassemble Java <code>.class</code> files on-the fly and operate on the disassembly. | A set of command-line tools that handle not only directories and files, but also archive and compressed files, and even nested archive files. They can even disassemble Java <code>.class</code> files on-the fly and operate on the disassembly. | ||
== Tool | == Tool documentation == | ||
=== zzdiff === | === zzdiff === | ||
Line 9: | Line 9: | ||
Computes the differences between files, directory trees, archive file entries, compressed files and prints them in various formats; widely compatible with the UNIX™ DIFF command line utility. | Computes the differences between files, directory trees, archive file entries, compressed files and prints them in various formats; widely compatible with the UNIX™ DIFF command line utility. | ||
Read the [http://zz.unkrig.de/maindoc/ | Read the [http://zz.unkrig.de/maindoc/zzdiff.html command line tool documentation]. | ||
Read the [http://zz.unkrig.de/antdoc/index.html?tasks/zzdiff.html ANT task documentation]. | Read the [http://zz.unkrig.de/antdoc/index.html?tasks/zzdiff.html ANT task documentation]. | ||
Line 17: | Line 17: | ||
Finds files in directory trees and entries in archive files by various criteria; widely compatible with the UNIX™ FIND command line utility. | Finds files in directory trees and entries in archive files by various criteria; widely compatible with the UNIX™ FIND command line utility. | ||
Read the [http://zz.unkrig.de/maindoc/ | Read the [http://zz.unkrig.de/maindoc/zzfind.html command line tool documentation]. | ||
Read the [http://zz.unkrig.de/antdoc/index.html?tasks/zzfind.html ANT task documentation]. | Read the [http://zz.unkrig.de/antdoc/index.html?tasks/zzfind.html ANT task documentation]. | ||
Line 25: | Line 25: | ||
Finds lines in files in directory trees and in entries in archive files by regular expressions; widely compatible with the UNIX™ GREP command line utility. | Finds lines in files in directory trees and in entries in archive files by regular expressions; widely compatible with the UNIX™ GREP command line utility. | ||
Read the [http://zz.unkrig.de/maindoc/ | Read the [http://zz.unkrig.de/maindoc/zzgrep.html command line tool documentation]. | ||
Read the [http://zz.unkrig.de/antdoc/index.html?tasks/zzgrep.html ANT task documentation]. | Read the [http://zz.unkrig.de/antdoc/index.html?tasks/zzgrep.html ANT task documentation]. | ||
=== zzpatch === | === zzpatch === | ||
Line 41: | Line 33: | ||
Modifies the contents of files in directory trees and of entries in archive files by various criteria; widely compatible with the UNIX™ PATCH command line utility. | Modifies the contents of files in directory trees and of entries in archive files by various criteria; widely compatible with the UNIX™ PATCH command line utility. | ||
Read the [http://zz.unkrig.de/maindoc/ | Read the [http://zz.unkrig.de/maindoc/zzpatch.html command line tool documentation]. | ||
Read the [http://zz.unkrig.de/antdoc/index.html?tasks/zzpatch.html ANT task documentation]. | Read the [http://zz.unkrig.de/antdoc/index.html?tasks/zzpatch.html ANT task documentation]. | ||
== | == Resources == | ||
[https://svn.code.sf.net/p/loggifier/code/de.unkrig.zz/trunk/ Source code] | |||
[http://search.maven.org/ Binaries] | |||
[http://zz.unkrig.de/javadoc/ JAVADOC] | |||
These tools make heavy use of [http://commons.unkrig.de/ commons.unkrig.de]. | |||
== License == | == License == | ||
Line 173: | Line 53: | ||
== Change Log == | == Change Log == | ||
; Changes in version 1.3.0, 2016-10-30 | |||
; Changes in version 1.3.0, 2016-10-30 | |||
:* ZZFIND, <zzfind>: Line separator was missing from the "LS" action. | :* ZZFIND, <zzfind>: Line separator was missing from the "LS" action. | ||
:* ZZFIND, <zzfind>: Added the "-digest" and "-checksum" actions. | :* ZZFIND, <zzfind>: Added the "-digest" and "-checksum" actions. | ||
Line 302: | Line 66: | ||
:* Switched from the old ANT build to MAVEN. | :* Switched from the old ANT build to MAVEN. | ||
; Changes in version 1.2.5, 2016-02-12 | ; Changes in version 1.2.5, 2016-02-12 | ||
:* ZZFIND, <zzfind>: Added the "depth" property. | :* ZZFIND, <zzfind>: Added the "depth" property. | ||
:* ZZFIND, <zzfind>: Added the "comma operator", "-mtime", "-depth", "-minDepth" and "-maxDepth". | :* ZZFIND, <zzfind>: Added the "comma operator", "-mtime", "-depth", "-minDepth" and "-maxDepth". | ||
; Changes in version 1.2.4, 2016-02-10 | ; Changes in version 1.2.4, 2016-02-10 | ||
:* <zzpatch>: "condition=..." is now an attribute of the <patch> subelement, not the task. | :* <zzpatch>: "condition=..." is now an attribute of the <patch> subelement, not the task. | ||
:* zzdiff: Added command line option "--normal". | :* zzdiff: Added command line option "--normal". | ||
Line 314: | Line 78: | ||
:* ZZGREP: The "-quiet" command line option did not have any effect. | :* ZZGREP: The "-quiet" command line option did not have any effect. | ||
; Changes in version 1.2.3, 2015-09-27 | ; Changes in version 1.2.3, 2015-09-27 | ||
:* ZZFIND command line tool: Option "--look-into": Glob was compiled WITHOUT the WILDCARD|INCLUDES_EXCLUDES flag. | :* ZZFIND command line tool: Option "--look-into": Glob was compiled WITHOUT the WILDCARD|INCLUDES_EXCLUDES flag. | ||
; Changes in version 1.2.2, 2015-09-27 | ; Changes in version 1.2.2, 2015-09-27 | ||
:* ZZPATCH ant task: Removed attribute "memberName=..." from subelement "<add>", because the ant task does not traverse directories (opposed to the command line version), and thus adding members to directories is not possible. | :* ZZPATCH ant task: Removed attribute "memberName=..." from subelement "<add>", because the ant task does not traverse directories (opposed to the command line version), and thus adding members to directories is not possible. | ||
:* ZZDIFF: Fixed some NPEs that occurred when files / entries are EXCLUDED. | :* ZZDIFF: Fixed some NPEs that occurred when files / entries are EXCLUDED. | ||
Line 323: | Line 87: | ||
:* Generate and publish HTML documentation for ANT tasks with ANTDOC. | :* Generate and publish HTML documentation for ANT tasks with ANTDOC. | ||
; Changes in version 1.2.1, 2015-05-24 | ; Changes in version 1.2.1, 2015-05-24 | ||
:* FIND: Command line tool and ANT task now continue with next directory member on IOExceptions. | :* FIND: Command line tool and ANT task now continue with next directory member on IOExceptions. | ||
:* DIFF: Added the "tokenization" configuration parameter, which allows for Java token-based DIFFing. | :* DIFF: Added the "tokenization" configuration parameter, which allows for Java token-based DIFFing. | ||
Line 331: | Line 95: | ||
:* ZZFIND: Added the "<echo message=...>" and "<property name=... value=...>" actions. | :* ZZFIND: Added the "<echo message=...>" and "<property name=... value=...>" actions. | ||
; Changes in version 1.2.0, 2015-04-30 | ; Changes in version 1.2.0, 2015-04-30 | ||
:* "ArchiveFormatFactory" and "CompressionFormatFactory" now register "URLStreamHandler"s for all archive and compression formats, so these can be used as "protocols" of "java.net.URL", e.g. "zip:file:foo.zip!file.txt". | :* "ArchiveFormatFactory" and "CompressionFormatFactory" now register "URLStreamHandler"s for all archive and compression formats, so these can be used as "protocols" of "java.net.URL", e.g. "zip:file:foo.zip!file.txt". | ||
:* Major refactoring of 'de.unkrig.commons.file.fileprocessing' and 'de.unkrig.commons.file.contentsprocessing'. Effectively, ZZGREP can now use these classes, because 'process()' now returns 'T'. | :* Major refactoring of 'de.unkrig.commons.file.fileprocessing' and 'de.unkrig.commons.file.contentsprocessing'. Effectively, ZZGREP can now use these classes, because 'process()' now returns 'T'. | ||
Line 345: | Line 109: | ||
:* <zzdiff>: Replaced the "<exclude>" subelements with the "path=..." attribute, eliminating the unusual "negative" logic. | :* <zzdiff>: Replaced the "<exclude>" subelements with the "path=..." attribute, eliminating the unusual "negative" logic. | ||
; Changes in version 1.1.0, 2014-10-25 | ; Changes in version 1.1.0, 2014-10-25 | ||
:* zzpatch: No file arguments mean 'transform STDIN to STDOUT'. | :* zzpatch: No file arguments mean 'transform STDIN to STDOUT'. | ||
:* zzpatch: Added 'conditions' for the 'substitute', 'replace', 'patch', 'remove', 'rename' and 'add' features. | :* zzpatch: Added 'conditions' for the 'substitute', 'replace', 'patch', 'remove', 'rename' and 'add' features. | ||
Line 354: | Line 118: | ||
:* <zzgrep>: Removed the "dir=..." attribute. | :* <zzgrep>: Removed the "dir=..." attribute. | ||
; Changes in version 1.0.11, 2014-04-12 | ; Changes in version 1.0.11, 2014-04-12 | ||
:* ZZDIFF: Added option '-unchanged-files' resp. ANT task attribute 'reportUnchangedFiles="true"': Also report unchanged files. | :* ZZDIFF: Added option '-unchanged-files' resp. ANT task attribute 'reportUnchangedFiles="true"': Also report unchanged files. | ||
:* ZZDIFF: Added '-zip' and '-nested-zip' command line options - aliases for '-z' and '-zz'. | :* ZZDIFF: Added '-zip' and '-nested-zip' command line options - aliases for '-z' and '-zz'. | ||
Line 369: | Line 133: | ||
:* <zzgrep>: Runtime optimization: Now only the files to which at least one search applies are processed. | :* <zzgrep>: Runtime optimization: Now only the files to which at least one search applies are processed. | ||
; Changes in version 1.0.10, 2014-03-22 | ; Changes in version 1.0.10, 2014-03-22 | ||
:* ZZDIFF: Added option '-keep-going' resp. ANT task attribute 'keepGoing="true"': Report errors and continue with next file. | :* ZZDIFF: Added option '-keep-going' resp. ANT task attribute 'keepGoing="true"': Report errors and continue with next file. | ||
; Changes in version 1.0.9, 2014-03-20 | ; Changes in version 1.0.9, 2014-03-20 | ||
:* COMMONS.UTIL: Added the SIMPLELOGGING task that was missing from 'antlib.xml'. | :* COMMONS.UTIL: Added the SIMPLELOGGING task that was missing from 'antlib.xml'. | ||
:* COMMONS.FILE: Inserted lots of logging. | :* COMMONS.FILE: Inserted lots of logging. | ||
Line 381: | Line 145: | ||
:* ZZDIFF: Added diff mode 'EXIST', which is like diff mode 'QUIET' but ignores CONTENT differences. | :* ZZDIFF: Added diff mode 'EXIST', which is like diff mode 'QUIET' but ignores CONTENT differences. | ||
; Changes in version 1.0.8, 2013-11-29 | ; Changes in version 1.0.8, 2013-11-29 | ||
:* ZZDIFF: Absent file modes COMPARE_*_WITH_EMPTY: Added and deleted directories were counted as difference, although they shouldn't. | :* ZZDIFF: Absent file modes COMPARE_*_WITH_EMPTY: Added and deleted directories were counted as difference, although they shouldn't. | ||
; Changes in version 1.0.7, 2013-11-26 | ; Changes in version 1.0.7, 2013-11-26 | ||
:* The ZZ tools now live in ONE jar file; there is a new 'Main' class that forks into the various tools | :* The ZZ tools now live in ONE jar file; there is a new 'Main' class that forks into the various tools | ||
:* Renamed the tasks from 'de.unkrig.zz.diff' to 'zzdiff'. | :* Renamed the tasks from 'de.unkrig.zz.diff' to 'zzdiff'. | ||
Line 390: | Line 154: | ||
:* ZZDIFF: Added ANT task property 'property'. | :* ZZDIFF: Added ANT task property 'property'. | ||
; Changes in version 1.0.6, 2013-10-02 | ; Changes in version 1.0.6, 2013-10-02 | ||
:* ZZPATCH: '-patch' now preserves line separators (instead of silently replacing them with the default line separator). | :* ZZPATCH: '-patch' now preserves line separators (instead of silently replacing them with the default line separator). | ||
; Changes in version 1.0.5, 2013-10-01 | ; Changes in version 1.0.5, 2013-10-01 | ||
:* ZZDIFF: Added the 'encoding' attribute to the ant task. | :* ZZDIFF: Added the 'encoding' attribute to the ant task. | ||
:* ZZFIND: Added the missing '<cat>' and '<ls>' actions to the ant task. | :* ZZFIND: Added the missing '<cat>' and '<ls>' actions to the ant task. | ||
Line 403: | Line 167: | ||
:* ZZPATCH: '-substitute' now preserves line separators (instead of silently replacing them with the default line separator). | :* ZZPATCH: '-substitute' now preserves line separators (instead of silently replacing them with the default line separator). | ||
; Changes in version 1.0.4, 2013-09-22 | ; Changes in version 1.0.4, 2013-09-22 | ||
:* ZZFIND: The 'readable', 'writable', 'size' and 'modificationTime' tests were missing from the ANT task | :* ZZFIND: The 'readable', 'writable', 'size' and 'modificationTime' tests were missing from the ANT task | ||
; Changes in version 1.0.3, 2013-09-22 | ; Changes in version 1.0.3, 2013-09-22 | ||
:* ZZDIFF: Added the 'absentFileMode' option (a.k.a. as '-new-file' and '-unidirectional-new-file'). | :* ZZDIFF: Added the 'absentFileMode' option (a.k.a. as '-new-file' and '-unidirectional-new-file'). | ||
:* SimpleLogging: VERBOSE messages were not printed because the OUT_HANDLER was misconfigured. | :* SimpleLogging: VERBOSE messages were not printed because the OUT_HANDLER was misconfigured. | ||
; Changes in version 1.0.2, 2013-07-05 | ; Changes in version 1.0.2, 2013-07-05 | ||
:* Fixed a major bug: 'SelectiveContentsTransfomer' executed BOTH delegates when the predicate evaluates to FALSE. This didn't hurt in many cases, but for 'zzpatch -update' it did. | :* Fixed a major bug: 'SelectiveContentsTransfomer' executed BOTH delegates when the predicate evaluates to FALSE. This didn't hurt in many cases, but for 'zzpatch -update' it did. | ||
; Changes in version 1.0.1, 2013-06-14 | ; Changes in version 1.0.1, 2013-06-14 | ||
:* Major refactoring of 'de.unkrig.commons'. | :* Major refactoring of 'de.unkrig.commons'. | ||
; Version 1.0.0, 2012-10-03 | ; Version 1.0.0, 2012-10-03 | ||
Initial release. | Initial release. |