ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bmichel...@techies.com
Subject ant and -sourcepath error (newbie question)
Date Thu, 14 Sep 2000 22:50:51 GMT
Hello,
Ive been unable to successfully compile using ant.  The call to javac errors
on the -sourcepath option.  When I execute a batch file with the settings
from ant -verbose, it compiles.

Any help is greatly appreciated,
Brian

OS: WinNt
jdk: 1.2.2

_build.xml_

<project name="foo2" default="compile" basedir=".">

	<!-- set global proterties for this build -->
	<property name="src" value="." />
	<property name="build" value="build" />
	
	<target name="prepare">
		<!-- Create the build directory structure used by compile
-->
		<mkdir dir="${build}" />
	</target>
	
	<target name="compile" depends="prepare">
		<!-- Compile the java code from ${src} into ${build} -->
		<javac srcdir="${src}" destdir="${build}" />
	</target>
</project>


_ant output_

Build sequence for target `compile' is [prepare, compile]
Complete build sequence is [prepare, compile]
    [javac] Compiling D:\VisualCafeEE\Projects\foo2\Controller.java because
clas
s file D:\VisualCafeEE\Projects\foo2\build\Controller.class does not exist
    [javac] Compiling D:\VisualCafeEE\Projects\foo2\HelloWorld.java because
clas
s file D:\VisualCafeEE\Projects\foo2\build\HelloWorld.class does not exist
    [javac] Compiling D:\VisualCafeEE\Projects\foo2\LoginBean.java because
class
 file D:\VisualCafeEE\Projects\foo2\build\LoginBean.class does not exist
    [javac] Compiling D:\VisualCafeEE\Projects\foo2\StateBean.java because
class
 file D:\VisualCafeEE\Projects\foo2\build\StateBean.class does not exist
    [javac] Compiling 4 source files to D:\VisualCafeEE\Projects\foo2\build
    [javac] Using classic compiler
    [javac] Compilation args: -d D:\VisualCafeEE\Projects\foo2\build
-classpath
D:\VisualCafeEE\Projects\foo2\build;D:\lib\jaxp\jaxp.jar;D:\lib\jaxp\parser.
jar;
D:\lib\jakarta-ant\lib\ant.jar;D:\VisualCafeEE\Java\Lib;D:\VisualCafeEE\Java
\Lib
\SYMCLASS.ZIP;D:\VisualCafeEE\Java\Lib\CLASSES.ZIP;D:\VisualCafeEE\Java\Lib\
COLL
ECTIONS.ZIP;D:\VisualCafeEE\Java\Lib\ICEBROWSERBEAN.JAR;D:\VisualCafeEE\Java
\Lib
\SYMTOOLS.JAR;D:\VisualCafeEE\JFC\SWINGALL.JAR;D:\VisualCafeEE\Bin\Component
s\SF
C.JAR;D:\VisualCafeEE\Bin\Components\SYMBEANS.JAR;D:\VisualCafeEE\Java\Lib\D
BAW.
ZIP;D:\VisualCafeEE\Bin\Components\DBAW_AWT.JAR;D:\VisualCafeEE\Bin\Componen
ts\D
atabind.JAR;D:\VisualCafeEE\Java\Lib\ERADTOOLS.JAR;D:\VisualCafeEE\Java\Lib\
ERAD
PUBLIC.JAR;D:\VisualCafeEE\Java\Lib\servlet.jar;D:\VisualCafeEE\Bin\Componen
ts\t
emplates.jar;D:\VisualCafeEE\Java\Lib\javax_ejb.ZIP;D:\VisualCafeEE\Java\Lib
\jnd
i.jar;D:\VisualCafeEE\Bin\Components\vcejbwl.jar;D:\VisualCafeEE\Bin\sb;D:\V
isua
lCafeEE\Bin\sb\classes\sb.jar;D:\VisualCafeEE\Projects\foo2;D:\lib\jakarta-a
nt\l
ib\jaxp.jar;D:\lib\jakarta-ant\lib\parser.jar;D:\VisualCafeEE\Java2\lib\tool
s.ja
r -sourcepath D:\VisualCafeEE\Projects\foo2
    [javac] Files to be compiled:
    D:\VisualCafeEE\Projects\foo2\Controller.java
    D:\VisualCafeEE\Projects\foo2\HelloWorld.java
    D:\VisualCafeEE\Projects\foo2\LoginBean.java
    D:\VisualCafeEE\Projects\foo2\StateBean.java

    [javac] javac: invalid flag: -sourcepath
    [javac] use: javac
[-g][-O][-debug][-depend][-nowarn][-verbose][-classpath p
ath][-nowrite][-deprecation][-d dir][-J<runtime flag>] file.java...

BUILD FAILED

build.xml:14: Compile failed

Mime
View raw message