Is it possible to remove unsupported platforms from build platforms list so if user runs build with no settings only supported paltforms will be packaged.

asked 17 May '12, 04:52

NicoleH's gravatar image

NicoleH
66202023
accept rate: 50%


You could use the below code in your <preBuildActionList> (in the example, just Linux and Windows are supported):

<preBuildActionList>
    <throwError text="Unsupported platform ${platform_name}: Only linux and windows are allowed">
           <ruleList>
                 <compareText text="${platform_name}" logic="does_not_equal" value="linux"/>
                 <compareText text="${platform_name}" logic="does_not_equal" value="windows"/>
           </ruleList>
    </throwError>
</preBuildActionList>
link

answered 17 May '12, 05:06

juanjo's gravatar image

juanjo ♦♦
5.8k413
accept rate: 23%

Your answer
toggle preview

Follow this question

By Email:

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

By RSS:

Answers

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

Tags:

×27
×6

Asked: 17 May '12, 04:52

Seen: 1,033 times

Last updated: 17 May '12, 05:06