NetBeans Forums

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

[platform-dev] Create file within NB platform application directory

 
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Platform Users
View previous topic :: View next topic  
Author Message
nwb159
Posted via mailing list.





PostPosted: Thu Apr 19, 2012 3:36 pm    Post subject: [platform-dev] Create file within NB platform application directory Reply with quote

So I want to create a new file at a certain path within the binaries of
my application.

In my source tree I am using the release directory to copy some files to
the build directory.

SuiteProject/release/conf/<various files here>

What I want to do is check if a particular file exists in that subpath
of the *build* directory, and if not create it.

And as a bonus question, what is the best way to locate files within the
<build>/release/conf directory? I have been using
InstalledFileLocator.getDefault().locate("conf/somefile.txt", null,
false) but this feels a little dirty...

Many thanks

Nick
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 can 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