473,466 Members | 1,503 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Bugs in configuration files?

281 Contributor
Good day! I wanna count lines of code of a game program that's completely written in java, and there are two configuration files (XML) in it too. Actually I wanna check defect density of this program. Questions:
1. What are the config files for? I don't really know much about config files in a program. Please brief a general intro of it to me.
2. Any possibilities of config bugs?
3. Do I have to count lines of code of this config files too?

Thanks a bunch
Feb 3 '09 #1
5 1438
Nepomuk
3,112 Recognized Expert Specialist
Well, what is in the config files can vary a lot. You can have anything from a single boolean value to great parts of the program in them, so you'd better count them too.

Also, to tell what exactly those config files do, we'd have to see them. But yes, they could contain bugs.

So, if you want to understand what the XML files do exactly, you'll have to look at and understand the Java code. We can try to help you of course, but don't just post great chunks of code, ok?

Greetings,
Nepomuk
Feb 3 '09 #2
shana07
281 Contributor
Ok. Could you please take a look at this code, just 5% of one of the configuration files, from a game program - freecol. What is the code for?

Expand|Select|Wrap|Line Numbers
  1. BODY{font:x-small 'Verdana';margin-right:1.5em} .c{cursor:hand} .b{color:red;font-family:'Courier New';font-weight:bold;text-decoration:none} .e{margin-left:1em;text-indent:-1em;margin-right:1em} .k{margin-left:1em;text-indent:-1em;margin-right:1em} .t{color:#990000} .xt{color:#990099} .ns{color:red} .dt{color:green} .m{color:blue} .tx{font-weight:bold} .db{text-indent:0px;margin-left:1em;margin-top:0px;margin-bottom:0px;padding-left:.3em;border-left:1px solid #CCCCCC;font:small Courier} .di{font:small Courier} .d{color:blue} .pi{color:blue} .cb{text-indent:0px;margin-left:1em;margin-top:0px;margin-bottom:0px;padding-left:.3em;font:small Courier;color:#888888} .ci{font:small Courier;color:#888888} PRE{margin:0px;display:inline} <?xml version="1.0" encoding="UTF-8"  standalone="no" ?> 
  2.   - <profiles version="8">
  3.    - <profile name="FreeCol"  version="8">
  4.      <setting id="org.eclipse.jdt.core.formatter.align_type_members_on_columns" value="false" />  
  5.  
  6.     <setting id="org.eclipse.jdt.core.formatter.alignment_for_arguments_in_allocation_expression" value="16" /> 
  7.  
  8.     <setting id="org.eclipse.jdt.core.formatter.alignment_for_arguments_in_enum_constant" value="16" /> 
  9.  
  10.     <setting id="org.eclipse.jdt.core.formatter.alignment_for_arguments_in_explicit_constructor_call" value="16" /> 
  11.  
  12.     <setting id="org.eclipse.jdt.core.formatter.alignment_for_arguments_in_method_invocation" value="16" /> 
  13.  
  14.     <setting id="org.eclipse.jdt.core.formatter.alignment_for_arguments_in_qualified_allocation_expression" value="16" /> 
  15.  
  16.     <setting id="org.eclipse.jdt.core.formatter.alignment_for_binary_expression" value="16" /> 
  17.  
  18.  
  19.  
  20.  
  21.  
  22.  
Feb 3 '09 #3
JosAH
11,448 Recognized Expert MVP
You have to read (and understand) the Java source code to understand all that xml crap; posting it here can't help you; although some of us are psychic and have crystal balls there are limits.

kind regards,

Jos
Feb 3 '09 #4
Nepomuk
3,112 Recognized Expert Specialist
All I can really tell from that code snippet is, that It was probably written with Eclipse and it certainly uses some of the Eclipse libraries. Apart from that, you'll just have to do as Jos sais - read and understand the code. Of course, it might be enough to limit your reading to the part where this XML file is read (and luckily searching through code is possible with most IDEs, even if there are several code files), but it might not.

An alternative would be to just ask the developers. They might be so friendly as to explain it to you.

Greetings,
Nepomuk
Feb 3 '09 #5
shana07
281 Contributor
Noted with many thanks....
Feb 3 '09 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: TT (Tom Tempelaere) | last post by:
Hey everyone, I'm currently writing software for a project that uses a lot of Xml files for configuration. The project is written in C#/.NET. Each such xml file has a schema defined for it (Xsd...
5
by: NoNickname | last post by:
Basically, how do I know that the release versions of all components are being published? The Build | Configuration Manager is confusing me a little in VS2005. I have three projects in my...
0
by: metaperl | last post by:
A Comparison of Python Class Objects and Init Files for Program Configuration ============================================================================= Terrence Brannon bauhaus@metaperl.com...
9
by: KarlM | last post by:
After reading some articles regarding confuguration data I'm a bit confused. Where is the right place for storing configuration data? - XML-files? - registry? - INI-files? (from a users point...
22
by: lovecreatesbea... | last post by:
Hello experts, The following is_prime function doesn't call a library function and it works. Does it have bugs like "integer overflow": int factor; factor * factor, or it's not single...
7
by: Peter Bradley | last post by:
OK. A bit behind the times, I know; but we're just moving over to .NET 2.0. How on earth do you manage configuration settings in a class library in .NET 2.0? In version 1.1, we used a handy class...
4
by: aSoundMind | last post by:
Hi there, I recieve this error Server Error in '/integrate' Application. -------------------------------------------------------------------------------- Configuration Error Description: An...
7
by: John Nagle | last post by:
Back in March, I posted this: That was for M2Crypto 0.17. It's still broken in M2Crypto 0.18. And there's no RPM or Windows binary. Nobody actually uses this stuff, do they?
1
by: =?Utf-8?B?Sm9yZGFuIFou?= | last post by:
We did a same code base test between 1.1 and 3.5. In 1.1, when your .NET application reference a library with web reference (dynamic), you can always easily overwrite the default URL by...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.