init
This commit is contained in:
33
res/ide-support/eclipse/eclipse.classpath
Normal file
33
res/ide-support/eclipse/eclipse.classpath
Normal file
@@ -0,0 +1,33 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
contributor license agreements. See the NOTICE file distributed with
|
||||
this work for additional information regarding copyright ownership.
|
||||
The ASF licenses this file to You under the Apache License, Version 2.0
|
||||
(the "License"); you may not use this file except in compliance with
|
||||
the License. You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
-->
|
||||
<classpath>
|
||||
<classpathentry kind="src" path="java"/>
|
||||
<classpathentry excluding="deployment/|tld/|webapp*/|webresources/" kind="src" path="test"/>
|
||||
<classpathentry kind="src" path="webapps/examples/WEB-INF/classes"/>
|
||||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7"/>
|
||||
<classpathentry kind="con" path="org.eclipse.jdt.junit.JUNIT_CONTAINER/4"/>
|
||||
<classpathentry kind="var" path="ANT_HOME/lib/ant.jar"/>
|
||||
<classpathentry kind="var" path="TOMCAT_LIBS_BASE/jaxrpc-1.1-rc4/geronimo-spec-jaxrpc-1.1-rc4.jar"/>
|
||||
<classpathentry kind="var" path="TOMCAT_LIBS_BASE/wsdl4j-1.6.3/wsdl4j-1.6.3.jar"/>
|
||||
<classpathentry kind="var" path="TOMCAT_LIBS_BASE/ecj-4.6.3/ecj-4.6.3.jar"/>
|
||||
<classpathentry kind="var" path="TOMCAT_LIBS_BASE/easymock-3.2/easymock-3.2.jar"/>
|
||||
<classpathentry kind="var" path="TOMCAT_LIBS_BASE/hamcrest-1.3/hamcrest-core-1.3.jar"/>
|
||||
<classpathentry kind="var" path="TOMCAT_LIBS_BASE/cglib-2.2.2/cglib-nodep-2.2.2.jar"/>
|
||||
<classpathentry kind="var" path="TOMCAT_LIBS_BASE/objenesis-1.2/objenesis-1.2.jar"/>
|
||||
<classpathentry kind="output" path=".settings/output"/>
|
||||
</classpath>
|
||||
33
res/ide-support/eclipse/eclipse.project
Normal file
33
res/ide-support/eclipse/eclipse.project
Normal file
@@ -0,0 +1,33 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
contributor license agreements. See the NOTICE file distributed with
|
||||
this work for additional information regarding copyright ownership.
|
||||
The ASF licenses this file to You under the Apache License, Version 2.0
|
||||
(the "License"); you may not use this file except in compliance with
|
||||
the License. You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
-->
|
||||
<projectDescription>
|
||||
<name>tomcat-8.5.x</name>
|
||||
<comment></comment>
|
||||
<projects>
|
||||
</projects>
|
||||
<buildSpec>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.jdt.core.javabuilder</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
</buildSpec>
|
||||
<natures>
|
||||
<nature>org.eclipse.jdt.core.javanature</nature>
|
||||
</natures>
|
||||
</projectDescription>
|
||||
130
res/ide-support/eclipse/java-compiler-errors-warnings.txt
Normal file
130
res/ide-support/eclipse/java-compiler-errors-warnings.txt
Normal file
@@ -0,0 +1,130 @@
|
||||
================================================================================
|
||||
Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
contributor license agreements. See the NOTICE file distributed with
|
||||
this work for additional information regarding copyright ownership.
|
||||
The ASF licenses this file to You under the Apache License, Version 2.0
|
||||
(the "License"); you may not use this file except in compliance with
|
||||
the License. You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
================================================================================
|
||||
|
||||
# Java -> Compiler -> Errors/Warnings
|
||||
=======================================
|
||||
|
||||
The following settings are for Oxygen (Eclipse 4.13)
|
||||
W = Warning
|
||||
I = Ignore
|
||||
E = Error
|
||||
|
||||
Code style
|
||||
- Non-static access to static member - W
|
||||
- Indirect access to static member - I
|
||||
- Unqualified access to instance field - I
|
||||
- Access to a non-accessible member... - I
|
||||
- Parameter assignment - I
|
||||
- Non-externalized strings - I
|
||||
- Undocumented empty block - I
|
||||
- Resource not managed via try-with-resource (1.7 or higher) - I
|
||||
- Method with a constructor name - W
|
||||
- Method can be static - I
|
||||
- Method can potentially be static - I
|
||||
|
||||
Potential programming problems
|
||||
- All - W
|
||||
except the following:
|
||||
|
||||
- Incomplete 'switch' cases on enum - W
|
||||
[ ] Signal even if 'default' case exists
|
||||
- 'switch' is missing 'default' case - I
|
||||
- Potential resource leak - I
|
||||
|
||||
Name shadowing and conflicts
|
||||
- Field declaration hides another... - I
|
||||
- Local variable declaration hides.. - I
|
||||
- Type parameter hides another type - W
|
||||
- Method does not override... - W
|
||||
- Interface method conflicts... - W
|
||||
|
||||
Deprecated and restricted API
|
||||
- Deprecated API - W
|
||||
([ ] on all additional check boxes)
|
||||
- Deprecated API marked for removal - W
|
||||
- Forbidden references - E
|
||||
- Discouraged reference - W
|
||||
|
||||
Modules
|
||||
- All - W
|
||||
|
||||
Unnecessary code
|
||||
- All - W
|
||||
([x] on all additional check boxes)
|
||||
except the following:
|
||||
|
||||
- Value of exception parameter is... - I
|
||||
- Unnecessary else - I
|
||||
|
||||
Generic types
|
||||
- All - W
|
||||
[ ] Ignore unavoidable generic type problems
|
||||
|
||||
Annotations
|
||||
- All - W
|
||||
([x] on all additional check boxes)
|
||||
|
||||
Null analysis
|
||||
- Null pointer access - W
|
||||
- Potential null pointer access - W
|
||||
- Redundant null check - W
|
||||
[ ] Include 'assert' in null analysis
|
||||
[ ] Enable annotation-based null analysis
|
||||
|
||||
Note: The list of codes supported in @SuppressWarnings annotation in
|
||||
Eclipse IDE is documented here:
|
||||
|
||||
3.6: http://help.eclipse.org/helios/topic/org.eclipse.jdt.doc.isv/guide/jdt_api_compile.htm
|
||||
3.7: http://help.eclipse.org/indigo/topic/org.eclipse.jdt.doc.user/tasks/task-suppress_warnings.htm
|
||||
4.2: http://help.eclipse.org/juno/topic/org.eclipse.jdt.doc.user/tasks/task-suppress_warnings.htm
|
||||
|
||||
|
||||
# Java -> Compiler -> Javadoc
|
||||
=============================
|
||||
|
||||
Enable 'Process Javadoc comments'
|
||||
- Malformed Javadoc comments - W
|
||||
- Only consider members visible as - Public
|
||||
[X] Validate tag arguments
|
||||
[ ] Report non-visible references
|
||||
[X] Report deprecated references
|
||||
- Missing tag descriptions - Validate all standard tags
|
||||
- Missing Javadoc tags - W
|
||||
- Only consider members visible as - Public
|
||||
[X] - Ignore in overriding and implementing methods
|
||||
[ ] - Ignore method type parameters
|
||||
- Missing Javadoc comments - I
|
||||
|
||||
|
||||
# Java -> Code Style -> Organize Imports
|
||||
==========================================
|
||||
|
||||
The following configuration of "Organize Imports" setting can be
|
||||
recommended for a quick setup. The order is enforced by checkstyle, so for
|
||||
the authoritative definition look at <module name="ImportOrder"> in
|
||||
res/checkstyle/checkstyle.xml
|
||||
|
||||
- java
|
||||
- javax
|
||||
- async
|
||||
- jsp2
|
||||
- [static] org.junit
|
||||
- org.junit
|
||||
- [static] org
|
||||
- org
|
||||
- com
|
||||
- util
|
||||
@@ -0,0 +1,20 @@
|
||||
# -----------------------------------------------------------------------------
|
||||
# Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
# contributor license agreements. See the NOTICE file distributed with
|
||||
# this work for additional information regarding copyright ownership.
|
||||
# The ASF licenses this file to You under the Apache License, Version 2.0
|
||||
# (the "License"); you may not use this file except in compliance with
|
||||
# the License. You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
# -----------------------------------------------------------------------------
|
||||
eclipse.preferences.version=1
|
||||
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
|
||||
org.eclipse.jdt.core.compiler.compliance=1.8
|
||||
org.eclipse.jdt.core.compiler.source=1.8
|
||||
29
res/ide-support/eclipse/start-tomcat.launch
Normal file
29
res/ide-support/eclipse/start-tomcat.launch
Normal file
@@ -0,0 +1,29 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!--
|
||||
Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
contributor license agreements. See the NOTICE file distributed with
|
||||
this work for additional information regarding copyright ownership.
|
||||
The ASF licenses this file to You under the Apache License, Version 2.0
|
||||
(the "License"); you may not use this file except in compliance with
|
||||
the License. You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
-->
|
||||
<launchConfiguration type="org.eclipse.jdt.launching.localJavaApplication">
|
||||
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
|
||||
<listEntry value="/tomcat-8.5.x/java/org/apache/catalina/startup/Bootstrap.java"/>
|
||||
</listAttribute>
|
||||
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
|
||||
<listEntry value="1"/>
|
||||
</listAttribute>
|
||||
<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="org.apache.catalina.startup.Bootstrap"/>
|
||||
<stringAttribute key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS" value="start"/>
|
||||
<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="tomcat-8.5.x"/>
|
||||
<stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS" value="-Dcatalina.home=${project_loc:/tomcat-8.5.x/java/org/apache/catalina/startup/Bootstrap.java}/output/build"/>
|
||||
</launchConfiguration>
|
||||
29
res/ide-support/eclipse/stop-tomcat.launch
Normal file
29
res/ide-support/eclipse/stop-tomcat.launch
Normal file
@@ -0,0 +1,29 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!--
|
||||
Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
contributor license agreements. See the NOTICE file distributed with
|
||||
this work for additional information regarding copyright ownership.
|
||||
The ASF licenses this file to You under the Apache License, Version 2.0
|
||||
(the "License"); you may not use this file except in compliance with
|
||||
the License. You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
-->
|
||||
<launchConfiguration type="org.eclipse.jdt.launching.localJavaApplication">
|
||||
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
|
||||
<listEntry value="/tomcat-8.5.x/java/org/apache/catalina/startup/Bootstrap.java"/>
|
||||
</listAttribute>
|
||||
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
|
||||
<listEntry value="1"/>
|
||||
</listAttribute>
|
||||
<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="org.apache.catalina.startup.Bootstrap"/>
|
||||
<stringAttribute key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS" value="stop"/>
|
||||
<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="tomcat-8.5.x"/>
|
||||
<stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS" value="-Dcatalina.home=${project_loc:/tomcat-8.5.x/java/org/apache/catalina/startup/Bootstrap.java}/output/build"/>
|
||||
</launchConfiguration>
|
||||
Reference in New Issue
Block a user