mirror of
https://github.com/ethauvin/bld.git
synced 2025-04-25 08:17:11 -07:00
Fix for classpath generation of bld wrapper, making source sources and javadocs are not included.
This commit is contained in:
parent
8b75f74a1d
commit
1d38c914e0
1 changed files with 6 additions and 1 deletions
|
@ -70,6 +70,11 @@ public class Wrapper {
|
||||||
static final Pattern META_DATA_SNAPSHOT_VERSION = Pattern.compile("<snapshotVersion>.*?<value>([^<]+)</value>", Pattern.DOTALL | Pattern.CASE_INSENSITIVE);
|
static final Pattern META_DATA_SNAPSHOT_VERSION = Pattern.compile("<snapshotVersion>.*?<value>([^<]+)</value>", Pattern.DOTALL | Pattern.CASE_INSENSITIVE);
|
||||||
static final Pattern OPTIONS_PATTERN = Pattern.compile("\"[^\"]+\"|\\S+");
|
static final Pattern OPTIONS_PATTERN = Pattern.compile("\"[^\"]+\"|\\S+");
|
||||||
|
|
||||||
|
private static final Pattern JAR_EXCLUDE_SOURCES_PATTERN = Pattern.compile("^.*-sources\\.jar$", Pattern.CASE_INSENSITIVE);
|
||||||
|
private static final Pattern JAR_EXCLUDE_JAVADOC_PATTERN = Pattern.compile("^.*-javadoc\\.jar$", Pattern.CASE_INSENSITIVE);
|
||||||
|
private static final Pattern[] CLASSPATH_INCLUDED_JARS = new Pattern[]{JAR_FILE_PATTERN};
|
||||||
|
private static final Pattern[] CLASSPATH_EXCLUDED_JARS = new Pattern[]{JAR_EXCLUDE_SOURCES_PATTERN, JAR_EXCLUDE_JAVADOC_PATTERN, Pattern.compile(WRAPPER_JAR)};
|
||||||
|
|
||||||
private File currentDir_ = new File(System.getProperty("user.dir"));
|
private File currentDir_ = new File(System.getProperty("user.dir"));
|
||||||
private LaunchMode launchMode_ = LaunchMode.Cli;
|
private LaunchMode launchMode_ = LaunchMode.Cli;
|
||||||
|
|
||||||
|
@ -649,7 +654,7 @@ public class Wrapper {
|
||||||
private List<File> bldClasspathJars() {
|
private List<File> bldClasspathJars() {
|
||||||
// detect the jar files in the compile lib directory
|
// detect the jar files in the compile lib directory
|
||||||
var dir_abs = libBldDirectory().getAbsoluteFile();
|
var dir_abs = libBldDirectory().getAbsoluteFile();
|
||||||
var jar_files = FileUtils.getFileList(dir_abs, JAR_FILE_PATTERN, Pattern.compile(WRAPPER_JAR));
|
var jar_files = FileUtils.getFileList(dir_abs, CLASSPATH_INCLUDED_JARS, CLASSPATH_EXCLUDED_JARS);
|
||||||
|
|
||||||
// build the compilation classpath
|
// build the compilation classpath
|
||||||
return new ArrayList<>(jar_files.stream().map(file -> new File(dir_abs, file)).toList());
|
return new ArrayList<>(jar_files.stream().map(file -> new File(dir_abs, file)).toList());
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue