ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Will Dyke <will.d...@bbc.co.uk>
Subject RE: javac-tag is not ignored by ant
Date Mon, 22 Oct 2001 16:26:53 GMT
Remove the ${mySession.src.dir}/ from the includes, 
as ant already determines this from the srcdir
attributes. 

The following should work:

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

Will

> -----Original Message-----
> From: Daniel Wotziak [mailto:daniel.wk@gmx.de]
> Sent: 22 October 2001 17:12
> To: ant-user@jakarta.apache.org
> Subject: javac-tag is not ignored by ant
> 
> 
> 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
> 
> 


This e-mail, and any attachment, is confidential. If you have received
it in error, please delete it from your system, do not use or disclose
the information in any way, and notify me immediately. The contents of
this message may contain personal views which are not the views of the
BBC, unless specifically stated.

Mime
View raw message