It is a reference to a path defined somewhere else in the build.xml
file.  It is typically used when a classpath or a path has to be used
in several places in the file.  You can find the doc for this at

http://ant.apache.org/manual/index.html

Click on the Concept and Types link and then click on Path-like Structures.

Christian

On 9/12/07, Stanczak Group <[EMAIL PROTECTED]> wrote:
> I get this. What's this refid for?
> build.xml:91: Reference cp not found.
>
> klaasjan elzinga wrote:
> > My ant script looks like:
> >                                 <taskdef name="openjpac"
> > classname="org.apache.openjpa.ant.PCEnhancerTask">
> >                                     <classpath refid="cp"/>
> >                                 </taskdef>
> >                                 <openjpac
> > directory="${basedir}/target/jpa-classes">
> >                                     <classpath refid="cp"/>
> >                                     <fileset dir="${basedir}/src/main/java">
> >                                         <include
> > name="org/kje/mailinglist/model/**.java"/>
> >                                     </fileset>
> >                                 </openjpac>
> >                                 <copy
> > todir="${basedir}/target/classes" overwrite="true" verbose="true">
> >                                     <fileset
> > dir="${basedir}/target/jpa-classes"/>
> >                                 </copy>
> >
> > It generates the enhances classes to target/jpa-classes which in turn
> > are copied to their final location. The var cp contains the classpath.
> > (with srces and openjpa etc).
> >
> > KlaasJan
> >
> > On 9/11/07, Stanczak Group <[EMAIL PROTECTED]> wrote:
> >
> >> Does anyone have an example of using the enhancer in a NB's ant task. I
> >> can't get the one that the docs show to work. I'm not sure what I'm
> >> doing wrong. Keeps saying:
> >>
> >> <openjpa-1.0.0-r420667:568756 fatal user error>
> >> org.apache.openjpa.util.MetaDataException: MetaDataFactory could not be
> >> configured (conf.newMetaDataFactoryInstance() returned null). This might
> >> mean that no configuration properties were found. Ensure that you have a
> >> META-INF/persistence.xml file, that it is available in your classpath,
> >> or that the properties file you are using for configuration is
> >> available. If you are using Ant, please see the <properties> or
> >> <propertiesFile> attributes of the task's nested <config> element. This
> >> can also occur if your OpenJPA distribution jars are corrupt, or if your
> >> security policy is overly strict.
> >>
> >> NB's 5.5.1
> >>
> >> --
> >> Justin Stanczak
> >> Stanczak Group
> >> 812-735-3600
> >>
> >> "All that is necessary for the triumph of evil is that good men do 
> >> nothing."
> >> Edmund Burke
> >>
> >>
> >>
> >
> >
>
> --
> Justin Stanczak
> Stanczak Group
> 812-735-3600
>
> "All that is necessary for the triumph of evil is that good men do nothing."
> Edmund Burke
>
>

Reply via email to