public class

PathUtils

extends Object
java.lang.Object
   ↳ org.ops4j.pax.exam.util.PathUtils

Summary

Public Methods
static String getBaseDir()
Returns the base directory of the current Maven project, used by tests that require absolute paths.
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public static String getBaseDir ()

Returns the base directory of the current Maven project, used by tests that require absolute paths.

This works both when running under Surefire and when runnning a JUnit test from Eclipse, assuming the JUnit launcher default was not changed by the user.

Returns
  • base directory of current project