feat: commit vendor folder directly to bypass air-gapped build restrictions

This commit is contained in:
2026-09-03 16:27:31 +07:00
parent 361347d312
commit b24dea3095
6610 changed files with 839660 additions and 8 deletions
+435
View File
@@ -0,0 +1,435 @@
JasperStarter - Running JasperReports from command line
========================================================
Release notes - JasperStarter - Version 3.5.0
---------------------------------------------
** Bug
* [JAS-134] - "InterruptedException" should not be ignored in App.java
* [JAS-135] - comparisons between unrelated types in Config.java
** New Feature
* [JAS-131] - Jasperstarter does not provide a way to use the query string saved in the report itself
** Task
* [JAS-133] - Release Pipeline takes longer than before
* [JAS-136] - Throwable.printStackTrace(...) should not be called in Report.java setLookAndFeel()
* [JAS-137] - Do not use a bitwise operator with a Boolean-like operand in ParameterPanel.java
* [JAS-138] - Do not use a bitwise operator with a Boolean-like operand in ParameterPrompt.java
Release notes - JasperStarter - Version 3.4.1
---------------------------------------------
** Bug
* [JAS-132] - Security alert on org.springframework:spring-core
Updated springframework to 4.3.21
CVE-2016-5007 - moderate severity - Vulnerable versions: < 4.3.1
CVE-2018-1275 - high severity - Vulnerable versions: < 4.3.16
CVE-2018-1272 - moderate severity - Vulnerable versions: < 4.3.15
CVE-2018-1271 - moderate severity - Vulnerable versions: < 4.3.15
CVE-2018-1270 - high severity - Vulnerable versions: < 4.3.16
CVE-2018-1257 - moderate severity - Vulnerable versions: < 4.3.17
Release notes - JasperStarter - Version 3.4.0
---------------------------------------------
JasperStarter-3.2.0 silently dropped Java7 support by using the
latest available JasperReports Library.
JasperReports-6.4.0 is the last release which works with Java7 so
JasperStarter-3.1.0 was the latest release supporting Java7.
Now JasperStarter needs Java8 at a minimum and is manually tested
with OpenJDK-8, OpenJDK-10, OpenJDK-11. Automatic testing is on the
way (see JAS-128).
There will be a special release supporting Java7.
"Diskless" operation using stdin and stdout for input data and
output is now complete. See ([JAS-97] and [JAS-89]).
A public API allows direct integration with Python using jpy
([JAS-125]).
Known bugs:
* [JAS-120] - JasperReports-6.7.0 Version does not match with
reported version from the jar file in
This is an upstream error which causes JasperStarter to put out
a wrong JasperReports version number of 6.6.0 instead of 6.7.0
if you call: jasperstarter -V
** Bug
* [JAS-111] - JRE 1.7 incompatibility - not fixed in the main
release but clarified.
* [JAS-122] - Runtime error if a chart with "chart customizers" is
used
* [JAS-126] - Jasperstarter does not usefully propagate
compilation errors
** New Feature
* [JAS-97] - Use stdout for the resulting PDF (so we don't have to
write to the hosting server's storage)
* [JAS-125] - Make report fill accessible via API
** Task
* [JAS-127] - Enable dependency caching in build pipeline
* [JAS-129] - Remove test dependency to font Arial
* [JAS-130] - launch4j-maven-plugin:1.5.2 depends on 32bit
libraries
Release notes - JasperStarter - Version 3.3.0
---------------------------------------------
Known bugs:
* [JAS-120] - JasperReports-6.7.0 Version does not match with reported version from the jar file in
This is an upstream error which causes JasperStarter to put out
a wrong JasperReports version number of 6.6.0 instead of 6.7.0
if you call: jasperstarter -V
** Bug
* [JAS-116] - SSL error
* [JAS-121] - Container 'Build' exceeded memory limit.
* [JAS-122] - Runtime error if a chart with "chart customizers" is used
** New Feature
* [JAS-113] - JSONQL data source support
** Task
* [JAS-102] - Pipeline: enable build artifact upload to download section
* [JAS-119] - Include JasperReports-6.7.0
** Improvement
* [JAS-89] - Accept stdin for datafile input
Release Notes - JasperStarter - Version 3.2.1
---------------------------------------------
** Task
* [JAS-109] - Include JasperReports-6.4.3
Release Notes - JasperStarter - Version 3.2.0
---------------------------------------------
** Bug
* [JAS-96] - Enable JavaScript in expression
* [JAS-99] - jasperreports-functions not in maven central
* [JAS-100] - Pipeline build failed: Font "Arial" is not available to the JVM
* [JAS-101] - Pipeline build failed: net.sf.launch4j.ExecException: java.io.IOException: Cannot run program
* [JAS-107] - JasperStarter could not run reports with Barcode4J barcodes
** Task
* [JAS-108] - Include JasperReports 6.4.1
Release Notes - JasperStarter - Version 3.1.0
---------------------------------------------
** New Feature
* [JAS-83] - JSON file as a data source
** Task
* [JAS-95] - Include JasperReports 6.4.0
** Improvement
* [JAS-84] - How to pass $P{XML_DATA_DOCUMENT} to sub report - additional documentation
Release Notes - JasperStarter - Version 3.0.0
---------------------------------------------
This Release works with Java8.
** Bug
* [JAS-69] - Calls of assertEquals have the arguments actual and
expected interchanged
* [JAS-70] - Example report csv.jrxml truncates data
* [JAS-80] - jasperstarter by default is missing some important
jasper studio builtin libraries
* [JAS-81] - Eclipse compiler error when running using Java 8
** Improvement
* [JAS-68] - Expand documentation with calls of running the
example reports
** New Feature
* [JAS-67] - Ability to produce CSV Metadata reports
* [JAS-72] - Ability to produce XLS Metadata reports
** Task
* [JAS-57] - Switching from Mercurial to Git
* [JAS-59] - Include JasperReports 6.0.0
* [JAS-61] - update dependencies
* [JAS-65] - Include JasperReports 6.0.2
* [JAS-66] - Include JasperReports 6.0.3
* [JAS-76] - Git version and revision information in manifest file
* [JAS-79] - Include JasperReports 6.0.4
Release Notes - JasperStarter - Version 2.2.2
----------------------------------------------
** Bug
* [JAS-63] - Version 2.2 WindowsSetup replace the path variable
Release Notes - JasperStarter - Version 2.2.1
----------------------------------------------
** Bug
* [JAS-58] - DB type generic should not require a username
* [JAS-62] - Linux startup script does not work if called via symlink
** Task
* [JAS-57] - Switching from Mercurial to Git (Branch Jasperstarter-2.2)
Release Notes - JasperStarter - Version 2.2.0
----------------------------------------------
** Bug
* [JAS-54] - Eclipse complains: Plugin execution not covered by
lifecycle configuration
** New Feature
* [JAS-56] - Support for XML data sources
** Task
* [JAS-48] - Rewrite api calls deprecated since JasperReports 5.6.0
* [JAS-49] - Rewrite code reported by -Xlint:unchecked
Release Notes - JasperStarter - Version 2.1.2
---------------------------------------------
** Bug
* [JAS-53] - Property net.sf.jasperreports.export.xls.one.page.per.sheet was overrided
Release Notes - JasperStarter - Version 2.1.1
----------------------------------------------
** Task
* [JAS-52] - Include JasperReports 5.6.1
Release Notes - JasperStarter - Version 2.1.0
----------------------------------------------
** Bug
* [JAS-40] - No page title is set in index.html
** New Feature
* [JAS-50] - Accept number of copies when printing
** Task
* [JAS-47] - Include JasperReports 5.6.0
Release Notes - JasperStarter - Version 2.0.0
----------------------------------------------
The command line syntax has changed in this release!
<input> is now an argument and the format of report parameters has changed.
Specifying the parameter type is no longer necessary. The type is determined
from the report and it is no longer possible to provide a non existent
parameter.
The major new feature is support for csv files as a datasource.
** Bug
* [JAS-37] - The artifact org.apache.commons:commons-io:jar:1.3.2 has been
relocated to commons-io:commons-io:jar:1.3.2
* [JAS-41] - Command "jasperstarter params" gives no useful result if param
has no description
** Improvement
* [JAS-15] - Report parameters should be handled in a more generic way
* [JAS-42] - Accept <input> as positional argument instead of an option
** New Feature
* [JAS-30] - CSV as a datasource for Jasperstarter
** Task
* [JAS-23] - create unit test
* [JAS-24] - create example reports
* [JAS-34] - site translation de for release 2.0
* [JAS-35] - site translation cz for release 2.0
* [JAS-38] - Update build dependencies
* [JAS-39] - Include JasperReports 5.2.0
Release Notes - JasperStarter - Version 1.4.2
----------------------------------------------
** Bug
* [JAS-41] - Command "jasperstarter params" gives no useful result
if param has no description
Release Notes - JasperStarter - Version 1.4.1
----------------------------------------------
** Bug
* [JAS-33] - Report parameter with space produces error on Unix
like systems
Release Notes - JasperStarter - Version 1.4.0
----------------------------------------------
** Bug
* [JAS-29] - Documentation typo java.awt.image
** Task
* [JAS-31] - Include JasperReports 5.1.2
* [JAS-32] - Include argparse4j 0.4.1
Release Notes - JasperStarter - Version 1.3.0
----------------------------------------------
This release is mainly due to the new JasperReports library version 5.1.0.
** Improvement
* [JAS-28] - Include argparse4j 0.4.0 which introduces some features to the
user
- Argument abbreviations
- Subcommand abbreviations
** Task
* [JAS-27] - Include JasperReports 5.1.0
Release Notes - JasperStarter - Version 1.2.0
----------------------------------------------
This release is mainly due to the new JasperReports library version 5.0.4.
** Improvement
* [JAS-25] - Implement command aliases
** Task
* [JAS-19] - create an independent configuration bean as replacement for the
parser dependend namspace object
* [JAS-20] - move any call of System.exit() to App.main()
* [JAS-21] - remove obsolete option --keep
* [JAS-26] - Use jasperreports library 5.0.4
Release Notes - JasperStarter - Version 1.1.0
----------------------------------------------
JasperStarter is now able to prompt for report parameters.
** Bug
* [JAS-5] - Maven site does not create index.html if called directly
* [JAS-6] - Maven site does not generate translation if called directly
* [JAS-11] - Maven site does not create index.html if called via package
* [JAS-16] - Selection of the report locale yields unexpected results in
some cases
** Improvement
* [JAS-13] - new parameter type locale to specify report locale independent
from gui locale
** New Feature
* [JAS-12] - new option to specify report resources like resource bundles or
icons
* [JAS-14] - New option: prompt for report parameters
* [JAS-17] - New Command: List report parameters
** Task
* [JAS-7] - Site translation cs
* [JAS-22] - site translation de
--------
1.0.1 [JAS-18] - Unable to save output into Excel format
1.0.0
JasperStarter now has commands: pr - process, lp - list printers.
New command: cp - compile, can compile one file or all .jrxml in a
directory.
New input file types for command pr allowed:
jrxml - compiles implicit
jrprint - print, view or export previously filled reports.
New output type: jrprint. This makes --keep obsolete.
New parameter -w writes compiled file to imput dir if jrxml is
processed.
Parameter -t defaults to "none" and can therefore be omited if no
database is needed.
Input file is read once. No temporary files needed anymore.
Setup checks for previous versions and creates menuitems for uninstall
and help.
Setup is available in English, Chinese (Simplified), Czech, French,
Hungarian, German, Polish, Romanian, Thai, Ukrainian.
[JAS-2] - runtime parameter value cannot contain equal sign
Contains JasperReports 5.0.1
German translation for Site/docs
[JAS-4] - java.lang.Integer cannot be cast to java.lang.String
[JAS-8] - java.lang.String cannot be cast to java.lang.Integer
[JAS-9] - Exception in thread "main" java.lang.IllegalArgumentException:
URI has an authority component
0.10.0 New report parameter types: double, image (see usage).
New supported export formats: xls, xlsx, csv, ods, pptx, xhtml, xml.
Windows setup available.
--version shows included JasperReports version.
Fixed some minor bugs.
V 0.9.1 Bugfix release fixed problems with --jdbc-dir option.
V 0.9.0 First public release
Switched from Commons CLI to argparse4j.
Project documentation in generated site.
README uses markdown syntay, renamed to README.md.
Applied Apache License 2.0 to the software.
JasperStarter now starts via executable files in ./bin.
Windows binary jasperstarter.exe is generated with launch4j.
V 0.8.0 Switched to maven.
V 0.7.1 Fixed issue: duplicated option -n
V 0.7.0 new option --set-report-name to temporary change the reportname when
printing. This is useful if you want to change the printjob name for
printing to a pdf printer like cups-pfd which uses the document name as
part of the pdf name by default.
V 0.6.0 new options --printer-name --with-print-dialog --list-printers
printername matches .toLowercase().startWith() and spaces can be escaped
by the underline character _.
print dialog and viewer appear in system look an feel.
V 0.5.0 support for postgres, oracle and generic jdbc
password is no longer a required option except for oracle
jrprint file is stored in system temp dir and deleted after processing
new options --jdbc-dir, --debug, --keep-jrprint
file extension .jasper is added to input if omitted
output can be omitted or can be file or directory
V 0.4.0 jdbc drivers are loaded from jdbc dir
new parameter: db-type: none, mysql (none provides JREmptyDataSource()
for a non database report)
support for barcode4j
V 0.3.1 Bugfix: removed jasperreports-javaflow
added barbecue barcode lib
V 0.3.0 Print preview
nicer help message
package renamed
V 0.2.0 Print support added
Added exportformats html, odt
Added report parameter type date.
New parameter db-name - database name
V 0.1.0 First working version
Supports export to PDF, DOCX, RTF.
Simple report parameters of type string and int.
+201
View File
@@ -0,0 +1,201 @@
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "[]"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.
Copyright [yyyy] [name of copyright owner]
Licensed 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.
+11
View File
@@ -0,0 +1,11 @@
JasperStarter - Running JasperReports from command line
Copyright 2012, 2013, 2014, 2015 Cenote GmbH
This product includes software developed at:
https://sourceforge.net/projects/jasperreports/
https://github.com/tatsuhiro-t/argparse4j
The Apache Software Foundation (http://www.apache.org/)
For a detailed view please see dependency report in the documentation.
+231
View File
@@ -0,0 +1,231 @@
JasperStarter - Running JasperReports from command line
--------------------------------------------------------
JasperStarter is an opensource command line launcher and batch compiler for
[JasperReports][].
The official homepage is [jasperstater.cenote.de][].
It has the following features:
* Run any JasperReport that needs a jdbc, csv, xml, json, jsonql or empty datasource
* Use with any database for which a jdbc driver is available
* Run reports with subreports
* Execute reports that need runtime parameters. Any parameter whose class has
a string constructor is accepted. Additionally the following types are
supported or have special handlers:
* date, image (see usage), locale
* Optionally prompt for report parameters
* Print directly to system default or given printer
* Optionally show printer dialog to choose printer
* Optionally show printpreview
* Export to file in the following formats:
* pdf, rtf, xls, xlsMeta, xlsx, docx, odt, ods, pptx, csv, csvMeta, html, xhtml, xml, jrprint
* Export multiple formats in one commanding call
* Compile, print and export in one commanding call
* View, print or export previously filled reports (use jrprint file as input)
* Can compile a whole directory of .jrxml files.
* Integrate in non Java applications (for example PHP, Python)
* Binary executable on Windows
* Includes JasperReports so this is the only tool you need to install
* "Diskless" operation using stdin and stdout for input data and output.
Requirements:
* Java 1.8 or higher
* A JDBC 2.1 driver for your database
### Quickstart
* Download JasperStarter from [Sourceforge][].
* Extract the distribution archive to any directory on your system.
* Add the _./bin_ directory of your installation to your searchpath (on
Windows: invoke setup.exe).
* Put your jdbc drivers in the _./jdbc_ directory of your installation or
use _\--jdbc-dir_ to point to a different directory.
Invoke JasperStarter with _\-h_ to get an overview:
$ jasperstarter -h
Invoke JasperStarter with _process \-h_ to get help on the process command:
$ jasperstarter process -h
Example with reportparameters:
$ jasperstarter pr report.jasper -t mysql -u myuser -f pdf -H myhost \
-n mydb -o report -p secret -P CustomerNo=10 StartFrom=2012-10-01
Example with hsql using database type generic:
$ jasperstarter pr report.jasper -t generic -f pdf -o report -u sa \
--db-driver org.hsqldb.jdbcDriver \
--db-url jdbc:hsqldb:hsql://localhost
For more information take a look in the docs directory of the distibution
archive or read the [Usage][] page online.
### Python Integration using public API
JasperStarter exposes an API which can be used with [jpy][] to
provide direct access from Python:
#
# Load the JVM. See the jpy docs for details.
#
import jpyutil
jpyutil.init_jvm(jvm_maxmem='512M', jvm_classpath=['.../jasperstarter.jar'])
#
# Load the Java types needed.
#
import jpy
Arrays = jpy.get_type('java.util.Arrays')
File = jpy.get_type('java.io.File')
Report = jpy.get_type('de.cenote.jasperstarter.Report')
Config = jpy.get_type('de.cenote.jasperstarter.Config')
DsType = jpy.get_type('de.cenote.jasperstarter.types.DsType')
#
# Create the JasperStarter configuration. See Config.java for details.
#
config = Config()
config.setInput('jsonql.jrxml')
config.setOutput('contacts.pdf')
config.setDbType(DsType.json)
config.setDataFile(File('contacts.json'))
config.setJsonQuery('contacts.person')
config.setOutputFormats(Arrays.asList([]))
#
# Run the report. See Report.java for details.
#
instance = Report(config, File(config.getInput()))
instance.fill()
instance.exportPdf()
See the examples/python directory for a fuller example.
### Release Notes
See [Changes] for a history of changes.
#### Known Bugs
For upcoming issues see [Issues][]
### Feedback
Feedback is always welcome! If you have any questions or proposals, don't
hesitate to write to our [discussion][] forum.
If you found a bug or you are missing a feature, log into our [Issuetracker][]
and create a bug or feature request.
If you like the software you can write a [review][] :-)
### Development
The sourcecode is available at [bitbucket.org/cenote/jasperstarter][], the
project website is hosted at [Sourceforge][].
JasperStarter is build with [Maven][].
On Linux 64 bit the launch4j-maven-plugin may fail. In this case, may you need the following libs in a 32 bit version:
* z1
* ncurses5
* bz2-1.0
Install on Ubuntu 14.04 or above:
$ sudo apt-get install lib32z1 lib32ncurses5 lib32bz2-1.0
Install on Fedora 27 or above:
$sudo dnf install ncurses-compat-libs.i686
To get a distribution package run:
$ mvn package -P release
or if you build from the current default branch you better use:
$ mvn package -P release,snapshot
**Attention! You cannot execute** `target/jasperstarter.jar`
**without having it\'s dependencies in** `../lib` ! See **dev** profile below!
If you want to build the Windows setup.exe, you need to have _nsis_ in your
search path (works on linux too, you can find a compiled release in the
sourceforge download folder _build-tools_ for your convenience)
an add the **windows-setup** profile to your build:
$ mvn package -P release,windows-setup
or
$ mvn package -P release,windows-setup,snapshot
While developing you may want to have a quicker build. The **dev** profile
excludes some long running reports and the compressed archives. Instead it puts
the build result into _target/jasperstarter-dev-bin_.
$ mvn package -P dev
Now you can execute JasperStarter without IDE:
$ target/jasperstarter-dev-bin/bin/jasperstarter
or
$ java -jar target/jasperstarter-dev-bin/lib/jasperstarter.jar
During development you might want not to be annoyed by tests. So the following
options are useful:
$ mvn package -P dev -D skipTests
or
$ mvn package -P dev -D maven.test.failure.ignore=true
To run JasperStarter from within your IDE add _\--jdbc-dir jdbc_ to the argument
list of your run configuration. Otherwise you will get an error:
Error, (...)/JasperStarter/target/classes/jdbc is not a directory!
Put your jdbc drivers in the _./jdbc_ directory of the project to invoke
JasperStarter from within your IDE to call up a database based report.
### License
Copyright 2012-2015 Cenote GmbH.
Licensed 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.
[jasperstater.cenote.de]:http://jasperstarter.cenote.de/
[JasperReports]:http://community.jaspersoft.com/project/jasperreports-library
[Maven]:http://maven.apache.org/
[Sourceforge]:http://sourceforge.net/projects/jasperstarter/
[bitbucket.org/cenote/jasperstarter]:http://bitbucket.org/cenote/jasperstarter
[review]:http://sourceforge.net/projects/jasperstarter/reviews
[discussion]:http://sourceforge.net/p/jasperstarter/discussion/
[Issuetracker]:https://cenote-issues.atlassian.net/browse/JAS
[Usage]:http://jasperstarter.sourceforge.net/usage.html
[Issues]:https://cenote-issues.atlassian.net/browse/JAS
[Changes]:changes.html
[jpy]:https://github.com/bcdev/jpy
@@ -0,0 +1,26 @@
#!/bin/sh
# Copyright 2012 Cenote GmbH.
#
# Licensed 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.
## detect home folder
if(test -L "$0") then
auxlink=`ls -l "$0" | sed 's/^[^>]*-> //g'`
HOME_FOLDER=`dirname "$auxlink"`/..
else
HOME_FOLDER=`dirname "$0"`/..
fi
#SCRIPTPATH="$(dirname $0)"
java -jar "$HOME_FOLDER/lib/jasperstarter.jar" "$@"
Binary file not shown.
@@ -0,0 +1,2 @@
This is the jdbc drivers directory.
All jar files in this directory are added to the classpath.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.