Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Adding product version number in exported product zip file
Adding product version number in exported product zip file [message #499153] Fri, 20 November 2009 07:48 Go to next message
Bjoern Berg is currently offline Bjoern BergFriend
Messages: 47
Registered: November 2009
Location: Essen
Member
Hello,

I was wondering if it is possible to automaticllay add the version number of the product configuration to the exported zip file if you use PDE headless build, so that you get something like

$product-$version-win32.win32.x86.zip

I had a look at the documentation and googled the web but couldn't find a hint.

Maybe someone has an idea how to do the job.

Thanks in advance
Bjoern

[Updated on: Fri, 20 November 2009 07:50]

Report message to a moderator

Re: Adding product version number in exported product zip file [message #500030 is a reply to message #499153] Tue, 24 November 2009 18:13 Go to previous messageGo to next message
Andrew Niefer is currently offline Andrew NieferFriend
Messages: 990
Registered: July 2009
Senior Member
You won't be able to do this when exporting from the UI. To have that
level of control you will need to set up a headless build.

-Andrew

Bjoern Berg wrote:
> Hello,
>
> I was wondering if it is possible to automaticllay add the version
> number of the product configuration to the exported zip file, so that
> you get something like
>
> $product-$version-win32.win32.x86.zip
>
> I had a look at the documentation and googled the web but couldn't find
> a hint.
> Maybe someone has an idea how to do the job.
>
> Thanks in advance
> Bjoern
Re: Adding product version number in exported product zip file [message #500127 is a reply to message #500030] Wed, 25 November 2009 06:44 Go to previous messageGo to next message
Bjoern Berg is currently offline Bjoern BergFriend
Messages: 47
Registered: November 2009
Location: Essen
Member
Hi Andrew,

as I mentioned in my post, I use a headless build, but don't have a clue how to get the product version number into my zip files name.

Bjoern
Re: Adding product version number in exported product zip file [message #501001 is a reply to message #500127] Mon, 30 November 2009 16:17 Go to previous message
Eclipse UserFriend
Originally posted by: cjcool.comcast.net

Hi Bjoern:

In my build.xml file, I create a variable to contain the name and version of
my product:
<property name="archivePrefix"
value="MyProduct-${buildVersion}-I${DSTAMP}"/>

When calling the productBuild.xml builder, I pass the archive name prefix in
as a command line argument:

<arg value="-DarchiveNamePrefix=${archivePrefix}"/>


And in my builder's build.properties file, I use the variable to set the
archiveNamePrefix property:

archiveNamePrefix=${archiveNamePrefix}
I am using Galileo.

Chris

"Bjoern Berg" <rollin.hand@gmx.de> wrote in message
news:heijns$mk6$1@build.eclipse.org...
> Hi Andrew,
>
> as I mentioned in my post, I use a headless build, but don't have a clue
> how to get the product version number into my zip files name.
>
> Bjoern
Re: Adding product version number in exported product zip file [message #603595 is a reply to message #500030] Wed, 25 November 2009 06:44 Go to previous message
Bjoern Berg is currently offline Bjoern BergFriend
Messages: 47
Registered: November 2009
Location: Essen
Member
Hi Andrew,

as I mentioned in my post, I use a headless build, but don't have a clue how to get the product version number into my zip files name.

Bjoern
Re: Adding product version number in exported product zip file [message #603713 is a reply to message #603595] Mon, 30 November 2009 16:17 Go to previous message
Eclipse UserFriend
Originally posted by: cjcool.comcast.net

Hi Bjoern:

In my build.xml file, I create a variable to contain the name and version of
my product:
<property name="archivePrefix"
value="MyProduct-${buildVersion}-I${DSTAMP}"/>

When calling the productBuild.xml builder, I pass the archive name prefix in
as a command line argument:

<arg value="-DarchiveNamePrefix=${archivePrefix}"/>


And in my builder's build.properties file, I use the variable to set the
archiveNamePrefix property:

archiveNamePrefix=${archiveNamePrefix}
I am using Galileo.

Chris

"Bjoern Berg" <rollin.hand@gmx.de> wrote in message
news:heijns$mk6$1@build.eclipse.org...
> Hi Andrew,
>
> as I mentioned in my post, I use a headless build, but don't have a clue
> how to get the product version number into my zip files name.
>
> Bjoern
Previous Topic:Galileo & plugin template examples
Next Topic:Target platform problem
Goto Forum:
  


Current Time: Sat Aug 08 18:29:28 GMT 2020

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

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

Back to the top