When we are in software developing we usually need to do some very simple things manually, for instance, we offen need to check the files under a directory is added or deleted. especially when your software come to test peroid, that means you have to install and uninstall your software many times, and every time your want to know which file has been added or which has been deleted, and for this requirement, this piece's Customized Utility Came out, the following is more detailed depicted:
Functionality:
FileChangeMonitor can help you monitor the files change under a defined folder, and record the monitor result to a defined file, and also can output the monitor result to console if you would. this utility is pretty useful when install some plugin software base on underlying software, in this occation, if you define your monitor the underlying software before you intall your plugin software, and then FileChangeMonitor will help you record what you had done, this pretty cool to a software developer.
FileChangeMonitor.xml has been supplyed for you to define the folder need to monitor, the result saved file and whether need to output to console or not, as following:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd">
<properties>
<entry key="monitor.folder">D:\dev-test\home</entry>
<entry key="hander.file">test.log</entry>
<entry key="hander.console">true</entry>
</properties>
monitor.folder: use to define the folder need to monitor
hander.file: the name of result record file name
hander.console: whether need to output to console or not(only 'true' or 'false' are allowed)
Utility Consists:
FileChangeMonitor consists of Three part:
1. Runnable lib folder(contain all jar files);
2. Configuration file(FileChangeMonitor.xml) ;
3. Executable script file both Windows and Linux(run.cmd and run.sh).
the figure below has a detailed instrcution.
How to Use?
FileChangeMonitor is very easy to use, i will give a Step by Step pictured demonstration:
1. Use a file editor tool to editor FileChangeMonitor.xml to define a folder to monitor, the file name to save record monitor result, whether need to output to console, the belows show the monitored folder is "D:\dev-test\home", the result will be saved to "record.log" file and need to output to console.
2. Start a command line, navigate to FileChangeMonitor folder and execute 'run.cmd' if you are in Windows system;
3. Do some change in monitored folder and check the result
Output in console:
record.log will be found in FileChangeMonitor root, and open the file you will find the same info:
4. Use Ctrl + C can terminate the FileChangeMonitor;
Supplement Claims:
1. The FileChangeMonitor do not support monitor a folder which own millions of files;
2. The FileChangeMonitor do not suppport to delete and add the same file very frequently.
Ending
The attached file 'FileChangeMonitor.rar' contain both FileChangeMonitor utility and src code.
- 大小: 8.8 KB
- 大小: 7.5 KB
- 大小: 5.4 KB
- 大小: 6.4 KB
- 大小: 9 KB
- 大小: 1.8 KB
分享到:
相关推荐
1. **文件I/O操作**:工具首先需要读取JAR文件,这涉及到Java的`java.util.jar`包,其中的`JarFile`类可以用来打开并访问JAR文件,而`JarEntry`类则表示JAR内的单个条目,通常是类文件。 2. **文件流处理**:对JAR...
通过运行以下命令来安装customized-json : $ npm install customized-json 要验证JSON字符串,您可以按照以下示例中的描述运行模块: const customizedJSON = require ( 'customized-json' ) const jsonString =...
1. **性能优化**:可能通过调整算法实现、减少不必要的计算或提高内存访问效率来提升OpenSSL的性能。 2. **功能定制**:根据项目需求添加或移除特定的加密算法,例如支持更高级的加密标准,或者剔除不常用的功能以...
Jitsi Meet-安全,简单和可扩展的视频会议 Jitsi Meet是一个开源(Apache)WebRTC JavaScript应用程序,它使用提供高质量,和可扩展的视频会议。 在您可以在上看到Jitsi Meet的实际应用。 Jitsi Meet客户端在您的...
custom_email 使用 Excel 表格自定义电子邮件发件人使用google mail api google app engine apache poi library开发使用 ide , netbeans
一个简单的Spring Boot演示应用程序,演示了如何一起使用Spring Security,Thymeleaf,JPA,Postgres和Customized Bootstrap。 在此应用程序中,我们通过Spring Boot安装并使用了Node.js和其他节点模块,而没有运行...
Linux Device Drivers Development: Develop customized drivers for embedded Linux AZW3版(kindle格式),可以用开源软件calibre-ebook(https://calibre-ebook.com/)打开,里面的图片可以用该软件还原到原本的大...
制作日期:2019年12月26日,ESXi6.7标准版,加载了Realtek8111网卡驱动和sata控制器驱动,分卷1压缩包。SHA1: 92141996C6861C352FC68A519B4A406C467A4F63
自封装ESXi-6.7.0-20201004001-standard-customized.iso
1. **创建一个新的View类**:首先,我们需要创建一个继承自Android现有视图类(如LinearLayout, TextView, ProgressBar等)的新类。在这个例子中,我们可以选择ProgressBar作为基础,因为它已经具有显示进度的功能,...
ESXi-6.7.0-20191204001-standard-customized-8111f.iso 补入驱动 net55-r8168 支持以下网卡 10ec:8168, 1186:4300 (Realtek RTL8111B / RTL8168B / RTL8111/RTL8168 / RTL8111C / RTL8111CP / RTL8111D(L) / RTL...
制作日期:2019年12月26日,ESXi6.7标准版,加载了Realtek8111网卡驱动和sata控制器驱动,...SHA1: 92141996C6861C352FC68A519B4A406C467A4F63 分卷1压缩包地址: https://download.csdn.net/download/rox/12055594
ESXi-6.7.0-20190504001-standard-customized-8168网卡
ESXi 7.0 U1安装CD的DellEMC自定义映像 ESXi 7.0 U1内部版本号:16850804 戴尔版本:A00 戴尔发布日期:2020年10月6日 VMware发布日期:2020年10月6日 重要的修复/更改 ================================= ...
### LabVIEW Courseware Customization for Pre-College Learners #### Introduction Traditionally, teaching programming languages at the pre-college level has emphasized the use of graphical flow ...
网卡驱动封装之离线封装,r8168网卡驱动为例net55-r8168驱动支持网卡型号(Realtek RTL8111B / RTL8168B / RTL8111/RTL8168 / RTL8111C / RTL8111CP / RTL8111D(L) / RTL8168C / RTL8111DP / RTL8111E / RTL8168E / ...
ESXi-6.7.0-20191204001-standard-customized.iso
1. **Boot Settings Configuration**: 当系统提示需要按F1启动时,你可以进入Boot Settings Configuration,改变`Wait for 'F1' if error`选项至`Disabled`。这样,遇到错误时,系统将不再等待用户按键,而是直接...
From now on, FileDownloader support following components to be customized by yourself: Name Interface Default Impl Connection FileDownloadConnection FileDownloadUrlConnection OutputStream ...