mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-13 08:26:15 +00:00
Merge branch 'master' of github.com:sleuthkit/autopsy
This commit is contained in:
commit
85b16fcc8b
@ -142,6 +142,27 @@ public class PlatformUtil {
|
|||||||
return Places.getUserDirectory();
|
return Places.getUserDirectory();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get RCP project dirs
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
public static List<String> getProjectsDirs() {
|
||||||
|
List<String> ret = new ArrayList<String>();
|
||||||
|
String projectDir = System.getProperty("netbeans.dirs");
|
||||||
|
if (projectDir == null) {
|
||||||
|
return ret;
|
||||||
|
}
|
||||||
|
String [] split = projectDir.split(";");
|
||||||
|
if (split == null || split.length == 0) {
|
||||||
|
return ret;
|
||||||
|
}
|
||||||
|
for (String path : split) {
|
||||||
|
ret.add(path);
|
||||||
|
}
|
||||||
|
|
||||||
|
return ret;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get user config directory path
|
* Get user config directory path
|
||||||
*
|
*
|
||||||
|
@ -443,6 +443,16 @@ public final class IngestModuleLoader {
|
|||||||
//user modules
|
//user modules
|
||||||
urls.addAll(getJarPaths(PlatformUtil.getUserModulesPath()));
|
urls.addAll(getJarPaths(PlatformUtil.getUserModulesPath()));
|
||||||
|
|
||||||
|
// add other project dirs, such as from external modules
|
||||||
|
for (String projectDir : PlatformUtil.getProjectsDirs()) {
|
||||||
|
File modules = new File(projectDir + File.separator + "modules");
|
||||||
|
if (modules.exists()) {
|
||||||
|
urls.addAll(getJarPaths(modules.getAbsolutePath()));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return urls;
|
return urls;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user