Issue 89282 - Properties file included two times in .oxt
Summary: Properties file included two times in .oxt
Status: ACCEPTED
Alias: None
Product: App Dev
Classification: Unclassified
Component: sdk (show other issues)
Version: 3.3.0 or older (OOo)
Hardware: All All
: P3 Trivial
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact: b.osi.ooo
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-05-10 16:38 UTC by rvojta
Modified: 2013-02-24 20:55 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description rvojta 2008-05-10 16:38:10 UTC
Add .properties file to your NetBeans project (Project), for example -
name/vojta/Config.properties. When you create OXT, this file is included two
times in extension:

 [OXT]/name/vojta/Config.properties
 [OXT]/Project.jar/name/vojta/Config.properties

The first one is not used and shouldn't be added to the extension.
Comment 1 steffen.grund 2008-05-27 10:56:27 UTC
accepted.
Comment 2 steffen.grund 2008-05-27 10:57:43 UTC
set target
Comment 3 steffen.grund 2008-05-27 11:10:13 UTC
This makes me think about what in a NB project for OOo should go where: either
the .oxt package, or the .jar file. This is determined by the extension.
Properties files can go both, theoretically.
Comment 4 rvojta 2008-05-27 15:48:59 UTC
Yes, you're right, it can be in both places. But from my point of view, it's
better to leave it in .jar only. Why? When you put this file in .oxt, you have
to load properties file (in this case) in more complicated way. And of course,
when you leave it in .jar, you can move your .jar elsewhere and use it directly
without searching, which files are necessary to use it too. All this is about
specific case - properties files.

For now, I would like to see .properties files in .jar only. For the future,
there should be some way how to tell, which files should be in .jar, which in
.oxt and where exactly.
Comment 5 steffen.grund 2008-05-27 17:34:30 UTC
Suggestion for a hotfix: in nbproject/project-uno.properties is a list of all
file extensions that should be packed in the .oxt file. Remove the
**/*.properties entry and properties files will not be copied into the .oxt file.
I will do this in the project template; but may need some handling for uno awt
dialog handling: dialog localization files are .properties files, too.