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
分享到:
相关推荐
NULL 博文链接:https://kylinsoong.iteye.com/blog/1054246
通过运行以下命令来安装customized-json : $ npm install customized-json 要验证JSON字符串,您可以按照以下示例中的描述运行模块: const customizedJSON = require ( 'customized-json' ) const jsonString =...
定制的openssl 测试项目
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
courseware is intended to be customized for South African school leaving candidates, further referred to as pre-college learners. The courseware is aimed at authenticated remote learning (online ...
自封装ESXi-6.7.0-20201004001-standard-customized.iso
这是VMware ESXi 7.0的DellEMC自定义映像 ESXi 7.0内部版本号:16324942 戴尔版本:A03 戴尔发布日期:2020年9月28日 VMware发布日期:2020年6月23日 重要的修复/更改 ================================= ...
制作日期:2019年12月26日,ESXi6.7标准版,加载了Realtek8111网卡驱动和sata控制器驱动,...SHA1: 92141996C6861C352FC68A519B4A406C467A4F63 分卷1压缩包地址: https://download.csdn.net/download/rox/12055594
android 自定义组件,小例子,实现动态显示资源加载百分比
From now on, FileDownloader support following components to be customized by yourself: Name Interface Default Impl Connection FileDownloadConnection FileDownloadUrlConnection OutputStream ...
ESXi 7.0 U1安装CD的DellEMC自定义映像 ESXi 7.0 U1内部版本号:16850804 戴尔版本:A00 戴尔发布日期:2020年10月6日 VMware发布日期:2020年10月6日 重要的修复/更改 ================================= ...
1、自行安装sublime text3、markdown及插件,如:Markdown Preview等 2、下载本模板,放到本地一个盘符目录,比如D:/template/customized-template-left-toc.html 3、打开sublime text3,进入:Preferences->package ...
ESXi-6.7.0-20190504001-standard-customized-8168网卡
ESXi-6.7.0-20191204001-standard-customized.iso
从VMware Online软件仓库创建ESXi安装ISO或Offline Bundle(标准模式) 从本地ESXi脱机捆绑包(-izip模式)创建ESXi安装ISO或脱机捆绑包 使用来自VMware Online仓库的ESXi补丁包更新本地ESXi脱机捆绑包(-izip -...