Download Latest Version Find4j-0.2.0-Install.jar (1.3 MB)
Email in envelope

Get an email when there's a new version of JavaTB

Home / Find4j / v0.2.0
Name Modified Size InfoDownloads / Week
Parent folder
Find4j-src-0.2.0-0008-20120321.zip 2012-03-21 374.1 kB
Find4j-0.2.0-Install.jar 2012-03-21 1.3 MB
readme.txt 2012-03-21 3.3 kB
Totals: 3 Items   1.7 MB 0
Find4j 0.2
--------------------

This tool is a utility to search for files in an archive or a set of archives.
The supported archive formats are: *.zip, *.jar, *.ear, *.war, *.rar
They correspond to the archive formats that can be read by the Java zip APIs.
The code of this tool only uses classes in the java.util.zip package for this.
The search is case-insensitive.


Prerequisites
-------------

Java 1.5 or later is required to run it.
The %JAVA_HOME%\bin folder must be in the system path.


How to install
--------------

Simply unzip ArchiveExplorer.zip anywhere in your file system.


How to use it
-------------

Run the following command:

  on Windows: search.cmd <rootPath> <filePattern> [<searchString>]
  on Linux/Unix: ./search.sh <rootPath> <filePattern> [<searchString>]

Where:

- <rootPath> is the path to a folder or a supported archive
  If <rootPath> is a folder the search will be performed recusively in all the
  contained archives and subdirectories.
  The search will also be performed recursively for any level of nested
  archives (e.g. a jar in a WAR in an EAR)

- <filePattern> is a pattern that will be matched against every file name in
  every archive that is visited. Wildcards '*' and '?' are accepted.

- <searchString> is an optional string to search for in the visited files

Running "search" without arguments displays usage instruction.


Using the GUI:
-------------

Run the following command:

- on Windows: searchUI.cmd
- on Linux/Unix: ./searchUI.sh


Specifying zip file extensions
------------------------------

- Edit the file "config.properties" in the folder <FIND4J_INSTALL_ROOT>/config
- change or add the property "find4j.zip.extensions"
- the value is a list of space-separated file extensions
- example: "find4j.zip.extensions = zip jar war ear rar"


Examples
--------

1) The following query:

   search C:\bea mbean*connection.*

Results in 3 matches:
   
   c:\bea\jdk150_04\jre\lib\rt.jar/javax/management/MBeanServerConnection.class
   c:\bea\jrockit90_150_04\jre\lib\rt.jar/javax/management/MBeanServerConnection.class
   c:\bea\jrockit90_150_04\src.zip/javax/management/MBeanServerConnection.java
   Found 3 matches

2) search C:\ILOG\JRules671\executionserver\applicationservers\jboss40 *.prop* storage

Results in:

   C:\ILOG\JRules671\teamserver\applicationservers\jboss40\jrules-teamserver-JBOSS40.ear/jrules-teamserver-web-JBOSS40.war/WEB-INF/lib/model.jar/org/eclipse/birt/report/model/i18n/Messages.properties
   C:\ILOG\JRules671\teamserver\applicationservers\jboss40\jrules-teamserver-JBOSS40.ear/lib/lib.jar/ilog/rules/messages/messages.properties
   C:\ILOG\JRules671\teamserver\applicationservers\jboss40\jrules-teamserver-JBOSS40.ear/lib/rts.jar/ilog/rules/teamserver/preferences.properties
   Found 3 matches


Change History
--------------

Changes in v0.2
---------------

* changed the name to Find4j to avoid using trade marks
* added capability to configure the list of zip-compatible file extensions

Changes in v0.1
---------------

* search is no longer limited to archives and now includes every file visited
* added a feature to also look for a specified string in the files visited
* using JDK logging, so the distribution doesn't need the log4j.jar anymore (smaller zip file)
Source: readme.txt, updated 2012-03-21