Skip to content

carstenartur/sandbox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Sandbox project

To try out some tools and create build strategy sample.

To build including war file that contains update site use

mvn -Dinclude=web -Pjacoco verify

The product can be found in "sandbox_product/target" and the war file in "sandbox_web/target".

main:

Java CI with Maven

CodeQL

Codacy Security Scan

pmd

2022-12:

Java CI with Maven

CodeQL

Codacy Security Scan

pmd

2022-09:

Java CI with Maven

CodeQL

Codacy Security Scan

pmd

2022-06:

Java CI with Maven

CodeQL

Codacy Security Scan

pmd

What is included

Code based on Java 21 starting with 2024-06, based on Java 17 starting with 2022-12, Java 11 up to 2022-06

  • how to create github based build for different eclipse versions
  • how to create a jdt cleanup
  • how to setup spotbugs maven plugin to fail build in case of spotbugs error
  • how to create a junit 5 based test for cleanup
  • how to create a jacoco code coverage configuration for the test
  • how to create a product based on jdt including the new feature
  • how to setup automatic build for a war file including the p2 update site for the products new features

Projects

Everything is work in progress unless explicitly noted

1. sandbox_cleanup_application

Only placeholder for what should start a cleanup as commandline application similar to the codeformatting wrapper

eclipse -nosplash -consolelog -debug -application org.eclipse.jdt.core.JavaCodeFormatter -verbose -config MyCodingStandards.ini MyClassToBeFormatted.java

see https://bugs.eclipse.org/bugs/show_bug.cgi?id=75333

2. sandbox_encoding_quickfix

Partly implementation what should help to make usage of platform encoding visible by change of api use.
See https://openjdk.java.net/jeps/400 for affected api when *not* specifying default encoding.

3. sandbox_extra_search

Partly implementation of what should offer a curated search for interesting classes that have to be taken into account
when updating a java code base to newer eclipse and java version.

4. sandbox_usage_view

Table view that lists all objects in the code and sorts it by name. That should help to find uses of the similar variable name for 
what in fact is refering to the same object. Sometimes in an old code base you find deviations like camelcase or not, underscores and other small changes.
These changes are able to confuse a developer 

5. sandbox_platform_helper

Poc for quickfix to change code according to new possibilities in 
https://www.eclipse.org/eclipse/news/4.20/platform_isv.php#simpler-status-creation.

6. sandbox_tools

While to ForLoop Converter
Already merged into Eclipse jdt

7. sandbox_functional_converter

Iterator to functional loop converter
https://github.com/carstenartur/sandbox/wiki/Functional-Converter
Or see netbeans to learn how it works

8. sandbox_junit

cleanup to migrate junit 4 based tests to junit 5

Installation

You can use the p2 update site

https://github.com/carstenartur/sandbox/raw/main

Only use it on a separate fresh installation that you can throw away after a test as it may destroy your eclipse installation. Don't tell me nobody has warned you...