This functionality is only available for certain module packages.

You are here: Reference > SCRIPTING > Methods of the interface IUtilAPI > getOutputDirectory(IProject project, boolean create)

getOutputDirectory(IProject project, boolean create)

Returns an org.eclipse.core.resources.IContainer object as a result. In the event of an error, an exception is thrown.

getOutputDirectory(IProject project, boolean create) throws CoreException
Argument IProject project Project object
Boolean create true = Directory is created if it does not exist.
false = No directory created.
Return value IContainer Project folder in the workspace.

The path can be determined from the return value with, among other things, the following method (see Eclipse help on IContainer).