vico
vico

Reputation: 18221

Eclipse variables

Trying to manage post-build steps in Eclipse CDT project. Trying to copy newly builded file to directory ~/destination .

I could do following:

cp ${BuildArtifactFileBaseName}.so ~/destination

But I would like to escape from hardcoded parts there. For this reason I need to know:

Artifact extension Eclipse variable
Custom defined destination path variable

Where I can define custom variable for ~/destination ?

Where I can find whole list of Eclipse variables? Will they be different for Java and C++ projects?

Upvotes: 0

Views: 1057

Answers (2)

bttcld
bttcld

Reputation: 87

  1. Move on project folder in "Project Explore".
  2. From main menu bar click on "Project/Properties" menu label
  3. Activate the panel "C/C++ Build/Build Variables"
  4. Activate the checkbox "Show system variables"

You can see that "BuildArtifactFileBaseName" == ${ProjName}.

Upvotes: 0

Leonardo
Leonardo

Reputation: 1901

The Eclipse CDT build variables can be found at Window -> Preferences -> C/C++ -> Build ->Build Variables.

To see all variables, check the Show system variables checkbox.

Use the Add button on the Build Variables screen to add a new variable.

I don't have experience with Java on Eclipse, but probably there's an equivalent menu when compiling Java.

Upvotes: 0

Related Questions