evaluate_and_mavenize_sources
Compares decompiled source candidates by AST structure, line count, and compiler warnings, selects the one with minimal code loss, then builds a clean Maven project with pom.xml.
Instructions
Evaluates decompiled outputs (comparing AST structure, line count, compiler warning count), chooses the best candidate with minimal code loss, and structures it into a clean Maven project with pom.xml.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"outputsDir": "<outputsDir>",
"targetMavenDir": "<targetMavenDir>"
},
"name": "evaluate_and_mavenize_sources"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| groupId | No | Maven groupId. Defaults to org.apache.commons. | |
| version | No | Maven artifact version. Defaults to 2.22.0. | |
| artifactId | No | Maven artifactId. Defaults to commons-io. | |
| outputsDir | Yes | Path to the directory containing candidate decompiled output folders (e.g. outputs/). | |
| targetMavenDir | Yes | Path to target directory where the chosen source will be mavenized (e.g. mavenized_merged_source/). |