How to write a cleaner for Apache Maven build tool

Asked by STB Land on 2017-02-07

How to write a cleaner for Apache Maven build tool for Java ( https://maven.apache.org/ )

This cleaner must find recursively all directories containing a file named "pom.xml" and a directory named "target" and delete "target" directory.
This cleaner does not delete "pom.xml" files.

Example! :

my code
|
|-- Java
        |
        |-- project_1
                  |
                  |- pom.xml
                  | - target
                           |
                           |- maven-status

Question information

Language:
English Edit question
Status:
Answered
For:
BleachBit Edit question
Assignee:
No assignee Edit question
Last query:
2017-02-07
Last reply:
2017-02-07
Andrew Ziem (ahziem1) said : #1

To delete target, use something like
 <action command="delete" search="walk.all" path="/path/to/target"/>

To delete pom.xml use something like
 <action command="delete" search="walk.files" path="/path/to/" regex="pom\.xml$" type="f"/>

For more information see
https://docs.bleachbit.org/doc/cleanerml.html

Can you help with this problem?

Provide an answer of your own, or ask STB Land for more information if necessary.

To post a message you must log in.