Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Buckminster » buckminster.properties not obeyed ? difference between headless and eclipse based build
buckminster.properties not obeyed ? difference between headless and eclipse based build [message #543679] Wed, 30 June 2010 05:33 Go to next message
Bernhard Merkle is currently offline Bernhard Merkle
Messages: 88
Registered: July 2009
Member
Hi

I am really puzzeled as i have a difference between headless buckminster and eclipse based buckminster.

Both headless bm an eclipse bm point to the SAME workspace and hence the SAME buckminster.properties file.

I have verified this via:
- make a change in eclipse in the buckminster.properties file. --> I can see this immediately in hudson in the workspace explorer.
- change the name of buckminster.properties to buckminster.properties.save --> the hudson build fails because of the missing file.

Now as you can see in the output below there are diffs between headless and eclipse based buckminster:
- the source plugin is build, depite the fact that i have set cbi.include.source = false
- the jar file is NOT signed depite the fact that I have set the relevant settings in the buckminster.properties.

how can I track this problem ?
does the headless bm cache config settings somewhere ? or do i have to handle them specially ?

thanks,
Bernhard.

---buckminster.properties----------------------------------- ----
# How .qualifier in versions should be replaced
qualifier.replacement.*=generator:lastRevision

# Where all the output , temp file should go
buckminster.output.root=${user.home}/p2site
buckminster.temp.root=${user.home}/tmp/p2site.tmp

# Deliver signed JAR files
local.keystore.path = W:/keystore/mykeystore
local.keystore.alias = eclipse_sick
local.keystore.password = secret
site.signing = true
signing.type = local

# Deliver no source files
cbi.include.source = false


---output of buckminster in eclipse---------------------------------------
[start de.sick.sopas.generator.srt:osgi.bundle$2.29.858#eclipse.bui ld]
[end de.sick.sopas.generator.srt:osgi.bundle$2.29.858#eclipse.bui ld]
[start de.sick.sopas.generator.srt:osgi.bundle$2.29.858#bundle.jar]
[end de.sick.sopas.generator.srt:osgi.bundle$2.29.858#bundle.jar]
[start de.sick.sopas.generator.srt.feature:eclipse.feature$1.0.0.qu alifier#copy.plugins]
[end de.sick.sopas.generator.srt.feature:eclipse.feature$1.0.0.qu alifier#copy.plugins]
[start de.sick.sopas.generator.srt.feature:eclipse.feature$1.0.0.qu alifier#site.signed]
[ant] Enter Passphrase for keystore:
[end de.sick.sopas.generator.srt.feature:eclipse.feature$1.0.0.qu alifier#site.signed]
[start de.sick.sopas.generator.srt.feature:eclipse.feature$1.0.0.qu alifier#manifest]
[end de.sick.sopas.generator.srt.feature:eclipse.feature$1.0.0.qu alifier#manifest]
[start de.sick.sopas.generator.srt.feature:eclipse.feature$1.0.0.qu alifier#site.p2]
[end de.sick.sopas.generator.srt.feature:eclipse.feature$1.0.0.qu alifier#site.p2]


---output of headless buckminster in hudson---------------------------------------
INFO: perform '-D' 'target.os=*' '-D' 'target.ws=*' '-D' 'target.arch=*' '-D' 'qualifier.replacement.*=I20100630-5' 'de.sick.sopas.generator.srt.feature#site.p2'
INFO: [start de.sick.sopas.generator.srt:osgi.bundle$2.29.858#eclipse.bui ld]
INFO: [end de.sick.sopas.generator.srt:osgi.bundle$2.29.858#eclipse.bui ld]
INFO: [start de.sick.sopas.generator.srt:osgi.bundle$2.29.858#source.bund le.jar]
INFO: [end de.sick.sopas.generator.srt:osgi.bundle$2.29.858#source.bund le.jar]
INFO: [start de.sick.sopas.generator.srt.feature:eclipse.feature$1.0.0.qu alifier#copy.plugins]
INFO: [end de.sick.sopas.generator.srt.feature:eclipse.feature$1.0.0.qu alifier#copy.plugins]
INFO: [start de.sick.sopas.generator.srt.feature:eclipse.feature$1.0.0.qu alifier#site.p2]
INFO: [end de.sick.sopas.generator.srt.feature:eclipse.feature$1.0.0.qu alifier#site.p2]
Finished: SUCCESS ---output of hudson---------------------------------------
Re: buckminster.properties not obeyed ? differenc e between headless and eclipse based build [message #543699 is a reply to message #543679] Wed, 30 June 2010 06:47 Go to previous messageGo to next message
Henrik Lindberg is currently offline Henrik Lindberg
Messages: 2492
Registered: July 2009
Senior Member
The features you are using are fairly recent. Could it be that you are
executing an older version of BM?
- Henrik
Bernhard Merkle <bernhard.merkle@gmail.com> wrote:
> Hi
> I am really puzzeled as i have a difference between headless
> buckminster and eclipse based buckminster.
>
> Both headless bm an eclipse bm point to the SAME workspace and hence
> the SAME buckminster.properties file.
>
> I have verified this via:
> - make a change in eclipse in the buckminster.properties file. --> I
> can see this immediately in hudson in the workspace explorer.
> - change the name of buckminster.properties to
> buckminster.properties.save --> the hudson build fails because of the
> missing file.
>
> Now as you can see in the output below there are diffs between
> headless and eclipse based buckminster:
> - the source plugin is build, depite the fact that i have set
> cbi.include.source = false
> - the jar file is NOT signed depite the fact that I have set the
> relevant settings in the buckminster.properties.
>
> how can I track this problem ?
> does the headless bm cache config settings somewhere ? or do i have to
> handle them specially ?
>
> thanks,
> Bernhard.
>
> ---buckminster.properties----------------------------------- ----
> # How .qualifier in versions should be replaced
> qualifier.replacement.*=generator:lastRevision
>
> # Where all the output , temp file should go
> buckminster.output.root=${user.home}/p2site
> buckminster.temp.root=${user.home}/tmp/p2site.tmp
>
> # Deliver signed JAR files
> local.keystore.path = W:/keystore/mykeystore
> local.keystore.alias = eclipse_sick
> local.keystore.password = secret
> site.signing = true
> signing.type = local
>
> # Deliver no source files
> cbi.include.source = false
>
>
> ---output of buckminster in
> eclipse---------------------------------------
> [start de.sick.sopas.generator.srt:osgi.bundle$2.29.858#eclipse.bui
> ld]
> [end de.sick.sopas.generator.srt:osgi.bundle$2.29.858#eclipse.bui ld]
> [start de.sick.sopas.generator.srt:osgi.bundle$2.29.858#bundle.jar]
> [end de.sick.sopas.generator.srt:osgi.bundle$2.29.858#bundle.jar]
> [start de.sick.sopas.generator.srt.feature:eclipse.feature$1.0.0.qu
> alifier#copy.plugins]
> [end de.sick.sopas.generator.srt.feature:eclipse.feature$1.0.0.qu
> alifier#copy.plugins]
> [start de.sick.sopas.generator.srt.feature:eclipse.feature$1.0.0.qu
> alifier#site.signed]
> [ant] Enter Passphrase for keystore: [end
> de.sick.sopas.generator.srt.feature:eclipse.feature$1.0.0.qu
> alifier#site.signed]
> [start de.sick.sopas.generator.srt.feature:eclipse.feature$1.0.0.qu
> alifier#manifest]
> [end de.sick.sopas.generator.srt.feature:eclipse.feature$1.0.0.qu
> alifier#manifest]
> [start de.sick.sopas.generator.srt.feature:eclipse.feature$1.0.0.qu
> alifier#site.p2]
> [end de.sick.sopas.generator.srt.feature:eclipse.feature$1.0.0.qu
> alifier#site.p2]
>
>
> ---output of headless buckminster in
> hudson---------------------------------------
> INFO: perform '-D' 'target.os=*' '-D' 'target.ws=*' '-D'
> 'target.arch=*' '-D' 'qualifier.replacement.*=I20100630-5'
> 'de.sick.sopas.generator.srt.feature#site.p2' INFO: [start
> de.sick.sopas.generator.srt:osgi.bundle$2.29.858#eclipse.bui ld] INFO:
> [end de.sick.sopas.generator.srt:osgi.bundle$2.29.858#eclipse.bui ld]
> INFO: [start
> de.sick.sopas.generator.srt:osgi.bundle$2.29.858#source.bund le.jar]
> INFO: [end
> de.sick.sopas.generator.srt:osgi.bundle$2.29.858#source.bund le.jar]
> INFO: [start
> de.sick.sopas.generator.srt.feature:eclipse.feature$1.0.0.qu
> alifier#copy.plugins]
> INFO: [end
> de.sick.sopas.generator.srt.feature:eclipse.feature$1.0.0.qu
> alifier#copy.plugins] INFO: [start
> de.sick.sopas.generator.srt.feature:eclipse.feature$1.0.0.qu
> alifier#site.p2]
> INFO: [end
> de.sick.sopas.generator.srt.feature:eclipse.feature$1.0.0.qu
> alifier#site.p2]
> Finished: SUCCESS ---output of
> hudson---------------------------------------


--
- henrik
Re: buckminster.properties not obeyed ? differenc e between headless and eclipse based build [message #543711 is a reply to message #543699] Wed, 30 June 2010 07:35 Go to previous messageGo to next message
Bernhard Merkle is currently offline Bernhard Merkle
Messages: 88
Registered: July 2009
Member
Henrik Lindberg wrote on Wed, 30 June 2010 06:47
The features you are using are fairly recent. Could it be that you are
executing an older version of BM?
- henrik


how can I query the version ?
I have made a dir listing of my headless installation please see below.

I also added a -F and -P switch to the relevant commands and now it triggers the operation.
The signing fails actually but that may be a path related issue of jarsigner.exe)
and I do not produce the source plugin so it picks up the properties setting.

however it is very irritating that WITHOUT -F and -P it still works but with other behaviour.
And without the properties file it does not work at all (which proved that the properties are read but not used if i do not specify -F and -P) . Is this a bug ?

thanks,
Berni.


importpreferences -F '${WORKSPACE}/de.sick.sopas.generator.srt.buckminster/buckmi nster.properties'
build
perform -D target.os=* -D target.ws=* -D target.arch=* -D qualifier.replacement.*=${version} -P '${WORKSPACE}/de.sick.sopas.generator.srt.buckminster/buckmi nster.properties' de.sick.sopas.generator.srt.feature#site.p2



Verzeichnis von C:\ide\ibm\buckminster-headless-3.6\plugins

07.06.2010 09:39 <DIR> org.eclipse.buckminster.ant_1.2.360.r11210
21.05.2010 00:14 50.662 org.eclipse.buckminster.cmdline_1.0.350.r11425.jar
21.05.2010 00:17 1.045.442 org.eclipse.buckminster.core_1.2.360.r11436.jar
21.05.2010 00:17 48.407 org.eclipse.buckminster.cvs_1.1.0.r11436.jar
21.05.2010 00:16 47.643 org.eclipse.buckminster.download_1.1.0.r11379.jar
21.05.2010 00:16 15.432 org.eclipse.buckminster.executor_1.0.0.r11341.jar
21.05.2010 00:16 19.017 org.eclipse.buckminster.fetcher_1.0.0.r11210.jar
21.05.2010 00:17 30.006 org.eclipse.buckminster.generic_1.0.0.r11210.jar
21.05.2010 00:14 18.989 org.eclipse.buckminster.installer_1.1.0.r11336.jar
21.05.2010 00:18 35.745 org.eclipse.buckminster.jarprocessor_1.0.0.r11295.jar
07.06.2010 09:39 <DIR> org.eclipse.buckminster.jdt_1.0.0.r11394
21.05.2010 00:18 19.807 org.eclipse.buckminster.junit_1.0.0.r11240.jar
21.05.2010 00:18 55.833 org.eclipse.buckminster.maven_1.2.0.r11234.jar
21.05.2010 00:22 71.430 org.eclipse.buckminster.model.common.edit_1.1.0.r11210.jar
21.05.2010 00:22 108.252 org.eclipse.buckminster.model.common_1.1.0.r11210.jar
21.05.2010 00:17 33.448 org.eclipse.buckminster.osgi.filter_1.0.0.r11266.jar
07.06.2010 09:39 <DIR> org.eclipse.buckminster.pde_1.2.0.r11438
21.05.2010 00:22 56.819 org.eclipse.buckminster.rmap.edit_1.1.0.r11210.jar
21.05.2010 00:22 16.449 org.eclipse.buckminster.rmap.psf.edit_1.0.0.r11210.jar
21.05.2010 00:22 32.803 org.eclipse.buckminster.rmap.psf_1.1.0.r11210.jar
21.05.2010 00:22 65.786 org.eclipse.buckminster.rmap_1.1.0.r11210.jar
21.05.2010 00:14 39.909 org.eclipse.buckminster.runtime_1.2.0.r11375.jar
21.05.2010 00:17 27.344 org.eclipse.buckminster.sax_1.0.0.r11210.jar
21.05.2010 00:22 35.520 org.eclipse.buckminster.subversion_1.0.0.r10759.jar
21.05.2010 00:22 21.105 org.eclipse.buckminster.subversive_1.0.0.r10908.jar
21.05.2010 00:22 40.077 org.eclipse.buckminster.team.psf_1.0.0.jar
21.05.2010 00:17 24.392 org.eclipse.buckminster.team_1.0.0.r11424.jar
Re: buckminster.properties not obeyed ? differenc e between headless and eclipse based build [message #543951 is a reply to message #543711] Thu, 01 July 2010 03:43 Go to previous message
Thomas Hallgren is currently offline Thomas Hallgren
Messages: 3208
Registered: July 2009
Senior Member
On 06/30/2010 01:35 PM, Bernhard Merkle wrote:
> Henrik Lindberg wrote on Wed, 30 June 2010 06:47
>> The features you are using are fairly recent. Could it be that you are
>> executing an older version of BM? - henrik
>
>
> how can I query the version ?
> I have made a dir listing of my headless installation please see below.
>
> I also added a -F and -P switch to the relevant commands and now it
> triggers the operation.
> The signing fails actually but that may be a path related issue of
> jarsigner.exe)
> and I do not produce the source plugin so it picks up the properties
> setting.
>
> however it is very irritating that WITHOUT -F and -P it still works but
> with other behaviour.
> And without the properties file it does not work at all (which proved
> that the properties are read but not used if i do not specify -F and -P)
> . Is this a bug ?
>
I don't understand this fully. Are you saying that the old buckminster
magically guesses what property file to use?

Without the -F the importpreferences assumes stdin. It's always been
that way. AFAIK, buckminster never reads (and never has read) a property
file unless you specify -P <file>

- thomas
Previous Topic:qualifier replacement across projects
Next Topic:psf import with different readtype?
Goto Forum:
  


Current Time: Mon Apr 21 11:41:46 EDT 2014

Powered by FUDForum. Page generated in 0.01821 seconds