mirror of
https://github.com/ethauvin/rife2.git
synced 2025-04-30 18:48:13 -07:00
Exclude .DS_Store from uberjar and war archive creation
This commit is contained in:
parent
7bccc0e422
commit
c0f29fbd31
2 changed files with 4 additions and 0 deletions
|
@ -12,6 +12,7 @@ import java.io.File;
|
|||
import java.nio.file.Files;
|
||||
import java.util.*;
|
||||
import java.util.jar.Attributes;
|
||||
import java.util.regex.Pattern;
|
||||
|
||||
/**
|
||||
* Creates an uberjar archive of the provided jars and resources.
|
||||
|
@ -88,6 +89,7 @@ public class UberJarOperation {
|
|||
.sourceDirectories(List.of(stagingDirectory))
|
||||
.destinationDirectory(destinationDirectory())
|
||||
.destinationFileName(destinationFileName())
|
||||
.excluded(List.of(Pattern.compile("(?:(?:^.*[/\\\\])|^)\\.DS_Store$")))
|
||||
.execute();
|
||||
}
|
||||
|
||||
|
|
|
@ -11,6 +11,7 @@ import rife.tools.exceptions.FileUtilsErrorException;
|
|||
import java.io.*;
|
||||
import java.nio.file.*;
|
||||
import java.util.*;
|
||||
import java.util.regex.Pattern;
|
||||
|
||||
/**
|
||||
* Creates a war archive.
|
||||
|
@ -134,6 +135,7 @@ public class WarOperation {
|
|||
.sourceDirectories(List.of(stagingDirectory))
|
||||
.destinationDirectory(destinationDirectory())
|
||||
.destinationFileName(destinationFileName())
|
||||
.excluded(List.of(Pattern.compile("(?:(?:^.*[/\\\\])|^)\\.DS_Store$")))
|
||||
.execute();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue