$ git clone [email protected]:dvsmedeiros/report-engine.git
$ cd report-engine
$ ./mvnw clean install
$ java -Dfile.encoding=UTF-8 -Dreport.engine.home=<path_to_report-engine-0.0.1-SNAPSHOT.jar> -jar target/report-engine-0.0.1-SNAPSHOT.jar <report_id> <input.json>
<report_id> = id do relatório configurado em ./config/reports.json
<input.json> = nome do arquivo que contém o json do data source
#diretório para os arquivos *.jrxml e *.jasper
engine.report.path.template=./template/
#diretório para *.json do data source do relatório
engine.report.path.input=./input/
#diretório para *.pdf do relatório gerado
engine.report.path.result=./result/
#diretório com *.json de configuração do relatório
engine.report.path.config=./config/
#nome do arquivo de configuração do relatório
engine.report.config.report=reports.json
#flag para criar arquivo de configuração de exemplo
engine.report.create.example=true
#flag para compilar os arquivos *.jrxml que estão no diretorio configurado em engine.report.path.template
engine.report.compile.all=true
[
{
"id" : 1,
"description" : "Description Report",
"name" : <jasper_file_name_without_extension>,
"title" : "Sample",
"version" : "1.0.0",
"params" :
[
{
"type" : "STRING",
"name" : "title",
"label" : "Title: ",
"required" : true,
"value" : "Title Sample Report"
},
...
]
}
]
STRING
{
"type" : "STRING",
"name" : "param_foo",
"label" : "String Label: ",
"required" : true,
"value" : "bar"
}
INTEGER
{
"type" : "INTEGER",
"name" : "param_integer",
"label" : "Integer Label: ",
"required" : true,
"value" : 1
}
LONG
{
"type" : "LONG",
"name" : "param_long",
"label" : "Long Label: ",
"required" : true,
"value" : 1
}
DOUBLE
{
"type" : "DOUBLE",
"name" : "param_double",
"label" : "Double Label",
"required" : true,
"value" : 1.0
}
DATE
{
"type" : "DATE",
"name" : "param_date",
"label" : "Calendar Label: ",
"required" : true,
"value" : 1532923451130
}
BASE64
{
"type" : "BASE64",
"name" : "param_image",
"label" : "Image: ",
"required" : true,
"value" : "iVBORw0KGgoAAAANSUhEUgAAANQAAADtCAMAAADwdatPAAAA6lBMVEX///8KUaEATZ8ASZ7Kysrm5ua8vLwATJ8AR50ARZz7+/vQz817k7Pa2toJUqFIeLVokMHx8f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