netbeans ant task classpathref reference not found

L

lionelv

Adding the following to build.xml

<taskdef
name="cup"
classname="java_cup.anttask.CUPTask"
classpathref="${basedir}\jars\java_cup_11a.jar"
/>


Produces the error:

C:\Documents and Settings\Vandenbergl\Tool\build.xml:85: Reference C:
\Documents and Settings\Vandenbergl\Tool\jars\java_cup_11a.jar not
found.

Yet the path it reports as not found is correct.

Can anyone tell me what Netbeans actually wants here?

Thanks

Lionel.
 
?

=?ISO-8859-1?Q?Arne_Vajh=F8j?=

Adding the following to build.xml

<taskdef
name="cup"
classname="java_cup.anttask.CUPTask"
classpathref="${basedir}\jars\java_cup_11a.jar"
/>


Produces the error:

C:\Documents and Settings\Vandenbergl\Tool\build.xml:85: Reference C:
\Documents and Settings\Vandenbergl\Tool\jars\java_cup_11a.jar not
found.

Yet the path it reports as not found is correct.

Can anyone tell me what Netbeans actually wants here?

As I remember it then the classpath attribut point to
a classpath like a jar file but a classpathref points
to a logical name containing a classpath defined
previously.

Try:

classpath="${basedir}\jars\java_cup_11a.jar"

Arne
 
L

lionelv

Arne said:
As I remember it then the classpath attribut point to
a classpath like a jar file but a classpathref points
to a logical name containing a classpath defined
previously.

Try:

classpath="${basedir}\jars\java_cup_11a.jar"

You nailed it. Thanks.

Lionel.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,764
Messages
2,569,564
Members
45,039
Latest member
CasimiraVa

Latest Threads

Top