All Downloads are FREE. Search and download functionalities are using the official Maven repository.

tfw.build.SearchAndReplace Maven / Gradle / Ivy

Go to download

The FrameWork for building highly scalable and maintainable applications

The newest version!
package tfw.build;

import java.io.StringReader;
import java.nio.charset.StandardCharsets;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.Enumeration;
import java.util.List;
import java.util.Properties;
import java.util.stream.Collectors;
import java.util.stream.Stream;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public final class SearchAndReplace {
    private static final Logger LOGGER;

    static {
        System.setProperty("java.util.logging.SimpleFormatter.format", "[%1$tF %1$tT] [%4$-7s] %5$s %n");
        LOGGER = LoggerFactory.getLogger(SearchAndReplace.class);
    }

    private SearchAndReplace() {}

    public static void main(final String[] args) throws Exception {
        if (args.length < 1) {
            LOGGER.error("Usage: SearchAndReplace