I solved the problem:
ant can't deal with absolute path in pathelement/location
the right basedir and relative path from there solves the problem
Thanx for your help
--- Juergen ---
Part of the build.xml:
<project basedir="/home/saar/project/mWare"
default="address"
name="ReportWizard"
>
<taskdef name="jasper_gen"
classname="org.jsaar.mware.report.JasperReportWizardAntTask"
>
<classpath>
<pathelement path="/opt/cayenne_1.1/lib/cayenne.jar" />
<pathelement path="/opt/active_logistics/lib/jdbc/informix/lib/ifxjdbc.jar" />
<pathelement path="/opt/active_logistics/lib/jdbc/postgresql/pg72jdbc2.jar" />
<pathelement location="base/bin" />
<pathelement location="BusinessObjects/bin" />
<pathelement location="BusinessObjects/repository" />
<pathelement location="tools/bin" />
<pathelement location="tools/etc" />
</classpath>
</taskdef>
...
Todd O'Bryan <toddobrya..ac.com> schrieb am 20.12.04 15:25:55:
>
> Here's what I have:
>
> <project name="interactive" default="compile" basedir=".">
> <property name="classes" location="${basedir}/context/WEB-INF/classes"
> />
> <property name="src" location="${basedir}/src" />
>
> <path id="classpath">
> <pathelement path="${classes}" />
> <fileset dir="${basedir}/context/WEB-INF/lib">
> <include name="*.jar"/>
> </fileset>
> </path>
>
> Don't see anything obvious except that I used the basedir property. If
> it's finding your classes, though, that isn't the problem.
>
> Todd
>
> On Dec 20, 2004, at 8:49 AM, Jürgen Saar wrote:
>
> > I addes just the path of the directory that contains cayenne.xml
> >
> >
> > <taskdef name="jasper_gen"
> >
> > classname="org.jsaar.mware.report.JasperReportWizardAntTask"
> >>
> > <classpath>
> > <pathelement
> > path="/opt/cayenne_1.1/lib/cayenne.jar" />
> > <pathelement
> > path="/opt/jsaar/lib/jdbc/informix/lib/ifxjdbc.jar" />
> > <pathelement
> > path="/opt/jsaar/lib/jdbc/postgresql/pg72jdbc2.jar" />
> > <pathelement location="base/bin" />
> > <pathelement location="business/bin" />
> > <pathelement location="tools/bin" />
> > <pathelement location="tools/etc" />
> > <pathelement
> > location="/home/jsaar/project/mware/repository" />
> > </classpath>
> > </taskdef>
> >
> >
> > Todd O'Bryan <toddobrya..ac.com> schrieb am 20.12.04 13:50:16:
> >>
> >> I've just started using Ant to auto-run Cayenne tasks and it does find
> >> cayenne.xml.
> >>
> >> Are you adding the whole path to cayenne.xml or the path to the
> >> directory that contains it? The latter should work.
> >>
> >> Todd
> >>
> >> On Dec 20, 2004, at 7:16 AM, Jürgen Saar wrote:
> >>
> >>> Hi,
> >>>
> >>> I'm just writing an ant task
> >>> for a wizard to generate some
> >>> JasperReport default reports for ObjEntities
> >>> based on Velocity.
> >>>
> >>> Ant has it's own ClassLoader and ResourceLocator,
> >>> so I have problems accessing cayenne.xml.
> >>>
> >>> If I add the path of cayenne.xml in the classpath definition in
> >>> build.xml
> >>> cayenne.xml is not found by the cayenne ResourceLocator.
> >>>
> >>> What helps is setting up a $CLASSPATH with the
> >>> path of cayenn.xml included and then call ant,
> >>> but I think there must be a better way.
> >>>
> >>> Any hints?
> >>> --- Juergen ---
__________________________________________________________
Mit WEB.DE FreePhone mit hoechster Qualitaet ab 0 Ct./Min.
weltweit telefonieren! http://freephone.web.de/?mc=021201
This archive was generated by hypermail 2.0.0 : Tue Dec 21 2004 - 02:34:45 EST