You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by John Minne <jm...@webtaggers.com> on 2000/11/06 23:49:36 UTC

a classpath task?

 hey all,

I sent this a bit ago, but I didn't get it through mailing list, so I'm
guessing it's not going out right or something.

I am getting the error:  "Could not create task of type classpath because I
can't find it in the list task class definitions."

I didn't think that classpath is considered a task...

ant -version gives: "Ant version 1.2 compiled on October 26 2000"

my code is:

 <target name="compile" depends="prepare">
    <javac srcdir="src" destdir="${deploy.home}/WEB-INF/classes" debug="on"
optimize="off" deprecation="off">
            <classpath>
              <path refid="mb2.class.path"/> 
              <pathelement location="${deploy.home}/WEB-INF/classes"/>
            </classpath>
    </javac>
  </target>

this seems to be inaccordance with the manual:

<target ... >
    <javac ...>
      <classpath>
        <pathelement location="lib/" />
        <pathelement path="${java.class.path}/" />
        <pathelement path="${additional.path}" />
      </classpath>
    </javac>
  </target>

any suggestions? 

thank you very much,

-minne





John Minne
High Quality Assurance  Engineer
WebTaggers 

6850 Austin Center Blvd.		p. 512-791-3457
Suite 329-B			o. 512-794-0804
 Austin, TX 78731			e. jminne@webtaggers.com







Re: a classpath task?

Posted by "Julian M. Savage" <js...@fisci.com>.
John,

I'm not an expert, so I'm not 100% sure what you're trying to do, but it
looks like you want to use a previously defined classpath by reference. This
is what I do at one point in my build file, and it works with my version of
ant (which is from before 1.2 was released):

                        <classpath refid="default.classpath"/>
                        <classpath id="test.classpath">
                                <pathelement location="${build.classes}"/>
                        </classpath>

So maybe in your case something like this would work:
             <classpath refid="mb2.class.path"/>
             <classpath>
               <pathelement location="${deploy.home}/WEB-INF/classes"/>
             </classpath>
Julian.

----- Original Message -----
From: "John Minne" <jm...@webtaggers.com>
To: <an...@jakarta.apache.org>
Sent: Tuesday, November 07, 2000 7:49 AM
Subject: a classpath task?


> hey all,
>
> I sent this a bit ago, but I didn't get it through mailing list, so I'm
> guessing it's not going out right or something.
>
> I am getting the error:  "Could not create task of type classpath because
I
> can't find it in the list task class definitions."
>
> I didn't think that classpath is considered a task...
>
> ant -version gives: "Ant version 1.2 compiled on October 26 2000"
>
> my code is:
>
>  <target name="compile" depends="prepare">
>     <javac srcdir="src" destdir="${deploy.home}/WEB-INF/classes"
debug="on"
> optimize="off" deprecation="off">
>             <classpath>
>               <path refid="mb2.class.path"/>
>               <pathelement location="${deploy.home}/WEB-INF/classes"/>
>             </classpath>
>     </javac>
>   </target>
>
> this seems to be inaccordance with the manual:
>
> <target ... >
>     <javac ...>
>       <classpath>
>         <pathelement location="lib/" />
>         <pathelement path="${java.class.path}/" />
>         <pathelement path="${additional.path}" />
>       </classpath>
>     </javac>
>   </target>
>
> any suggestions?
>
> thank you very much,
>
> -minne
>
>
>
>
>
> John Minne
> High Quality Assurance  Engineer
> WebTaggers
>
> 6850 Austin Center Blvd. p. 512-791-3457
> Suite 329-B o. 512-794-0804
>  Austin, TX 78731 e. jminne@webtaggers.com
>
>
>
>
>
>
>


RE: a classpath task?

Posted by Chris Todd <ch...@christophertodd.com>.
John-

I've received all three copies of your post.  Unfortunately, I do not know
the answer to your question.  I just wanted to let you know that your posts
_have_ been received by the list.

Chris Todd

>-----Original Message-----
>From: John Minne [mailto:jminne@webtaggers.com]
>Sent: Monday, November 06, 2000 5:50 PM
>To: ant-user@jakarta.apache.org
>Subject: a classpath task?
>
>
> hey all,
>
>I sent this a bit ago, but I didn't get it through mailing list, so I'm
>guessing it's not going out right or something.
>
>I am getting the error:  "Could not create task of type classpath because I
>can't find it in the list task class definitions."
>
>I didn't think that classpath is considered a task...
>
>ant -version gives: "Ant version 1.2 compiled on October 26 2000"
>
>my code is:
>
> <target name="compile" depends="prepare">
>    <javac srcdir="src" destdir="${deploy.home}/WEB-INF/classes" debug="on"
>optimize="off" deprecation="off">
>            <classpath>
>              <path refid="mb2.class.path"/>
>              <pathelement location="${deploy.home}/WEB-INF/classes"/>
>            </classpath>
>    </javac>
>  </target>
>
>this seems to be inaccordance with the manual:
>
><target ... >
>    <javac ...>
>      <classpath>
>        <pathelement location="lib/" />
>        <pathelement path="${java.class.path}/" />
>        <pathelement path="${additional.path}" />
>      </classpath>
>    </javac>
>  </target>
>
>any suggestions?
>
>thank you very much,
>
>-minne
>
>
>
>
>
>John Minne
>High Quality Assurance  Engineer
>WebTaggers
>
>6850 Austin Center Blvd.		p. 512-791-3457
>Suite 329-B			o. 512-794-0804
> Austin, TX 78731			e. jminne@webtaggers.com
>
>
>
>
>
>
>
>