cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Want the oppurtunity to discuss enhancements to PTC products? Join a working group! X

Properties...

BrianKrieger
7-Bedrock

Properties...

Hey, folks,



When you start up JLink, do y'all use any initialization files? If so,
where do you store those? Just in the users' home directory? Install
path? Other path? I'm trying to figure out the best way to read in an
initialization file, but keep it generic enough to not put in paths into
the code.



Thoughts?

Brian Krieger

Peterbilt Motors

3 REPLIES 3

Brian,
This might not answer your question directly, but could give you some
alternative ideas for initialization.
I have made a class called constants.java and made that available as a jar
library. It contains methods that returns offen used information in a
Pro/E environment like working dir, linked to Windchill status, test or
production environment, etc.
This jar just has to be in the classpath and can then be reused in any
J-Link application. If hardcode places changes I just have to change them
in this code and replace the jar library.
/Bjarne



Brian Krieger <->
27-01-2011 19:04
Please respond to
Brian Krieger <->


To
<->
cc

Subject
[proecus] - Properties...






Hey, folks,

When you start up JLink, do y’all use any initialization files? If so,
where do you store those? Just in the users’ home directory? Install
path? Other path? I’m trying to figure out the best way to read in an
initialization file, but keep it generic enough to not put in paths into
the code.

Thoughts?
Brian Krieger
Peterbilt Motors

Site Links: View post online View mailing list online Send new post
via email Unsubscribe from this mailing list Manage your subscription
Use of this email content is governed by the terms of service at:

Hi Brian,

I normally read Windows systemvariables with the path to the ini files, so I can set them in the startup script of Pro/E.

Michael Holzwarth
Deere & Company

Great suggestions, folks! What I was specifically looking for was first
in from Gary Hoffman (and Michael from Deere, too!):



For user specific preferences we read/write files in the user's home
directory and use System.getProperty("user.home").



Using a class to store all of those values, etc. is a good idea, too,
thanks all!



A simple solution to my problem (I'm still just learning). Thanks
y'all!



BK


Top Tags