Jasper dependency jar

87 views
Skip to first unread message

Erdi kh

unread,
Dec 20, 2016, 4:04:38 AM12/20/16
to Grails Dev Discuss
Hello. I`m working in grails 3.1.9. I want to add dependency jasper jar that contains below (named -> 'time_new_roman.jar'): 

time_new_roman.jar
     - Fonts 
     - jasperreports_extension.properties

fonts - directory contains
  1. fontsfamily1482215644802.xml - file 

          <?xml version="1.0" encoding="UTF-8"?>
         <fontFamilies>

         <fontFamily name="Times New Roman">
            <normal><![CDATA[fonts/times.ttf]]></normal>
            <bold><![CDATA[fonts/timesbd.ttf]]></bold>
            <italic><![CDATA[fonts/timesi.ttf]]></italic>
            <boldItalic><![CDATA[fonts/timesbi.ttf]]></boldItalic>
            <pdfEmbedded><![CDATA[true]]></pdfEmbedded>
        </fontFamily>
       </fontFamilies>

    2.  times.ttf, timesbd.ttf, timesi.ttf



 jasperreports_extension.properties contains     
            net.sf.jasperreports.extension.registry.factory.fonts=net.sf.jasperreports.engine.fonts.SimpleFontExtensionsRegistryFactory
            net.sf.jasperreports.extension.simple.font.families.ireportfamily1482215644802=fonts/fontsfamily1482215644802.xml




then created 'lib' folder under webapp where copied 'time_new_roman.jar' into created directory.

 in build.gradle added 'compile files("lib/times_new_roman.jar")'

but when running it coudln`t take that font. help me.










José Vilmar Estácio de Souza

unread,
Dec 20, 2016, 4:22:13 AM12/20/16
to grails-de...@googlegroups.com

Hi.


Did you try to unzip the generated war to confirm that the desired jar was included?
Also did you check the structure of your jar file?

In my case I have a jar file with a fonts directory and the jasperreports_extension.properties
 file.
--
You received this message because you are subscribed to the Google Groups "Grails Dev Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to grails-dev-disc...@googlegroups.com.
To post to this group, send email to grails-de...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/grails-dev-discuss/238e7bd9-8b0d-407a-80b7-76fac7d4c688%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
José
        Vilmar, Telefones: 21 2555-2650 e 21 98868-0859, Skype: jvilmar
Message has been deleted

Erdi kh

unread,
Dec 20, 2016, 5:02:16 AM12/20/16
to Grails Dev Discuss
Yes i checked structure of jar. in my opinion grails not compile it. i want to know is it correct way dependency external jar  ? 

Erdi kh

unread,
Dec 20, 2016, 9:15:14 PM12/20/16
to Grails Dev Discuss, vil...@informal.com.br
Attached my pdf. 
To unsubscribe from this group and stop receiving emails from it, send an email to grails-dev-discuss+unsub...@googlegroups.com.
Parameter Example.pdf
Reply all
Reply to author
Forward
0 new messages