ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: compiling and creating jars ....
Date Wed, 30 Jan 2002 12:07:11 GMT
I took your build file, removed the classpath attribute from javac
(you don't need it, but it won't do any harm), and removed the space
from the filename in the echo task:

Buildfile: rose.xml

init:

ASimpleHelloObject:
     [echo] Wrote ASimpleHelloObject.java

compile:
    [javac] Compiling 1 source file to /tmp
     [echo] in the compile block after the destdir

run:
     [echo] Before the classpath
     [java] ASimpleHelloObject.main was called
     [echo] Ant appears to be successfully installed

BUILD SUCCESSFUL
Total time: 2 seconds

In the example you've posted, <javac> won't compile anything as the
name of your java file doesn't match your include pattern.  After
removing the space it should work.

Stefan

--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message