Skip to main content



      Home
Home » Eclipse Projects » Oomph » using boolean variables in filter
using boolean variables in filter [message #1740329] Thu, 11 August 2016 12:14 Go to next message
Eclipse UserFriend
Hello Guys,

I want to include or respectively exclute tasks from beeing triggered if a certain boolean flag is set.

is declared the flag via

<setupTask
        xsi:type="setup:VariableTask"
        id="bitness.is64"
        type="BOOLEAN"
        name="bitness.is64"
        defaultValue="true"
        storageURI="scope://Installation"
        label="64-Bit Software">
      <description></description>
    </setupTask>


and try to use it in that way:
filter="(bitness.is64=true)"

but this doesn't seem to work. Using just 'bitness.is64' yields an error by eclipse.

Can you help me here?

Greetings and Thanks in advance
Steffen
Re: using boolean variables in filter [message #1742042 is a reply to message #1740329] Thu, 11 August 2016 13:02 Go to previous message
Eclipse UserFriend
Steffen,

You can only use environment and system properties in a filter, not the
value of a variable. One trick (if the task doesn't need to perform at
bootstrap time) is an Eclipse Ini task to set a -D system property into
the installation's eclipse.ini.

But for this case, you should use the osgi.arch value and look at
org.eclipse.core.runtime.Platform.ARCH_* for the values that are for 64
bit architectures. You use (!(...)(...)) for each of those values in
the filter.

On 11.08.2016 18:14, Steffen Holzer wrote:
> Hello Guys,
> I want to include or respectively exclute tasks from beeing triggered
> if a certain boolean flag is set.
> is declared the flag via
>
> <setupTask
> xsi:type="setup:VariableTask"
> id="bitness.is64"
> type="BOOLEAN"
> name="bitness.is64"
> defaultValue="true"
> storageURI="scope://Installation"
> label="64-Bit Software">
> <description></description>
> </setupTask>
>
> and try to use it in that way:
> filter="(bitness.is64=true)"
> but this doesn't seem to work. Using just 'bitness.is64' yields an
> error by eclipse.
> Can you help me here?
>
> Greetings and Thanks in advance
> Steffen
Previous Topic:Howto prepare preconfigured Eclipse Installer
Next Topic:Access user selected arch value
Goto Forum:
  


Current Time: Sun Jul 20 02:24:00 EDT 2025

Powered by FUDForum. Page generated in 0.03549 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top