Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Buckminster » qualifier.replacement does not work in the IDE?
qualifier.replacement does not work in the IDE? [message #995972] Mon, 31 December 2012 12:26 Go to next message
Lorenzo Bettini is currently offline Lorenzo Bettini
Messages: 1307
Registered: July 2009
Senior Member
Hi

when I run buckminster headless qualifier replacement takes place
automatically with something like

1.0.0.201212301738

in the IDE I use a properties file which contains

qualifier.replacement.*=generator:buildTimestamp
generator.buildTimestamp.format=yyyyMMddHHmm

but when I run site.p2 action in the IDE I get an error

org.eclipse.core.runtime.CoreException:
<myeclipsedir>/configuration/org.eclipse.osgi/bundles/557/1/.cp/org/eclipse/buckminster/pde/antscripts/build.xml:300:
java.lang.IllegalArgumentException: Format
"format(n[.n=0;[.n=0;[.S=[A-Za-z0-9_-];='';]]])" was unable to parse
1.0.0.201212311725

am I doing something wrong?

cheers
Lorenzo

--
Lorenzo Bettini, PhD in Computer Science, DI, Univ. Torino
ICQ# lbetto, 16080134 (GNU/Linux User # 158233)
HOME: http://www.lorenzobettini.it MUSIC: http://www.purplesucker.com
http://www.myspace.com/supertrouperabba
BLOGS: http://tronprog.blogspot.com http://longlivemusic.blogspot.com
http://www.gnu.org/software/src-highlite
http://www.gnu.org/software/gengetopt
http://www.gnu.org/software/gengen http://doublecpp.sourceforge.net
Re: qualifier.replacement does not work in the IDE? [message #997267 is a reply to message #995972] Fri, 04 January 2013 15:23 Go to previous messageGo to next message
Alex Kravets is currently offline Alex Kravets
Messages: 373
Registered: November 2009
Senior Member
Try generator.buildTimestamp.format=yyyyMMdd-HHmm because the timestamp 1.0.0.201212311725 is a combination of date and time.
Re: qualifier.replacement does not work in the IDE? [message #997660 is a reply to message #997267] Sun, 06 January 2013 12:02 Go to previous messageGo to next message
Lorenzo Bettini is currently offline Lorenzo Bettini
Messages: 1307
Registered: July 2009
Senior Member
On 01/04/2013 09:23 PM, Alex Kravets wrote:
> Try generator.buildTimestamp.format=yyyyMMdd-HHmm because the timestamp
> 1.0.0.201212311725 is a combination of date and time.

this seems to work

qualifier.replacement.*=generator:buildTimestamp
generator.buildTimestamp.format='v'yyyyMMdd-HHmm

--
Lorenzo Bettini, PhD in Computer Science, DI, Univ. Torino
ICQ# lbetto, 16080134 (GNU/Linux User # 158233)
HOME: http://www.lorenzobettini.it MUSIC: http://www.purplesucker.com
http://www.myspace.com/supertrouperabba
BLOGS: http://tronprog.blogspot.com http://longlivemusic.blogspot.com
http://www.gnu.org/software/src-highlite
http://www.gnu.org/software/gengetopt
http://www.gnu.org/software/gengen http://doublecpp.sourceforge.net
Re: qualifier.replacement does not work in the IDE? [message #997661 is a reply to message #995972] Mon, 07 January 2013 07:30 Go to previous messageGo to next message
Thomas Hallgren is currently offline Thomas Hallgren
Messages: 3214
Registered: July 2009
Senior Member
Hi Lorenzo,

Sorry for late reply. I don't understand what could cause this error.
You're not doing anything out of the ordinary and the qualifier is
valid. Would it be possible for you to provide a sample that reproduces
the problem that I could look at?

A full stacktrace might be helpful if that's possible to obtain.

- thomas

On 2012-12-31 18:26, Lorenzo Bettini wrote:
> Hi
>
> when I run buckminster headless qualifier replacement takes place
> automatically with something like
>
> 1.0.0.201212301738
>
> in the IDE I use a properties file which contains
>
> qualifier.replacement.*=generator:buildTimestamp
> generator.buildTimestamp.format=yyyyMMddHHmm
>
> but when I run site.p2 action in the IDE I get an error
>
> org.eclipse.core.runtime.CoreException:
> <myeclipsedir>/configuration/org.eclipse.osgi/bundles/557/1/.cp/org/eclipse/buckminster/pde/antscripts/build.xml:300:
> java.lang.IllegalArgumentException: Format
> "format(n[.n=0;[.n=0;[.S=[A-Za-z0-9_-];='';]]])" was unable to parse
> 1.0.0.201212311725
>
> am I doing something wrong?
>


> cheers
> Lorenzo
>
Re: qualifier.replacement does not work in the IDE? [message #997663 is a reply to message #997661] Tue, 08 January 2013 07:09 Go to previous message
Lorenzo Bettini is currently offline Lorenzo Bettini
Messages: 1307
Registered: July 2009
Senior Member
Hi Thomas

probably something was somehow spoiled in my workspace when I tried
that, since now

qualifier.replacement.*=generator:buildTimestamp
generator.buildTimestamp.format=yyyyMMddHHmm

works as expected

sorry for the noise :)
cheers
Lorenzo

On 01/07/2013 01:30 PM, Thomas Hallgren wrote:
> Hi Lorenzo,
>
> Sorry for late reply. I don't understand what could cause this error.
> You're not doing anything out of the ordinary and the qualifier is
> valid. Would it be possible for you to provide a sample that reproduces
> the problem that I could look at?
>
> A full stacktrace might be helpful if that's possible to obtain.
>
> - thomas
>
> On 2012-12-31 18:26, Lorenzo Bettini wrote:
>> Hi
>>
>> when I run buckminster headless qualifier replacement takes place
>> automatically with something like
>>
>> 1.0.0.201212301738
>>
>> in the IDE I use a properties file which contains
>>
>> qualifier.replacement.*=generator:buildTimestamp
>> generator.buildTimestamp.format=yyyyMMddHHmm
>>
>> but when I run site.p2 action in the IDE I get an error
>>
>> org.eclipse.core.runtime.CoreException:
>> <myeclipsedir>/configuration/org.eclipse.osgi/bundles/557/1/.cp/org/eclipse/buckminster/pde/antscripts/build.xml:300:
>>
>> java.lang.IllegalArgumentException: Format
>> "format(n[.n=0;[.n=0;[.S=[A-Za-z0-9_-];='';]]])" was unable to parse
>> 1.0.0.201212311725
>>
>> am I doing something wrong?
>>
>
>
>> cheers
>> Lorenzo
>>
>


--
Lorenzo Bettini, PhD in Computer Science, DI, Univ. Torino
ICQ# lbetto, 16080134 (GNU/Linux User # 158233)
HOME: http://www.lorenzobettini.it MUSIC: http://www.purplesucker.com
http://www.myspace.com/supertrouperabba
BLOGS: http://tronprog.blogspot.com http://longlivemusic.blogspot.com
http://www.gnu.org/software/src-highlite
http://www.gnu.org/software/gengetopt
http://www.gnu.org/software/gengen http://doublecpp.sourceforge.net
Previous Topic:swt error - has anybody seen that?
Next Topic:Site.p2-generated product includes launcher source bundle
Goto Forum:
  


Current Time: Tue Jul 29 14:58:25 EDT 2014

Powered by FUDForum. Page generated in 0.01754 seconds