ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Wotziak" <daniel...@gmx.de>
Subject javac-tag is not ignored by ant
Date Mon, 22 Oct 2001 16:11:40 GMT
Hello,

I have written the following ant-script:

...
	<target name="compile">
		<mkdir dir="${mySession.class.dir}"/>

		<echo message="Compiling the ejb-source files from ${mySession.src.dir}"/>
		<echo message="Compiling the ejb-source files to ${mySession.class.dir}"/>

		<javac srcdir="${mySession.src.dir}" destdir="${mySession.class.dir}">
			<classpath path="${java.classpath}"/>
			<include name="${mySession.src.dir}/mySession.java"/>
			<include name="${mySession.src.dir}/mySessionBean.java"/>
			<include name="${mySession.src.dir}/mySessionHome.java"/>
		</javac>

		<echo message="Compiling finished."/>

	</target>
...


The output is as follows (debug-mode):

...
Complete build sequence is [compile]

compile:
     [echo] Compiling the ejb-source files from
E:\java/src/com/cryptis/jboss/se
ssionejb
     [echo] Compiling the ejb-source files to
E:\java/class/com/cryptis/jboss/se
ssionejb
FileSet: Setup file scanner in dir E:\java\src\com\cryptis\jboss\sessionejb
with
 patternSet{ includes:
[E:\java/src/com/cryptis/jboss/sessionejb/mySession.java,
 E:\java/src/com/cryptis/jboss/sessionejb/mySessionBean.java,
E:\java/src/com/cr
yptis/jboss/sessionejb/mySessionHome.java] excludes: [] }
     [echo] Compiling finished.

BUILD SUCCESSFUL
...


I want to compile all .java-files in the directory
e:\java\src\com\cryptis\jboss\sessionejb
to the directory e:\java\class\com\cryptis\jboss\sessionejb

The echo-messages are written to the screen but the src-files haven't been
compiled.
I am using ant1.4 with win2000 and jdk1.3.

Thanks for your help in advance.

Greetings

   Daniel



Mime
View raw message