Skip to content

Commit 5af66af

Browse files
committed
Update moveFiles to use *.jar so that all jars in the target are moved.
1 parent 008c322 commit 5af66af

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/main/java/gr/gousiosg/javacg/stat/support/RepoTool.java

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -152,13 +152,7 @@ public static Optional<RepoTool> obtainTool(String folderName){
152152
private void moveJars() throws IOException {
153153
Path sourceDir = Paths.get(System.getProperty("user.dir"), getProjectDir(), "target");
154154
Path targetDir = Paths.get(System.getProperty("user.dir"), "artifacts", "output");
155-
156-
// @todo may want to be able to override this in the yaml file on a project basis...
157-
String depGlob = this.name + "*-with-dependencies.jar";
158-
String testGlob = this.name + "*-tests.jar";
159-
160-
moveFiles(sourceDir, targetDir, depGlob);
161-
moveFiles(sourceDir, targetDir, testGlob);
155+
moveFiles(sourceDir, targetDir, "*.jar");
162156
}
163157

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

0 commit comments

Comments
 (0)