File tree Expand file tree Collapse file tree 1 file changed +9
-8
lines changed
src/test/java/org/gitlab4j/api Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -11,16 +11,17 @@ public class HelperUtils {
11
11
private static Properties testProperties ;
12
12
static {
13
13
14
- // Get the maven basedir, we use it to locate the properties for the unit tests
15
- String basedir = (String ) System .getProperties ().get ("basedir" );
16
-
17
- // If we are performing a release in target/checkout, trim off the target/checkout directory from basedir
18
- if (basedir != null && (basedir .endsWith ("target/checkout" ) || basedir .endsWith ("target\\ checkout" ))) {
19
- basedir = basedir .substring (0 , basedir .length () - 15 );
20
- }
21
-
22
14
File propertiesFile = new File ((String ) System .getProperties ().get ("user.home" ), "test-gitlab4j.properties" );
23
15
if (!propertiesFile .exists ()) {
16
+
17
+ // Get the maven basedir, we use it to locate the properties for the unit tests
18
+ String basedir = (String ) System .getProperties ().get ("basedir" );
19
+
20
+ // If we are performing a release in target/checkout, trim off the target/checkout directory from basedir
21
+ if (basedir != null && (basedir .endsWith ("target/checkout" ) || basedir .endsWith ("target\\ checkout" ))) {
22
+ basedir = basedir .substring (0 , basedir .length () - 15 );
23
+ }
24
+
24
25
propertiesFile = new File (basedir , "src/test/gitlab/test-gitlab4j.properties" );
25
26
}
26
27
You can’t perform that action at this time.
0 commit comments