I am running jdk1.3 for Linux, and when I type "javac" at the command prompt, 
I get the following:

>>
Usage: javac <options> <source files>
where possible options include:
  -g                        Generate all debugging info
  -g:none                   Generate no debugging info
  -g:{lines,vars,source}    Generate only some debugging info
  -O                        Optimize; may hinder debugging or enlarge class 
file
  -nowarn                   Generate no warnings
  -verbose                  Output messages about what the compiler is doing
  -deprecation              Output source locations where deprecated APIs are 
used
  -classpath <path>         Specify where to find user class files
  -sourcepath <path>        Specify where to find input source files
  -bootclasspath <path>     Override location of bootstrap class files
  -extdirs <dirs>           Override location of installed extensions
  -d <directory>            Specify where to place generated class files
  -encoding <encoding>      Specify character encoding used by source files
  -target <release>         Generate class files for specific VM version 
<<

As you can see, -sourcepath is valid under JDK1.3 (and, the build certainly 
works for me).  So, I'm guessing that Ant 1.3 is dependent on you using 
JDK1.3 or greater.  You could try the above test and see what the proper 
usage for javac is on your machine.  Is there anything preventing you from 
using JDK 1.3?  If so, I would suggest rewriting the build.xml file for your 
purposes (it's wouldn't be hard to write an <exec task that fired up javac 
with the appropriate command line entries - ugly, sure, but not hard).

-Mike

On Thursday 19 July 2001 19:07, Micheon Eubanks wrote:
> I am running 'build.sh install'  and I am receiving the error message:
> compile:
>     [javac] Compiling 150 source files to
> /home/ajae/jmeter/jmeter6/jakarta-jmeter/bin/classes
>     [javac] javac: invalid flag: -sourcepath
>     [javac] use: javac
> [-g][-O][-debug][-depend][-nowarn][-verbose][-classpath
> path][-nowrite][-deprecation][-d dir][-J<runtime flag>] file.java...
>
> BUILD FAILED
>
> /home/ajae/jmeter/jmeter6/jakarta-jmeter/build.xml:72: Compile failed,
> messages should have been provided.
>
> I am using java 1.2.2 and xerces.jar on apache1.6.
>
> Can someone help me with this?
>
> Micheon
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

-- 
Mike Stover
[EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to