Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
AdamBien committed Feb 11, 2019
1 parent 92ac09c commit 4c6dc2e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
3 changes: 2 additions & 1 deletion src/main/java/com/airhacks/wad/watch/boundary/WADFlow.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import com.airhacks.wad.watch.control.Builder;
import com.airhacks.wad.watch.control.Copier;
import com.airhacks.wad.watch.control.FolderWatchService;
import com.airhacks.wad.watch.control.TerminalColors;
import java.io.IOException;
import java.nio.file.Path;
import java.time.LocalTime;
Expand Down Expand Up @@ -47,7 +48,7 @@ void buildAndDeploy(Path war, List<Path> deploymentTargets) {
InvocationResult result = this.builder.build();
if (result.getExitCode() == 0) {
System.out.printf("[%d]", successCounter.incrementAndGet());
System.out.printf("[%s%s%s]", "\033[1;90m", currentFormattedTime(), );
System.out.printf("[%s%s%s]", TerminalColors.FILE.value(), currentFormattedTime(), TerminalColors.RESET.value());
System.out.print("\uD83D\uDC4D");
long buildTime = (System.currentTimeMillis() - start);
buildTimes.add(buildTime);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ public interface Configurator {

public static Set<Path> getConfiguredFolders(List<Path> commandLineArguments) {
Set<Path> deploymentFolders = getConfigurationFromUserDirectory();
deploymentFolders.forEach(f -> System.out.printf("%s from ~/.wadrc\n", f));
commandLineArguments.forEach(f -> System.out.printf("command line argument %s\n", f));
deploymentFolders.forEach(f -> System.out.printf("%s \'%s\' %s from ~/.wadrc\n", TerminalColors.FILE.value(), f, TerminalColors.RESET.value()));
commandLineArguments.forEach(f -> System.out.printf("command line argument %s \'%s\' %s\n", TerminalColors.FILE.value(), f, TerminalColors.RESET.value()));
deploymentFolders.addAll(commandLineArguments);
System.out.println("resulting deployment folders");
deploymentFolders.forEach(f -> System.out.println(f));
System.out.println("resulting deployment folders are:");
deploymentFolders.forEach(f -> System.out.printf("%s \'%s\' %s\n", TerminalColors.FILE.value(), f, TerminalColors.RESET.value()));
return deploymentFolders;

}
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/airhacks/wad/watch/control/Copier.java
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ Path copySingle(Path from, Path to) {
try {
kb = Files.size(from) / 1024;
warSizes.add(kb);
System.out.printf("Copying %dkB ThinWAR to %s %s %s \n", kb, "\u001B[34m", shortenForDisplay(to, 40), "\u001B[0m");
System.out.printf("Copying %dkB ThinWAR to %s %s %s \n", kb, TerminalColors.FILE.value(), shortenForDisplay(to, 40), TerminalColors.RESET.value());
return Files.copy(from, to, StandardCopyOption.REPLACE_EXISTING);

} catch (IOException ex) {
Expand Down

0 comments on commit 4c6dc2e

Please sign in to comment.