Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Buckminster » Buckminster "Invalid pattern exp" but no patterns in my project
Buckminster "Invalid pattern exp" but no patterns in my project [message #816150] Thu, 08 March 2012 13:43 Go to next message
fran cisco is currently offline fran ciscoFriend
Messages: 3
Registered: March 2012
Junior Member
Hello,

This may be silly mistake which I'm not able to see but I'm stuck on it.

When I build my site.p2 with buckminster it builds all the plugins and features but when it tries to build the root feature i get this error:

"/buckminster/pde/antscripts/build.xml:300: java.lang.IllegalArgumentException: Illegal pattern character 'T': java.lang.IllegalArgumentException: Illegal pattern character 'T'"

I don have any pattern in my projects nor in the feature. The only pattern is the

qualifier.replace.* in buckminster.properties but I've seen this in all samples.

Also the plugins qualifier is not being replaced, both issues may be related.

My properties files:
# Where all the output should go
buckminster.output.root=${user.home}/tmp/Icaria
# Where the temp files should go
buckminster.temp.root=${user.home}/tmp/buildtmp
# How .qualifier in versions should be replaced
qualifier.replacement.*=generator:buildTimestamp

target.os=*
target.ws=*
target.arch=*

after reinstalling buckminster 3.7 qualifiers are being replaced by "elipse-feature" or "osgi-bundle" (same properties file)

Eclipse version Version: 3.7.1

[Updated on: Thu, 08 March 2012 13:44]

Report message to a moderator

Re: Buckminster "Invalid pattern exp" but no patterns in my project [message #816154 is a reply to message #816150] Thu, 08 March 2012 13:48 Go to previous messageGo to next message
Dennis Huebner is currently offline Dennis HuebnerFriend
Messages: 221
Registered: July 2009
Senior Member

Hi francisco,
can you post a link to or attach the full log?


Re: Buckminster "Invalid pattern [message #816158 is a reply to message #816150] Thu, 08 March 2012 13:49 Go to previous messageGo to next message
Thomas Hallgren is currently offline Thomas HallgrenFriend
Messages: 3231
Registered: July 2009
Senior Member
Try running your build with DEBUG output and check to see if you get a stacktrace. Using --displaystacktrace may be
helpful if you run headless.

- thomas

On 03/08/2012 02:43 PM, fran cisco wrote:
> Hello,
> This may be silly mistake which I'm not able to see but I'm stuck on it.
>
> When I build my site.p2 with buckminster it builds all the plugins and features but when it tries to build the root
> feature i get this error:
>
> "/buckminster/pde/antscripts/build.xml:300: java.lang.IllegalArgumentException: Illegal pattern character 'T':
> java.lang.IllegalArgumentException: Illegal pattern character 'T'"
>
> I don have any pattern in my projects nor in the feature. The only pattern is the
> qualifier.replace.* in buckminster.properties but I've seen this in all samples.
>
> Also the plugins qualifier is not being replaced, both issues may be related.
> My properties files:
> # Where all the output should go
> buckminster.output.root=${user.home}/tmp/Icaria
> # Where the temp files should go
> buckminster.temp.root=${user.home}/tmp/buildtmp
> # How .qualifier in versions should be replaced
> qualifier.replacement.*=generator:buildTimestamp
>
> target.os=*
> target.ws=*
> target.arch=*
>
> after reinstalling buckminster 3.7 qualifiers are being replaced by "elipse-feature" or "osgi-bundle" (same properties
> file)
>
> Eclipse version Version: 3.7.1
>
Re: Buckminster "Invalid pattern [message #816818 is a reply to message #816158] Fri, 09 March 2012 09:47 Go to previous messageGo to next message
fran cisco is currently offline fran ciscoFriend
Messages: 3
Registered: March 2012
Junior Member
sorry I had the stacktrace ready but forgot to post it


  • Attachment: .log
    (Size: 8.18KB, Downloaded 68 times)

[Updated on: Fri, 09 March 2012 09:49]

Report message to a moderator

Re: Buckminster "Invalid pattern [message #816878 is a reply to message #816818] Fri, 09 March 2012 11:23 Go to previous messageGo to next message
Thomas Hallgren is currently offline Thomas HallgrenFriend
Messages: 3231
Registered: July 2009
Senior Member
Buckminster picks up a property setting using the key:

generator.buildTimestamp.format

The value for that property is then used as a format parameter to the java.text.SimpleDateFormat class. Apparently the
value contains an invalid pattern character. The default value for this property is

'v'yyyyMMddHHmm

and as far as I can see, Buckminster never overrides this default by itself. Do you find a setting for this property
somewhere in your build?

- thomas


On 03/09/2012 10:47 AM, fran cisco wrote:
> Caused by: java.lang.IllegalArgumentException: Illegal pattern character 'T'
> at java.text.SimpleDateFormat.compile(SimpleDateFormat.java:769)
> at java.text.SimpleDateFormat.initialize(SimpleDateFormat.java:576)
> at java.text.SimpleDateFormat.<init>(SimpleDateFormat.java:501)
> at java.text.SimpleDateFormat.<init>(SimpleDateFormat.java:476)
> at org.eclipse.buckminster.core.version.BuildTimestampQualifierGenerator.generateQualifier(BuildTimestampQualifierGenerator.java:76)
> at org.eclipse.buckminster.ant.tasks.VersionQualifierTask.replaceQualifier(VersionQualifierTask.java:118)
> at org.eclipse.buckminster.pde.tasks.FeatureConsolidator.consolidateFeatureVersion(FeatureConsolidator.java:109)
> at org.eclipse.buckminster.pde.tasks.FeatureConsolidator.run(FeatureConsolidator.java:88)
> at org.eclipse.buckminster.pde.ant.FeatureConsolidatorTask.execute(FeatureConsolidatorTask.java:92)
Re: Buckminster &amp;quot;Invalid pattern [message #819072 is a reply to message #816878] Mon, 12 March 2012 13:04 Go to previous messageGo to next message
fran cisco is currently offline fran ciscoFriend
Messages: 3
Registered: March 2012
Junior Member
Just to be sure I did a search over all my projects and no matches were found. It's the first time I use buckminster so I don't think that is the problem.
Reinstalling doesn't work neither.

Re: Buckminster &amp;amp;quot;Invalid pattern [message #819785 is a reply to message #819072] Tue, 13 March 2012 10:21 Go to previous message
Thomas Hallgren is currently offline Thomas HallgrenFriend
Messages: 3231
Registered: July 2009
Senior Member
On 03/12/2012 02:04 PM, fran cisco wrote:
> Just to be sure I did a search over all my projects and no matches were found. It's the first time I use buckminster so
> I don't think that is the problem.
> Reinstalling doesn't work neither.
>
Very odd indeed. I've scanned through the whole Buckminster code base and I can't find any formats that would be invalid.

Would it be possible for you to zip up an example and attach it to a bug?

- thomas
Previous Topic:Good examples for using Buckminster?
Next Topic:mailapp product installation
Goto Forum:
  


Current Time: Wed Dec 17 23:09:43 GMT 2014

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

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