Skip to content

Commit

Permalink
Use external tools
Browse files Browse the repository at this point in the history
  • Loading branch information
sormuras committed Apr 17, 2024
1 parent eabe9a7 commit a6ea3bf
Show file tree
Hide file tree
Showing 9 changed files with 8 additions and 164 deletions.
1 change: 1 addition & 0 deletions .bach/src/run.bach/module-info.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@
requires jdk.jfr;

exports run.bach;
exports run.bach.external;
}
60 changes: 0 additions & 60 deletions .bach/src/run.bach/run/Ant.java

This file was deleted.

2 changes: 2 additions & 0 deletions .bach/src/run.bach/run/Format.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package run;

import run.bach.external.GoogleJavaFormat;

class Format {
public static void main(String... args) {
var tool = new GoogleJavaFormat("1.22.0").install();
Expand Down
46 changes: 0 additions & 46 deletions .bach/src/run.bach/run/GoogleJavaFormat.java

This file was deleted.

53 changes: 0 additions & 53 deletions .bach/src/run.bach/run/Maven.java

This file was deleted.

1 change: 1 addition & 0 deletions .bach/src/run.bach/run/ToolFinderDemo.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import java.util.function.Consumer;
import java.util.spi.*;
import run.bach.*;
import run.bach.external.*;

class ToolFinderDemo {
public static void main(String... args) {
Expand Down
6 changes: 2 additions & 4 deletions .bach/src/run.bach/run/ToolSpaceDemo.java
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
package run;

import run.bach.ToolCall;
import run.bach.ToolFinder;
import run.bach.ToolRun;
import run.bach.ToolSpace;
import run.bach.*;
import run.bach.external.*;

class ToolSpaceDemo extends ToolSpace {
public static void main(String... args) {
Expand Down
1 change: 1 addition & 0 deletions .bach/src/run.bach/run/Versions.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package run;

import run.bach.*;
import run.bach.external.*;

class Versions {
public static void main(String... args) {
Expand Down
2 changes: 1 addition & 1 deletion .bach/src/run.bach/run/bach

0 comments on commit a6ea3bf

Please sign in to comment.