NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

currentVersion, buildNumer and userDirectory

 
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Platform Users
View previous topic :: View next topic  
Author Message
markwade



Joined: 04 Dec 2010
Posts: 334

PostPosted: Sun Feb 12, 2017 1:43 am    Post subject: currentVersion, buildNumer and userDirectory Reply with quote

Hey,

I'm not understanding how bundle.properties and placeholder substitution
is working. I believe the parameter values are coded in the source
files. How then can these values be over-ridden?

Of interest to me is my application's bundle.properties contains
currentVersion = myappname {0} with {0} being replaced with
netbeans.buildnumber. How is {0} resolved to netbeans.buildnumber?

Of greater interest is my applications userDirectory resolves to
~/.myappname/dev/ whereas Netbeans 8.2 userDirectory resolves to
~/.netbeans/8.2/

Where does "dev" come from and how can I replace these values?

-- Mark
Back to top
markwade



Joined: 04 Dec 2010
Posts: 334

PostPosted: Mon Feb 13, 2017 5:10 pm    Post subject: currentVersion, buildNumer and userDirectory Reply with quote

Okay,

I see default_userdir="${HOME}/.${APPNAME}/dev" is being generated for
me when I have NetBeans package my application in etc/appname.conf and I
can make edits there which is fine.

If I'm understanding the placeholder value replacement I can't override
those replacement values unless I alter the source and recompile but I
can create my own and use them in my own bundles which I haven't done
yet and have no pressing need but I'll give it try.


On 02/11/2017 08:42 PM, Mark Wade wrote:
Quote:

Of greater interest is my applications userDirectory resolves to
~/.myappname/dev/ whereas Netbeans 8.2 userDirectory resolves to
~/.netbeans/8.2/

Where does "dev" come from and how can I replace these values?

-- Mark
Back to top
bruehlicke



Joined: 18 Sep 2009
Posts: 192
Location: Houston

PostPosted: Tue Feb 14, 2017 12:59 pm    Post subject: Reply with quote

I wrote something about this on my blog, Maybe this helps:

http://bruehlicke.blogspot.com/search/label/currentVersion
Back to top
markwade



Joined: 04 Dec 2010
Posts: 334

PostPosted: Wed Feb 15, 2017 1:16 pm    Post subject: currentVersion, buildNumer and userDirectory Reply with quote

Thank you Bernd, it does help. I haven't been able to get your example
to work however. I tried a few things and echoed some output but I'm
not getting any entries added to my Bundle.properties.


Would it be appropriate to post a question/comment regarding this on
your blog?


On 02/14/2017 07:59 AM, bruehlicke wrote:
Quote:
I wrote something about this on my blog, Maybe this helps:

http://bruehlicke.blogspot.com/search/label/currentVersion




Back to top
bruehlicke



Joined: 18 Sep 2009
Posts: 192
Location: Houston

PostPosted: Wed Feb 15, 2017 2:26 pm    Post subject: Reply with quote

Have you checked out the NetBeansDeveloper FAQ on Branding ? http://wiki.netbeans.org/NetBeansDeveloperFAQ#Branding_your_application in particular http://wiki.netbeans.org/DevFaqVersionNumber

?
Back to top
markwade



Joined: 04 Dec 2010
Posts: 334

PostPosted: Wed Feb 15, 2017 2:40 pm    Post subject: currentVersion, buildNumer and userDirectory Reply with quote

I have, I'll look at them again. And it would not be appropriate to post
about this on your blog. It looks like the target is not being called
so I have to look into it and it isn't appropriate to discuss here or on
your blog either but thanks, I'll figure it out.


On 02/15/2017 09:26 AM, bruehlicke wrote:
Quote:
Have you checked out the NetBeansDeveloper FAQ on Branding ? http://wiki.netbeans.org/NetBeansDeveloperFAQ#Branding_your_application in particular http://wiki.netbeans.org/DevFaqVersionNumber

?




Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Platform Users All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo