trustin / os-maven-plugin

A Maven plugin that sets various useful properties detected from ${os.name} and ${os.arch} properties.
Apache License 2.0
296 stars 66 forks source link

Could be nice to have a os.detected.arch.bitness variable #36

Closed jflecomte closed 4 years ago

jflecomte commented 6 years ago

I had a case where I needed to know the "bitness" of the OS (32 or 64 bits). I used ${os.detected.arch}, but I was not interested in the architecture part (x86, itanium, etc.), I only needed the bitness part. So it would be nice to have a ${os.detected.arch.bitness} variable containing only the bitness part of ${os.detected.arch}.

trustin commented 5 years ago

Sounds like a good idea. Let me try to find some spare time.

bmarwell commented 5 years ago

This would be a great feature. Is this still being worked on?

trustin commented 5 years ago

Couldn't find spare time for this. Pull request appreciated.

bmarwell commented 5 years ago

@trustin please review PR https://github.com/trustin/os-maven-plugin/pull/41

bmarwell commented 5 years ago

@trustin Please kindly see my pull request. :-)

bmarwell commented 4 years ago

@trustin I think I might write my own native lib loader. :-(

trustin commented 4 years ago

I'm really sorry I forgot about your pull request. Let me take a look this week. Is it still valid?

bmarwell commented 4 years ago

Yes, it is. But: I created a different type of build right now, so I might not actually use it.