ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Julian M. Savage" <jsav...@fisci.com>
Subject Re: a classpath task?
Date Tue, 07 Nov 2000 03:32:16 GMT
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" <jminne@webtaggers.com>
To: <ant-user@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
>
>
>
>
>
>
>


Mime
View raw message