Skip to content

Commit

Permalink
Update moveFiles to use *.jar so that all jars in the target are moved.
Browse files Browse the repository at this point in the history
  • Loading branch information
jcoultas committed Apr 8, 2022
1 parent 008c322 commit 5af66af
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/main/java/gr/gousiosg/javacg/stat/support/RepoTool.java
Original file line number Diff line number Diff line change
Expand Up @@ -152,13 +152,7 @@ public static Optional<RepoTool> obtainTool(String folderName){
private void moveJars() throws IOException {
Path sourceDir = Paths.get(System.getProperty("user.dir"), getProjectDir(), "target");
Path targetDir = Paths.get(System.getProperty("user.dir"), "artifacts", "output");

// @todo may want to be able to override this in the yaml file on a project basis...
String depGlob = this.name + "*-with-dependencies.jar";
String testGlob = this.name + "*-tests.jar";

moveFiles(sourceDir, targetDir, depGlob);
moveFiles(sourceDir, targetDir, testGlob);
moveFiles(sourceDir, targetDir, "*.jar");
}

private void moveFiles(Path sourceDir, Path targetDir, String glob) throws IOException {
Expand Down

0 comments on commit 5af66af

Please sign in to comment.