I have two builds defined in my project for Linux and for Windows. I would like some pre-build operations to be executed when I build Linux and some of the when I build Windows. In both cases, I run the build on Linux host. I used a rule "'${platform_name}' equals 'linux'" but it doesn't seem to be working. Also, is there a log file for build where I can see the output of what exactly is executed during the build?

asked 16 Apr '12, 01:35

NicoleH's gravatar image

accept rate: 50%

The ${platform_name} variable specifies build platform at build time, so perhaps it is a different issue.

Can you check if simply doing the following shows correct platform name:

    <showInfo text="${platform_name}" />

Also, when building from GUI, the log is always shown. When building from CLI, you can add --verbose option - for example:

$ /opt/installbuilder-8.1.0/bin/builder build path/to/project.xml linux --verbose

answered 16 Apr '12, 03:11

wojciechka's gravatar image

wojciechka ♦♦
accept rate: 26%

The showInfo idea in preBuild is nice to get more information, especially with platform_name. Is there a non-interactive way to output this in the console (i.e. a non-gui build)?

(11 May '12, 02:29) DevHopeful_2012

You can use --setvars to specify a variable name. This is documented in more details here:


(11 May '12, 05:11) wojciechka ♦♦
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: 16 Apr '12, 01:35

Seen: 2,096 times

Last updated: 11 May '12, 05:11