logic: implemented using .aar files as Java project dependencies
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
package com.sourcetrail;
|
||||
|
||||
import java.nio.file.Path;
|
||||
|
||||
import org.eclipse.jdt.core.dom.ASTNode;
|
||||
import org.eclipse.jdt.core.dom.BodyDeclaration;
|
||||
import org.eclipse.jdt.core.dom.CompilationUnit;
|
||||
@@ -24,4 +26,9 @@ public class Utility
|
||||
compilationUnit.getLineNumber(endPosition),
|
||||
compilationUnit.getColumnNumber(endPosition) + 1);
|
||||
}
|
||||
|
||||
public static String getFilenameWithoutExtension(Path filePath)
|
||||
{
|
||||
return filePath.getFileName().toString().replaceFirst("[.][^.]+$", "");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user