Commit acef949 1 parent 67e2e17 commit acef949 Copy full SHA for acef949
File tree 1 file changed +1
-2
lines changed
src/main/java/com/microsoft/sqlserver/jdbc
1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -284,7 +284,6 @@ private static void createConnectionRules(LinkedList<String> listOfRules) throws
284
284
private static String getCurrentClassPath () throws SQLServerException {
285
285
String location = "" ;
286
286
String className = "" ;
287
- String locationSuffix = "target/classes/" ;
288
287
289
288
try {
290
289
className = new Object () {}.getClass ().getEnclosingClass ().getName ();
@@ -295,7 +294,7 @@ private static String getCurrentClassPath() throws SQLServerException {
295
294
// We check if the Path we get from the CodeSource location is a directory. If so, we are running
296
295
// from class files and should remove a suffix (i.e. the props file is in a different location from the
297
296
// location returned)
298
- location = location .substring (0 , location .length () - locationSuffix .length ());
297
+ location = location .substring (0 , location .length () - ( "target/classes/" ) .length ());
299
298
}
300
299
301
300
return new URI (location ).getPath () + DEFAULT_PROPS_FILE ; // TODO: Allow custom paths
You can’t perform that action at this time.
0 commit comments