intive-FDV / DynamicJasper

Dynamic Reports using Jasper Reports
http://intive-fdv.github.io/DynamicJasper/
GNU Lesser General Public License v3.0
242 stars 127 forks source link

DynamicJasper missing test folder when adding it with gradle dependency manager #43

Open esmat-hejazi opened 7 years ago

esmat-hejazi commented 7 years ago

hi, i have a problem with dynamicJasper. when i add dynamicJasper to my project with gradle using like: compile group: 'ar.com.fdvs', name: 'DynamicJasper', version: '5.0.10'

the downloaded library has not test folder so i get : cannot resolve ar.com.fdvs.dj.test.ReportExporter; because it cannot find dj.test and there is no such folder. I tried different versions and feven I've downloaded the jar file manually but it is the same. how do i use this library to get the full package?

juanalvarezg commented 7 years ago

the "test" folder is not part of the final jar, if you have DJ as a dependency you should not need such thing. Please re-check your project settings, you should have something like this:

compile group: 'ar.com.fdvs', name: 'DynamicJasper', version: '5.0.10'

--

Juan Manuel Alvarez Gimenez - CTO Office: +54 11 5239 9899, Cel: +54-9-11-4400-0852, Skype: juan.manuel.alvarez.gimenez, Connect me on: LINKEDIN http://ar.linkedin.com/in/jmalvarez FDVSOLUTIONS | Collective Innovation :: Avenida Belgrano 1580 2º piso C1093AAA , Buenos Aires, Argentina. www.fdvsolutions.com

This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. If you are not the intended recipient you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited.

2017-03-01 5:56 GMT-03:00 esmat-hejazi notifications@github.com:

hi, i have a problem with dynamicJasper. when i add dynamicJasper to my project with gradle using like: compile group: 'ar.com.fdvs', name: 'DynamicJasper', version: '5.0.10'

the downloaded library has not test folder so i get : cannot resolve ar.com.fdvs.dj.test.ReportExporter; because it cannot find dj.test and there is no such folder. I tried different versions and feven I've downloaded the jar file manually but it is the same. how do i use this library to get the full package?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/FDVSolutions/DynamicJasper/issues/43, or mute the thread https://github.com/notifications/unsubscribe-auth/AA23F4RKz9Dn-5IO6Q-EAzaxzcuL5XOOks5rhTKugaJpZM4MPYKl .

esmat-hejazi commented 7 years ago

thank you for your help. i have the same gradle setting as you said. But i was following the example of the below link which is on jasper web site: http://dynamicjasper.com/docs/current/xref-test/ar/com/fdvs/dj/test/domain/chart/builder/Bar3DChartBuilderTest.html

and in this example there is a base class: import ar.com.fdvs.dj.test.BaseDjReportTest; you can see on line 68.

as you see, it is using the test folder!

for example in the below method

protected void exportReport() throws Exception { ReportExporter.exportReport(jp, System.getProperty("user.dir")+ "/target/reports/" + this.getClass().getName() + ".pdf"); exportToJRXML(); }

ReportExporter is unknown because it is in test folder which is not in the dynamic jasper jar file .

juanalvarezg commented 7 years ago

Because this is a test itself!

El 2 mar. 2017 3:51 AM, "esmat-hejazi" notifications@github.com escribió:

thank you for your help. i have the same gradle setting as you said. But i was following the example of the link below which is on jasper web site: http://dynamicjasper.com/docs/current/xref-test/ar/com/fdvs/ dj/test/domain/chart/builder/Bar3DChartBuilderTest.html

and in this example there is a base class: import ar.com.fdvs.dj.test.BaseDjReportTest; you can see on line 68.

as you see, it is using the test folder!

for example in the method below

protected void exportReport() throws Exception { ReportExporter.exportReport(jp, System.getProperty("user.dir")+ "/target/reports/" + this.getClass().getName() + ".pdf"); exportToJRXML(); }

ReportExporter is unknown because it is in test folder which is not in the dynamic jasper jar file .

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/FDVSolutions/DynamicJasper/issues/43#issuecomment-283571774, or mute the thread https://github.com/notifications/unsubscribe-auth/AA23F0uLIJYg3jjf9De6V75QUzcc8bxEks5rhmbvgaJpZM4MPYKl .

esmat-hejazi commented 7 years ago

This is what they said above those example!

**> Try the examples first
> 
> The source code comes with examples ready to run (you need Maven 2 to build the source code). below a listing of some TestCases that are a good starting point.**

apparently they are **not** a good starting point!
Thank you anyway.