How to get the project's file name?

Issue #91 new
Bee Jay created an issue

Jepretan Layar 2018-07-12 pada 12.12.00.png

As shown in the above image, OmniPascal has a feature to set a project by selecting a .lpr or .dpr file. Is there a way to obtain the project's file name as a variable to be used in a task? If it has no project file set, then simply return an empty string. Perhaps something like:

  • ${omnipascal.projectfilename}: File name (with extension) of the project file.
  • ${omnipascal.projectfilebase}: File base name (without extension) of the project file.
  • ${omnipascal.projectfileextension}: Only the extension part (.lpr/.dpr) of the project file.
  • ${omnipascal.projectfilepath}: Only the directory or path part of the project file with absolute path.
  • ${omnipascal.projectfilepathrelative}: Only the directory or path part of the project file with relative path.
  • ${omnipascal.projectfile}: Complete project's file name (includes all parts with absolute path).
  • ${omnipascal.projectfilerelative}: Complete project's file name (includes all parts but with relative path to workspace folder).

Is it possible? At least as environment variables.

Thank you.

Comments (0)

  1. Log in to comment