This functionality is only available for certain module packages.

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

getOutputDirectory(DisciplineObject discObject, boolean create)

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

getOutputDirectory(DisciplineObject discObject, boolean create) throws CoreException
Argument DisciplineObject discObject Discipline object for which a folder should be determined.
Boolean create true = Directory is created if it does not exist.
false = No directory created.
Return value IFolder Discipline folder in the workspace.

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