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).
import com.mind8.mechatronic.skill.AbsoluteNameUtil
proj=AbsoluteNameUtil.getObjectByAbsolutePath("Feeder", UnitOfWork)
dir = IUtilAPI.DEFAULT.getOutputDirectory(proj, true)
path = dir.getLocation().toOSString()
// Diese Methoden liefern im normalen Kontext beispielsweise den Pfad "S:\WS\Feeder\" zurück.
// Im Job Server-Kontext liefert diese Methode beispielsweise den Pfad "S:\WS\Feeder\-etsehvxndtqz\" zurück.