Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » laucher icon during headless build
laucher icon during headless build [message #2099] Thu, 08 May 2008 01:49 Go to next message
Will Horn is currently offline Will HornFriend
Messages: 265
Registered: July 2009
Senior Member
I have a product configuration with a launcher ico file

<win useIco="true">
<ico path="/com.example.foo/icons/icons.ico"/>
<bmp/>
</win>

When built in Eclipse, the exe is branded, but headless it was not.
After debugging, I realized the laucherIcons property was null which was
skipping the branding. So I added

launcherIcons=/com.example.foo/icons/icons.ico

to my build.properties and it worked. Why does the headless build not
read from the product file? If there is a good reason, then this
property should be in the build.properties template.

Or am I doing something wrong?

Thanks,
Will
Re: laucher icon during headless build [message #3234 is a reply to message #2099] Wed, 14 May 2008 21:37 Go to previous message
Andrew Niefer is currently offline Andrew NieferFriend
Messages: 990
Registered: July 2009
Senior Member
The headless build does try to read the .product file.

It tries to interpret the path as "/<plugin-id>/icons/icons.ico" or
"/<feature-id>/icons/icons.ico". Failing that it also tries
${buildDirectory}/plugins/<ico-path> and
${buildDirectory}/features/<ico-path>

If you look at the call to the eclipse.brand task in the assemble.*.xml
and package.*.xml files you should see the paths it is trying.

The launcherIcons property exists as a backup in case for some reason
none of the other paths tried were correct.

-Andrew
Will Horn wrote:
> I have a product configuration with a launcher ico file
>
> <win useIco="true">
> <ico path="/com.example.foo/icons/icons.ico"/>
> <bmp/>
> </win>
>
> When built in Eclipse, the exe is branded, but headless it was not.
> After debugging, I realized the laucherIcons property was null which was
> skipping the branding. So I added
>
> launcherIcons=/com.example.foo/icons/icons.ico
>
> to my build.properties and it worked. Why does the headless build not
> read from the product file? If there is a good reason, then this
> property should be in the build.properties template.
>
> Or am I doing something wrong?
>
> Thanks,
> Will
Re: laucher icon during headless build [message #566813 is a reply to message #2099] Wed, 14 May 2008 21:37 Go to previous message
Andrew Niefer is currently offline Andrew NieferFriend
Messages: 990
Registered: July 2009
Senior Member
The headless build does try to read the .product file.

It tries to interpret the path as "/<plugin-id>/icons/icons.ico" or
"/<feature-id>/icons/icons.ico". Failing that it also tries
${buildDirectory}/plugins/<ico-path> and
${buildDirectory}/features/<ico-path>

If you look at the call to the eclipse.brand task in the assemble.*.xml
and package.*.xml files you should see the paths it is trying.

The launcherIcons property exists as a backup in case for some reason
none of the other paths tried were correct.

-Andrew
Will Horn wrote:
> I have a product configuration with a launcher ico file
>
> <win useIco="true">
> <ico path="/com.example.foo/icons/icons.ico"/>
> <bmp/>
> </win>
>
> When built in Eclipse, the exe is branded, but headless it was not.
> After debugging, I realized the laucherIcons property was null which was
> skipping the branding. So I added
>
> launcherIcons=/com.example.foo/icons/icons.ico
>
> to my build.properties and it worked. Why does the headless build not
> read from the product file? If there is a good reason, then this
> property should be in the build.properties template.
>
> Or am I doing something wrong?
>
> Thanks,
> Will
Previous Topic:Plugins automated tests issue
Next Topic:Defining a PDE Target Platform
Goto Forum:
  


Current Time: Wed Apr 24 14:32:46 GMT 2024

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

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

Back to the top