mirror of
https://github.com/angryip/ipscan.git
synced 2025-10-26 11:18:17 +00:00
make base dir search smarter (and work under Intellij)
This commit is contained in:
parent
ef0c7f9b23
commit
b7d0d0aba4
@ -83,7 +83,10 @@ public class LabelsTest {
|
||||
|
||||
public static File findBaseDir() {
|
||||
URL url = LabelsTest.class.getClassLoader().getResource("messages.properties");
|
||||
return new File(url.getPath()).getParentFile().getParentFile();
|
||||
File parent = new File(url.getPath());
|
||||
while (!new File(parent, "build.xml").exists())
|
||||
parent = parent.getParentFile();
|
||||
return parent;
|
||||
}
|
||||
|
||||
private void recurseAndTestLabels(File dir) throws IOException {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user