You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Vladimir Dejanovic <vl...@zemljasnova.net> on 2009/02/10 09:59:54 UTC

adding fop.jar to ant build file of appfuse app

Hi,

I am new to fop, ant and appfuse. I have a problem which is that I downloaded
fop.jar file from http://xmlgraphics.apache.org/fop/index.html out of bin
release, and I tried to add it to ant build file of my app which is based on
appfuse , but I get this error when I try to build my app


 package org.apache.fop.apps does not exist
    [javac] import org.apache.fop.apps.*;


I added this to my lib dir

[vdejanovic@iscdev lesnik]$ ls lib/fop-1/
fop.jar


this is part of code which I added to lib.properties file in lib dir

fop.version=1
fop.dir=${lib.dir}/fop-${fop.version}
fop.jar=${fop.dir}/fop.jar


and this is part which I added to build.xml

            <lib dir="${fop.dir}" includes="*.jar" excludes="*mock.jar"/>

I added last part inside build.xml in 

  <war destfile="${webapp.dist}/${webapp.war}" duplicate="preserve"
            webxml="${webapp.target}/WEB-INF/web.xml" compress="true">
            <fileset dir="${webapp.target}" excludes="**/web.xml"/>
            <metainf dir="${webapp.dist}" includes="context.xml"/>
 
Does any one have any idea what am I doing wrong ?

Thx


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Re: adding fop.jar to ant build file of appfuse app

Posted by Vladimir Dejanovic <vl...@zemljasnova.net>.
I fixed this problem , I found out that I need also to add this data to
properties.xml

        <pathelement location="${fop.jar}"/>
        <fileset dir="${fop.dir}" includes="*.jar"/>


I added this to several parts of properties.xml file for different path
values for different id values. And now I can compile my app :)




Vladimir Dejanovic wrote:
> 
> Hi,
> 
> I am new to fop, ant and appfuse. I have a problem which is that I
> downloaded
> fop.jar file from http://xmlgraphics.apache.org/fop/index.html out of bin
> release, and I tried to add it to ant build file of my app which is based
> on
> appfuse , but I get this error when I try to build my app
> 
> 
>  package org.apache.fop.apps does not exist
>     [javac] import org.apache.fop.apps.*;
> 
> 
> I added this to my lib dir
> 
> [vdejanovic@iscdev lesnik]$ ls lib/fop-1/
> fop.jar
> 
> 
> this is part of code which I added to lib.properties file in lib dir
> 
> fop.version=1
> fop.dir=${lib.dir}/fop-${fop.version}
> fop.jar=${fop.dir}/fop.jar
> 
> 
> and this is part which I added to build.xml
> 
>             <lib dir="${fop.dir}" includes="*.jar" excludes="*mock.jar"/>
> 
> I added last part inside build.xml in 
> 
>   <war destfile="${webapp.dist}/${webapp.war}" duplicate="preserve"
>             webxml="${webapp.target}/WEB-INF/web.xml" compress="true">
>             <fileset dir="${webapp.target}" excludes="**/web.xml"/>
>             <metainf dir="${webapp.dist}" includes="context.xml"/>
>  
> Does any one have any idea what am I doing wrong ?
> 
> Thx
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/adding-fop.jar-to-ant-build-file-of-appfuse-app-tp21929933p21931079.html
Sent from the FOP - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org