A console utility program that allows to find data from XML file.
Initial Data Example:
<node is-file="false">
<name>/</name>
<children>
<child is-file="true">
<name>file-776194140.xml</name>
</child>
<child is-file="false">
<name>dir-2096609034</name>
</child>
<child is-file="false">
<name>dir-721263753</name>
<children>
<child is-file="true">
<name>file-2033711217.xhtml</name>
</child>
<child is-file="false">
<name>dir-927762094</name>
</child>
<child is-file="true">
<name>file-25645735.java</name>
</child>
</children>
</child>
</children>
</node>
-f <xml_file_path>
-s <search_input_template>
-S <search_input_regex>
Example:
-f test-files.xml -s *.java
-f xml-file.xml -S ".*?[a-z]{4}-\d+\.[a-z]+"
mvn clean compile assembly:single
An example of running an executable jar file:
java -jar xml_data_handler.jar -f xml-file.xml -S ".*?[a-z]{4}-\d+\.[a-z]+"
java -jar xml_data_handler.jar -f xml-file.xml -s \".*xml\"