[Tynstep-svn] r58 - in trunk/step-web-app: . eclipse src/main/java/com/tyndalehouse/step/web/server src/main/java/com/tyndalehouse/step/web/server/common src/main/resources src/main/resources/com src/main/resources/com/tyndalehouse src/main/resources/com/tyndalehouse/step src/main/resources/com/tyndalehouse/step/web src/main/resources/com/tyndalehouse/step/web/server src/main/resources/com/tyndalehouse/step/web/server/config
ChrisBurrell at crosswire.org
ChrisBurrell at crosswire.org
Fri Dec 18 01:52:18 MST 2009
Author: ChrisBurrell
Date: 2009-12-18 01:52:18 -0700 (Fri, 18 Dec 2009)
New Revision: 58
Added:
trunk/step-web-app/eclipse/
trunk/step-web-app/eclipse/JSwordChecks.xml
trunk/step-web-app/eclipse/JSwordStyleCleanup.xml
trunk/step-web-app/eclipse/JSwordStyleFormatting.xml
trunk/step-web-app/src/main/java/com/tyndalehouse/step/web/server/common/
trunk/step-web-app/src/main/java/com/tyndalehouse/step/web/server/common/ConfigNotLoadedException.java
trunk/step-web-app/src/main/java/com/tyndalehouse/step/web/server/common/ConfigProvider.java
trunk/step-web-app/src/main/resources/com/
trunk/step-web-app/src/main/resources/com/tyndalehouse/
trunk/step-web-app/src/main/resources/com/tyndalehouse/step/
trunk/step-web-app/src/main/resources/com/tyndalehouse/step/web/
trunk/step-web-app/src/main/resources/com/tyndalehouse/step/web/server/
trunk/step-web-app/src/main/resources/com/tyndalehouse/step/web/server/config/
trunk/step-web-app/src/main/resources/com/tyndalehouse/step/web/server/config/environment.properties
Log:
update for integration server
Added: trunk/step-web-app/eclipse/JSwordChecks.xml
===================================================================
--- trunk/step-web-app/eclipse/JSwordChecks.xml (rev 0)
+++ trunk/step-web-app/eclipse/JSwordChecks.xml 2009-12-18 08:52:18 UTC (rev 58)
@@ -0,0 +1,395 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE module PUBLIC "-//Puppy Crawl//DTD Check Configuration 1.2//EN" "http://www.puppycrawl.com/dtds/configuration_1_2.dtd">
+
+<module name="Checker">
+<property name="severity" value="warning"/>
+<module name="TreeWalker">
+<property name="tabWidth" value="4"/>
+<module name="FileContentsHolder">
+<property name="severity" value="error"/>
+</module>
+<module name="ArrayTypeStyle">
+<property name="severity" value="error"/>
+</module>
+<module name="GenericIllegalRegexp">
+<property name="severity" value="error"/>
+<property name="format" value="((public)|(protected))\s+void\s+finalize\(\s*\)"/>
+</module>
+<module name="ModifierOrder">
+<property name="severity" value="error"/>
+</module>
+<module name="TodoComment">
+<property name="severity" value="error"/>
+</module>
+<module name="UncommentedMain">
+<property name="severity" value="error"/>
+<property name="excludedClasses" value="Desktop|APIExamples"/>
+</module>
+<module name="UpperEll">
+<property name="severity" value="error"/>
+</module>
+<module name="AvoidNestedBlocks">
+<property name="severity" value="error"/>
+</module>
+<module name="EmptyBlock">
+<property name="severity" value="error"/>
+<property name="option" value="text"/>
+</module>
+<module name="LeftCurly">
+<property name="severity" value="error"/>
+<property name="option" value="nl"/>
+</module>
+<module name="NeedBraces">
+<property name="severity" value="error"/>
+<property name="tokens" value="LITERAL_DO, LITERAL_ELSE, LITERAL_FOR, LITERAL_WHILE"/>
+</module>
+<module name="RightCurly">
+<property name="severity" value="error"/>
+<property name="option" value="alone"/>
+</module>
+<module name="CovariantEquals">
+<property name="severity" value="error"/>
+</module>
+<module name="DefaultComesLast">
+<property name="severity" value="error"/>
+</module>
+<module name="DoubleCheckedLocking">
+<property name="severity" value="error"/>
+</module>
+<module name="EmptyStatement">
+<property name="severity" value="error"/>
+</module>
+<module name="EqualsHashCode">
+<property name="severity" value="error"/>
+</module>
+<module name="FallThrough">
+<property name="severity" value="error"/>
+</module>
+<module name="HiddenField">
+<property name="severity" value="error"/>
+<property name="tokens" value="VARIABLE_DEF"/>
+</module>
+<module name="IllegalInstantiation">
+<property name="severity" value="error"/>
+<property name="classes" value="java.lang.Boolean, java.lang.String"/>
+</module>
+<module name="IllegalTokenText">
+<property name="severity" value="error"/>
+<property name="tokens" value="NUM_INT,NUM_LONG"/>
+<property name="format" value="^0[^lx]"/>
+<property name="ignoreCase" value="true"/>
+</module>
+<module name="InnerAssignment">
+<property name="severity" value="error"/>
+</module>
+<module name="JUnitTestCase">
+<property name="severity" value="error"/>
+</module>
+<module name="MissingSwitchDefault">
+<property name="severity" value="error"/>
+</module>
+<module name="MultipleVariableDeclarations">
+<property name="severity" value="error"/>
+</module>
+<module name="NestedIfDepth">
+<property name="severity" value="error"/>
+<property name="max" value="3"/>
+</module>
+<module name="NestedTryDepth">
+<property name="severity" value="error"/>
+<property name="max" value="3"/>
+</module>
+<module name="PackageDeclaration">
+<property name="severity" value="error"/>
+</module>
+<module name="SimplifyBooleanExpression">
+<property name="severity" value="error"/>
+</module>
+<module name="SimplifyBooleanReturn">
+<property name="severity" value="error"/>
+</module>
+<module name="StringLiteralEquality">
+<property name="severity" value="error"/>
+</module>
+<module name="SuperClone">
+<property name="severity" value="error"/>
+</module>
+<module name="SuperFinalize">
+<property name="severity" value="error"/>
+</module>
+<module name="HideUtilityClassConstructor">
+<property name="severity" value="error"/>
+</module>
+<module name="InterfaceIsType">
+<property name="severity" value="error"/>
+</module>
+<module name="MutableException">
+<property name="severity" value="error"/>
+</module>
+<module name="VisibilityModifier">
+<property name="severity" value="error"/>
+<property name="protectedAllowed" value="true"/>
+</module>
+<module name="AvoidStarImport">
+<property name="severity" value="error"/>
+</module>
+<module name="IllegalImport">
+<property name="severity" value="error"/>
+</module>
+<module name="RedundantImport">
+<property name="severity" value="error"/>
+</module>
+<module name="UnusedImports">
+<property name="severity" value="error"/>
+</module>
+<module name="JavadocType">
+<property name="severity" value="error"/>
+<property name="authorFormat" value="\S"/>
+</module>
+<module name="ConstantName">
+<property name="severity" value="error"/>
+<property name="format" value="^(log|instance|([A-Z][A-Z0-9]*(_[A-Z0-9]+)*))$"/>
+</module>
+<module name="LocalFinalVariableName">
+<property name="severity" value="error"/>
+<property name="format" value="[a-z][a-zA-Z0-9]*$"/>
+</module>
+<module name="LocalVariableName">
+<property name="severity" value="error"/>
+<property name="format" value="[a-z][a-zA-Z0-9]*$"/>
+</module>
+<module name="MemberName">
+<property name="severity" value="error"/>
+<property name="format" value="[a-z][a-zA-Z0-9]*$"/>
+</module>
+<module name="MethodName">
+<property name="severity" value="error"/>
+</module>
+<module name="PackageName">
+<property name="severity" value="error"/>
+<property name="format" value="^[a-z]+(\.[a-z][a-z0-9]{1,11})*$"/>
+</module>
+<module name="ParameterName">
+<property name="severity" value="error"/>
+<property name="format" value="[a-z][a-zA-Z0-9]*$"/>
+</module>
+<module name="StaticVariableName">
+<property name="severity" value="error"/>
+<property name="format" value="[a-z][a-zA-Z0-9]*$"/>
+</module>
+<module name="TypeName">
+<property name="severity" value="error"/>
+</module>
+<module name="AnonInnerLength">
+<property name="max" value="100"/>
+</module>
+<module name="ExecutableStatementCount">
+<metadata name="com.atlassw.tools.eclipse.checkstyle.comment" value="This should be set to something much smaller."/>
+<property name="severity" value="error"/>
+<property name="max" value="125"/>
+<property name="tokens" value="INSTANCE_INIT,STATIC_INIT,METHOD_DEF,CTOR_DEF"/>
+</module>
+<module name="FileLength">
+<property name="severity" value="error"/>
+</module>
+<module name="LineLength">
+<property name="severity" value="ignore"/>
+<property name="ignorePattern" value="^\s*[{]\s*\d{1,5}(,\s*\d{1,5})*\s*[}],$"/>
+<property name="max" value="256"/>
+</module>
+<module name="EmptyForInitializerPad">
+<property name="severity" value="error"/>
+<property name="option" value="space"/>
+</module>
+<module name="EmptyForIteratorPad">
+<property name="severity" value="error"/>
+<property name="option" value="space"/>
+</module>
+<module name="MethodParamPad">
+<property name="severity" value="error"/>
+</module>
+<module name="NoWhitespaceAfter">
+<property name="severity" value="error"/>
+<property name="allowLineBreaks" value="false"/>
+<property name="tokens" value="BNOT,DEC,DOT,INC,LNOT,UNARY_MINUS,UNARY_PLUS"/>
+</module>
+<module name="NoWhitespaceBefore">
+<property name="severity" value="error"/>
+<property name="allowLineBreaks" value="false"/>
+<property name="tokens" value="SEMI,DOT,POST_DEC,POST_INC"/>
+</module>
+<module name="OperatorWrap">
+<property name="severity" value="error"/>
+</module>
+<module name="ParenPad">
+<property name="severity" value="error"/>
+</module>
+<module name="TabCharacter">
+<property name="severity" value="error"/>
+</module>
+<module name="TypecastParenPad">
+<property name="severity" value="error"/>
+</module>
+<module name="WhitespaceAfter">
+<property name="severity" value="error"/>
+</module>
+<module name="WhitespaceAround">
+<property name="severity" value="error"/>
+</module>
+<module name="MethodLength">
+<property name="severity" value="error"/>
+<property name="countEmpty" value="false"/>
+</module>
+<module name="ParameterNumber">
+</module>
+<module name="usage.UnusedLocalVariable">
+<property name="severity" value="error"/>
+</module>
+<module name="usage.UnusedParameter">
+<property name="severity" value="ignore"/>
+</module>
+<module name="usage.UnusedPrivateField">
+<property name="severity" value="error"/>
+<property name="ignoreFormat" value="serialVersionUID"/>
+</module>
+<module name="usage.UnusedPrivateMethod">
+<metadata name="com.atlassw.tools.eclipse.checkstyle.comment" value="Buggy"/>
+<property name="severity" value="ignore"/>
+</module>
+<module name="JavadocMethod">
+<property name="severity" value="ignore"/>
+<property name="scope" value="public"/>
+</module>
+<module name="JavadocVariable">
+<property name="severity" value="error"/>
+<property name="excludeScope" value="protected"/>
+<property name="scope" value="public"/>
+</module>
+<module name="JavadocStyle">
+<property name="severity" value="ignore"/>
+<property name="excludeScope" value="nothing"/>
+</module>
+<module name="AbstractClassName">
+<property name="severity" value="error"/>
+<property name="format" value="^Abstract.*$|^.*Factory$|^.*Type$"/>
+</module>
+<module name="RedundantModifier">
+<property name="severity" value="error"/>
+</module>
+<module name="ImportOrder">
+<property name="severity" value="error"/>
+</module>
+<module name="UnnecessaryParentheses">
+<property name="severity" value="error"/>
+</module>
+<module name="AvoidInlineConditionals">
+<metadata name="com.atlassw.tools.eclipse.checkstyle.comment" value="JSword allows these."/>
+<property name="severity" value="ignore"/>
+</module>
+<module name="DeclarationOrder">
+<metadata name="com.atlassw.tools.eclipse.checkstyle.comment" value="JSword does not follow this."/>
+<property name="severity" value="ignore"/>
+</module>
+<module name="ExplicitInitialization">
+</module>
+<module name="FinalLocalVariable">
+<metadata name="com.atlassw.tools.eclipse.checkstyle.comment" value="Too big of a change for now."/>
+<property name="severity" value="ignore"/>
+<property name="tokens" value="PARAMETER_DEF,VARIABLE_DEF"/>
+</module>
+<module name="IllegalCatch">
+<metadata name="com.atlassw.tools.eclipse.checkstyle.comment" value="We should do this."/>
+<property name="severity" value="ignore"/>
+</module>
+<module name="IllegalType">
+<metadata name="com.atlassw.tools.eclipse.checkstyle.comment" value="This is too much."/>
+<property name="severity" value="ignore"/>
+<property name="tokens" value="METHOD_DEF,PARAMETER_DEF,VARIABLE_DEF"/>
+</module>
+<module name="MagicNumber">
+<metadata name="com.atlassw.tools.eclipse.checkstyle.comment" value="JSword has tables of numbers."/>
+<property name="severity" value="ignore"/>
+</module>
+<module name="MissingCtor">
+<metadata name="com.atlassw.tools.eclipse.checkstyle.comment" value="JSword allows default ctor."/>
+<property name="severity" value="ignore"/>
+</module>
+<module name="ModifiedControlVariable">
+<property name="severity" value="error"/>
+</module>
+<module name="MultipleStringLiterals">
+<metadata name="com.atlassw.tools.eclipse.checkstyle.comment" value="This should be lowered."/>
+<property name="severity" value="error"/>
+<property name="allowedDuplicates" value="7"/>
+</module>
+<module name="ParameterAssignment">
+<property name="severity" value="error"/>
+</module>
+<module name="RedundantThrows">
+<property name="severity" value="error"/>
+<property name="allowUnchecked" value="true"/>
+<property name="allowSubclasses" value="true"/>
+</module>
+<module name="RequireThis">
+<metadata name="com.atlassw.tools.eclipse.checkstyle.comment" value="JSword does not require this."/>
+<property name="severity" value="ignore"/>
+</module>
+<module name="ReturnCount">
+<metadata name="com.atlassw.tools.eclipse.checkstyle.comment" value="This would be too big to change."/>
+<property name="severity" value="ignore"/>
+</module>
+<module name="ArrayTrailingComma">
+<property name="severity" value="error"/>
+</module>
+<module name="DesignForExtension">
+<property name="severity" value="ignore"/>
+</module>
+<module name="FinalClass">
+<property name="severity" value="error"/>
+</module>
+<module name="ThrowsCount">
+<metadata name="com.atlassw.tools.eclipse.checkstyle.comment" value="Should this be less?"/>
+<property name="severity" value="error"/>
+<property name="max" value="6"/>
+</module>
+<module name="FinalParameters">
+<property name="severity" value="ignore"/>
+</module>
+<module name="Indentation">
+<property name="severity" value="error"/>
+<property name="caseIndent" value="0"/>
+</module>
+<module name="TrailingComment">
+<property name="severity" value="ignore"/>
+</module>
+<module name="j2ee.FinalStatic">
+<property name="severity" value="error"/>
+</module>
+<module name="j2ee.ThisParameter">
+<property name="severity" value="error"/>
+</module>
+<module name="j2ee.ThisReturn">
+<property name="severity" value="error"/>
+</module>
+<module name="usage.OneMethodPrivateField">
+<metadata name="com.atlassw.tools.eclipse.checkstyle.comment" value="Buggy. Should ignore static fields."/>
+<property name="severity" value="ignore"/>
+</module>
+<module name="Header">
+<property name="headerFile" value="E:\Eclipse\JSword\common\LicenseHeader.txt"/>
+<property name="ignoreLines" value="3,20"/>
+</module>
+<module name="RequiredRegexp">
+<property name="format" value="see gnu.gpl.License for license details."/>
+</module>
+</module>
+<module name="PackageHtml">
+<property name="severity" value="error"/>
+</module>
+<module name="NewlineAtEndOfFile">
+<property name="severity" value="error"/>
+</module>
+<module name="Translation">
+<property name="severity" value="error"/>
+</module>
+</module>
Added: trunk/step-web-app/eclipse/JSwordStyleCleanup.xml
===================================================================
--- trunk/step-web-app/eclipse/JSwordStyleCleanup.xml (rev 0)
+++ trunk/step-web-app/eclipse/JSwordStyleCleanup.xml 2009-12-18 08:52:18 UTC (rev 58)
@@ -0,0 +1,51 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<profiles version="2">
+<profile name="JSword Style Cleanup" version="2" kind="CleanUpProfile">
+<setting id="cleanup.always_use_blocks" value="true"/>
+<setting id="cleanup.use_this_for_non_static_field_access_only_if_necessary" value="true"/>
+<setting id="cleanup.use_this_for_non_static_field_access" value="false"/>
+<setting id="cleanup.qualify_static_method_accesses_with_declaring_class" value="false"/>
+<setting id="cleanup.remove_unused_private_fields" value="true"/>
+<setting id="cleanup.remove_unnecessary_casts" value="true"/>
+<setting id="cleanup.sort_members_all" value="false"/>
+<setting id="cleanup.make_local_variable_final" value="true"/>
+<setting id="cleanup.never_use_parentheses_in_expressions" value="true"/>
+<setting id="cleanup.always_use_this_for_non_static_method_access" value="false"/>
+<setting id="cleanup.convert_to_enhanced_for_loop" value="false"/>
+<setting id="cleanup.remove_trailing_whitespaces" value="true"/>
+<setting id="cleanup.qualify_static_field_accesses_with_declaring_class" value="false"/>
+<setting id="cleanup.use_this_for_non_static_method_access_only_if_necessary" value="true"/>
+<setting id="cleanup.always_use_parentheses_in_expressions" value="false"/>
+<setting id="cleanup.remove_unused_private_types" value="true"/>
+<setting id="cleanup.format_source_code" value="false"/>
+<setting id="cleanup.qualify_static_member_accesses_through_instances_with_declaring_class" value="true"/>
+<setting id="cleanup.remove_unused_local_variables" value="true"/>
+<setting id="cleanup.add_missing_nls_tags" value="false"/>
+<setting id="cleanup.add_missing_override_annotations" value="false"/>
+<setting id="cleanup.add_missing_annotations" value="true"/>
+<setting id="cleanup.use_this_for_non_static_method_access" value="false"/>
+<setting id="cleanup.make_variable_declarations_final" value="false"/>
+<setting id="cleanup.make_parameters_final" value="false"/>
+<setting id="cleanup.remove_private_constructors" value="true"/>
+<setting id="cleanup.remove_trailing_whitespaces_all" value="true"/>
+<setting id="cleanup.add_missing_deprecated_annotations" value="false"/>
+<setting id="cleanup.add_generated_serial_version_id" value="true"/>
+<setting id="cleanup.organize_imports" value="true"/>
+<setting id="cleanup.qualify_static_member_accesses_with_declaring_class" value="true"/>
+<setting id="cleanup.remove_unnecessary_nls_tags" value="true"/>
+<setting id="cleanup.always_use_this_for_non_static_field_access" value="false"/>
+<setting id="cleanup.use_parentheses_in_expressions" value="false"/>
+<setting id="cleanup.remove_trailing_whitespaces_ignore_empty" value="false"/>
+<setting id="cleanup.never_use_blocks" value="false"/>
+<setting id="cleanup.sort_members" value="false"/>
+<setting id="cleanup.qualify_static_member_accesses_through_subtypes_with_declaring_class" value="true"/>
+<setting id="cleanup.use_blocks_only_for_return_and_throw" value="false"/>
+<setting id="cleanup.add_serial_version_id" value="true"/>
+<setting id="cleanup.add_default_serial_version_id" value="false"/>
+<setting id="cleanup.use_blocks" value="true"/>
+<setting id="cleanup.make_private_fields_final" value="true"/>
+<setting id="cleanup.remove_unused_imports" value="true"/>
+<setting id="cleanup.remove_unused_private_methods" value="true"/>
+<setting id="cleanup.remove_unused_private_members" value="false"/>
+</profile>
+</profiles>
Added: trunk/step-web-app/eclipse/JSwordStyleFormatting.xml
===================================================================
--- trunk/step-web-app/eclipse/JSwordStyleFormatting.xml (rev 0)
+++ trunk/step-web-app/eclipse/JSwordStyleFormatting.xml 2009-12-18 08:52:18 UTC (rev 58)
@@ -0,0 +1,267 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<profiles version="11">
+<profile kind="CodeFormatterProfile" name="JSword Style Formatting" version="11">
+<setting id="org.eclipse.jdt.core.formatter.comment.insert_new_line_before_root_tags" value="insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_annotation" value="insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_parameters" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_type_declaration" value="insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_arguments" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.brace_position_for_anonymous_type_declaration" value="end_of_line"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_colon_in_case" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_brace_in_array_initializer" value="insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_new_line_in_empty_annotation_declaration" value="insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_new_line_before_closing_brace_in_array_initializer" value="insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_annotation" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.blank_lines_before_field" value="0"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_while" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_annotation_type_member_declaration" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_new_line_before_else_in_if_statement" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_after_prefix_operator" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.keep_else_statement_on_same_line" value="false"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_after_ellipsis" value="insert"/>
+<setting id="org.eclipse.jdt.core.formatter.comment.insert_new_line_for_parameter" value="insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_annotation_type_declaration" value="insert"/>
+<setting id="org.eclipse.jdt.core.formatter.indent_breaks_compare_to_cases" value="true"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.alignment_for_multiple_fields" value="16"/>
+<setting id="org.eclipse.jdt.core.formatter.alignment_for_expressions_in_array_initializer" value="16"/>
+<setting id="org.eclipse.jdt.core.formatter.alignment_for_conditional_expression" value="80"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_for" value="insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_after_binary_operator" value="insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_question_in_wildcard" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.brace_position_for_array_initializer" value="end_of_line"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_enum_constant" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_new_line_before_finally_in_try_statement" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_local_variable" value="insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_new_line_before_catch_in_try_statement" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_while" value="insert"/>
+<setting id="org.eclipse.jdt.core.formatter.blank_lines_after_package" value="1"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_parameters" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.continuation_indentation" value="2"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_after_postfix_operator" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.alignment_for_arguments_in_method_invocation" value="16"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_arguments" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_superinterfaces" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.blank_lines_before_new_chunk" value="1"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_binary_operator" value="insert"/>
+<setting id="org.eclipse.jdt.core.formatter.blank_lines_before_package" value="0"/>
+<setting id="org.eclipse.jdt.core.compiler.source" value="1.5"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_constant_arguments" value="insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_constructor_declaration" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_arguments" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.comment.format_line_comments" value="true"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_declarations" value="insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_block" value="insert"/>
+<setting id="org.eclipse.jdt.core.formatter.alignment_for_arguments_in_explicit_constructor_call" value="16"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_invocation_arguments" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.blank_lines_before_member_type" value="1"/>
+<setting id="org.eclipse.jdt.core.formatter.align_type_members_on_columns" value="false"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_enum_constant" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_for" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_method_declaration" value="insert"/>
+<setting id="org.eclipse.jdt.core.formatter.alignment_for_selector_in_method_invocation" value="16"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_switch" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_after_unary_operator" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_after_colon_in_case" value="insert"/>
+<setting id="org.eclipse.jdt.core.formatter.comment.indent_parameter_description" value="true"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_declaration" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_switch" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_declaration" value="insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_parameters" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_new_line_in_empty_type_declaration" value="insert"/>
+<setting id="org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_block_comment" value="false"/>
+<setting id="org.eclipse.jdt.core.formatter.lineSplit" value="80"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_if" value="insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_between_brackets_in_array_type_reference" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_parenthesized_expression" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_explicitconstructorcall_arguments" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_constructor_declaration" value="insert"/>
+<setting id="org.eclipse.jdt.core.formatter.blank_lines_before_first_class_body_declaration" value="0"/>
+<setting id="org.eclipse.jdt.core.formatter.indentation.size" value="4"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_declaration" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_enum_constant" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.alignment_for_superclass_in_type_declaration" value="16"/>
+<setting id="org.eclipse.jdt.core.formatter.alignment_for_assignment" value="0"/>
+<setting id="org.eclipse.jdt.core.compiler.problem.assertIdentifier" value="error"/>
+<setting id="org.eclipse.jdt.core.formatter.tabulation.char" value="space"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_parameters" value="insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_prefix_operator" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.indent_statements_compare_to_body" value="true"/>
+<setting id="org.eclipse.jdt.core.formatter.blank_lines_before_method" value="1"/>
+<setting id="org.eclipse.jdt.core.formatter.format_guardian_clause_on_one_line" value="false"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_colon_in_for" value="insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_cast" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.alignment_for_parameters_in_constructor_declaration" value="16"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_after_colon_in_labeled_statement" value="insert"/>
+<setting id="org.eclipse.jdt.core.formatter.brace_position_for_annotation_type_declaration" value="end_of_line"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_new_line_in_empty_method_body" value="insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_invocation" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_allocation_expression" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_constant" value="insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_annotation" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation_type_declaration" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_throws" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_if" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.brace_position_for_switch" value="end_of_line"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_throws" value="insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_return" value="insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_after_question_in_conditional" value="insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_after_question_in_wildcard" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_allocation_expression" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_throw" value="insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_arguments" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.compiler.problem.enumIdentifier" value="error"/>
+<setting id="org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_switch" value="false"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_ellipsis" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.brace_position_for_block" value="end_of_line"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_inits" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.brace_position_for_method_declaration" value="end_of_line"/>
+<setting id="org.eclipse.jdt.core.formatter.compact_else_if" value="true"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_array_initializer" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_increments" value="insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_reference" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.brace_position_for_enum_constant" value="end_of_line"/>
+<setting id="org.eclipse.jdt.core.formatter.comment.indent_root_tags" value="true"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_declarations" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_explicitconstructorcall_arguments" value="insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_switch" value="insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_superinterfaces" value="insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_parameters" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_allocation_expression" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.tabulation.size" value="4"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_type_reference" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_new_line_after_opening_brace_in_array_initializer" value="insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_after_closing_brace_in_block" value="insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_reference" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_constant" value="insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_arguments" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_constructor_declaration" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_if" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_throws" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_javadoc_comment" value="false"/>
+<setting id="org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_constructor_declaration" value="16"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_after_assignment_operator" value="insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_assignment_operator" value="insert"/>
+<setting id="org.eclipse.jdt.core.formatter.indent_empty_lines" value="false"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_synchronized" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_after_closing_paren_in_cast" value="insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_parameters" value="insert"/>
+<setting id="org.eclipse.jdt.core.formatter.brace_position_for_block_in_case" value="end_of_line"/>
+<setting id="org.eclipse.jdt.core.formatter.number_of_empty_lines_to_preserve" value="1"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_declaration" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_catch" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_constructor_declaration" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_invocation" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_reference" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_after_and_in_type_parameter" value="insert"/>
+<setting id="org.eclipse.jdt.core.formatter.alignment_for_arguments_in_qualified_allocation_expression" value="16"/>
+<setting id="org.eclipse.jdt.core.compiler.compliance" value="1.5"/>
+<setting id="org.eclipse.jdt.core.formatter.continuation_indentation_for_array_initializer" value="2"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_between_empty_brackets_in_array_allocation_expression" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_at_in_annotation_type_declaration" value="insert"/>
+<setting id="org.eclipse.jdt.core.formatter.alignment_for_arguments_in_allocation_expression" value="16"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_cast" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_unary_operator" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_parameterized_type_reference" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_anonymous_type_declaration" value="insert"/>
+<setting id="org.eclipse.jdt.core.formatter.keep_empty_array_initializer_on_one_line" value="false"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_declaration" value="insert"/>
+<setting id="org.eclipse.jdt.core.formatter.keep_imple_if_on_one_line" value="false"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_parameters" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_parameters" value="insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_new_line_at_end_of_file_if_missing" value="insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_after_colon_in_for" value="insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_colon_in_labeled_statement" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_parameterized_type_reference" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_type_declaration" value="16"/>
+<setting id="org.eclipse.jdt.core.formatter.alignment_for_binary_expression" value="16"/>
+<setting id="org.eclipse.jdt.core.formatter.brace_position_for_enum_declaration" value="end_of_line"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_while" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode" value="enabled"/>
+<setting id="org.eclipse.jdt.core.formatter.put_empty_statement_on_new_line" value="true"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_parameter" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_parameters" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_invocation" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_new_line_before_while_in_do_statement" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.alignment_for_arguments_in_enum_constant" value="16"/>
+<setting id="org.eclipse.jdt.core.formatter.comment.format_javadoc_comments" value="true"/>
+<setting id="org.eclipse.jdt.core.formatter.comment.line_length" value="80"/>
+<setting id="org.eclipse.jdt.core.formatter.blank_lines_between_import_groups" value="1"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_constant_arguments" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_semicolon" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.brace_position_for_constructor_declaration" value="end_of_line"/>
+<setting id="org.eclipse.jdt.core.formatter.number_of_blank_lines_at_beginning_of_method_body" value="0"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_colon_in_conditional" value="insert"/>
+<setting id="org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_type_header" value="true"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation_type_member_declaration" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.wrap_before_binary_operator" value="true"/>
+<setting id="org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_declaration_header" value="true"/>
+<setting id="org.eclipse.jdt.core.formatter.blank_lines_between_type_declarations" value="1"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_synchronized" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.indent_statements_compare_to_block" value="true"/>
+<setting id="org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_enum_declaration" value="16"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_question_in_conditional" value="insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_field_declarations" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.alignment_for_compact_if" value="16"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_inits" value="insert"/>
+<setting id="org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_cases" value="true"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_array_initializer" value="insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_colon_in_default" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_and_in_type_parameter" value="insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_constructor_declaration" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_after_colon_in_assert" value="insert"/>
+<setting id="org.eclipse.jdt.core.formatter.blank_lines_before_imports" value="1"/>
+<setting id="org.eclipse.jdt.core.formatter.comment.format_html" value="true"/>
+<setting id="org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_method_declaration" value="16"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_parameters" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_allocation_expression" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_new_line_in_empty_anonymous_type_declaration" value="insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_after_colon_in_conditional" value="insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_parameterized_type_reference" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_for" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_postfix_operator" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.comment.format_source_code" value="true"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_synchronized" value="insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_allocation_expression" value="insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_throws" value="insert"/>
+<setting id="org.eclipse.jdt.core.formatter.alignment_for_parameters_in_method_declaration" value="16"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_brace_in_array_initializer" value="insert"/>
+<setting id="org.eclipse.jdt.core.compiler.codegen.targetPlatform" value="1.5"/>
+<setting id="org.eclipse.jdt.core.formatter.use_tabs_only_for_leading_indentations" value="false"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_member" value="insert"/>
+<setting id="org.eclipse.jdt.core.formatter.comment.format_header" value="false"/>
+<setting id="org.eclipse.jdt.core.formatter.comment.format_block_comments" value="true"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_enum_constant" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.alignment_for_enum_constants" value="0"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_new_line_in_empty_block" value="insert"/>
+<setting id="org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_annotation_declaration_header" value="true"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_parenthesized_expression" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_parenthesized_expression" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_catch" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_local_declarations" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_switch" value="insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_increments" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_invocation" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_colon_in_assert" value="insert"/>
+<setting id="org.eclipse.jdt.core.formatter.brace_position_for_type_declaration" value="end_of_line"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_array_initializer" value="insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_between_empty_braces_in_array_initializer" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_declaration" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_for" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_catch" value="insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_parameterized_type_reference" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_field_declarations" value="insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_annotation" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_parameterized_type_reference" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_invocation_arguments" value="insert"/>
+<setting id="org.eclipse.jdt.core.formatter.blank_lines_after_imports" value="1"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_local_declarations" value="insert"/>
+<setting id="org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_constant_header" value="true"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_for" value="insert"/>
+<setting id="org.eclipse.jdt.core.formatter.never_indent_line_comments_on_first_column" value="false"/>
+<setting id="org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_arguments" value="do not insert"/>
+<setting id="org.eclipse.jdt.core.formatter.never_indent_block_comments_on_first_column" value="false"/>
+<setting id="org.eclipse.jdt.core.formatter.keep_then_statement_on_same_line" value="false"/>
+</profile>
+</profiles>
Added: trunk/step-web-app/src/main/java/com/tyndalehouse/step/web/server/common/ConfigNotLoadedException.java
===================================================================
--- trunk/step-web-app/src/main/java/com/tyndalehouse/step/web/server/common/ConfigNotLoadedException.java (rev 0)
+++ trunk/step-web-app/src/main/java/com/tyndalehouse/step/web/server/common/ConfigNotLoadedException.java 2009-12-18 08:52:18 UTC (rev 58)
@@ -0,0 +1,14 @@
+package com.tyndalehouse.step.web.server.common;
+
+public class ConfigNotLoadedException extends Exception {
+
+ /**
+ * serial id for serialization
+ */
+ private static final long serialVersionUID = 1644291687028980017L;
+
+ public ConfigNotLoadedException(Exception e) {
+ super("The configuration files could not be loaded", e);
+ }
+
+}
Added: trunk/step-web-app/src/main/java/com/tyndalehouse/step/web/server/common/ConfigProvider.java
===================================================================
--- trunk/step-web-app/src/main/java/com/tyndalehouse/step/web/server/common/ConfigProvider.java (rev 0)
+++ trunk/step-web-app/src/main/java/com/tyndalehouse/step/web/server/common/ConfigProvider.java 2009-12-18 08:52:18 UTC (rev 58)
@@ -0,0 +1,44 @@
+package com.tyndalehouse.step.web.server.common;
+
+import java.io.IOException;
+import java.net.URL;
+import java.util.Properties;
+
+public class ConfigProvider {
+ private static ConfigProvider pr;
+ String configFolder = "config";
+ private Properties p = new Properties();
+
+
+ private ConfigProvider() throws ConfigNotLoadedException {
+ load();
+ }
+
+ /**
+ * Load a properties file from the classpath
+ * @param propsName
+ * @return Properties
+ * @throws Exception
+ */
+ public void load() throws ConfigNotLoadedException {
+ URL url = ClassLoader.getSystemResource("com/tyndalehouse/step/web/server/config/environment.properties");
+ try {
+ p.load(url.openStream());
+ } catch (IOException e) {
+ throw new ConfigNotLoadedException(e);
+ }
+ }
+
+
+ public static String get(final String name) throws ConfigNotLoadedException {
+ if(pr == null) {
+ pr = new ConfigProvider();
+ }
+ return pr.readProperty(name);
+ }
+
+
+ private String readProperty(String name) {
+ return p.getProperty(name);
+ }
+}
Added: trunk/step-web-app/src/main/resources/com/tyndalehouse/step/web/server/config/environment.properties
===================================================================
--- trunk/step-web-app/src/main/resources/com/tyndalehouse/step/web/server/config/environment.properties (rev 0)
+++ trunk/step-web-app/src/main/resources/com/tyndalehouse/step/web/server/config/environment.properties 2009-12-18 08:52:18 UTC (rev 58)
@@ -0,0 +1,2 @@
+db.driver=org.apache.derby.jdbc.ClientDriver
+connection.string=jdbc:derby://localhost:1999/d:\\STEPSVN\\step-web-app\\war\\StepDB
More information about the Tynstep-svn
mailing list