ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Das, Kuntal" <Kuntal....@Schwab.com>
Subject Excludes file problem !!
Date Mon, 01 Jul 2002 17:24:36 GMT
Hi all,
	I'm trying not exclude directory structure being compiled, and
instead use a compiled jar file of that directory structure. Here's the
sample build.xml file which I'm trying to compile : 

<target name="build_wml" depends="testParam, init">
	<javac srcdir="${build.dir}"
		destdir="${build.dir}"
	
classpath="${build.dir};${build.dir}/oui.jar;${build.dir}/dmtcl.jar;${build.
dir}/jug.jar;${build.dir}/cos.jar;${build.dir}/xerces.jar;${build.dir}/servl
et.jar;${build.dir}/vbjorb.jar;${build.dir}/vbjapp.jar"
		debug="${debug}"
		includes="com/Schwab/Mt/views/Wm./AboutDeck.java,
			com/Schwab/Mt/views/Wm./AccountWizDeck.java,
	
com/Schwab/Mt/views/Wm./ActivateConfirmationDeck.java
		excludes="com/openwave/**"
	/>
</target>

Almost all the files in the com/Schwab/dmt/views/wml folder imports a
package called com.openwave.oui.rendering.*, and the class files in that
package and all other packages within com.openwave.* r included in the
${build.dir}/oui.jar file. But there is also an expanded version of the
oui.jar file which contains the source files in the folder
com/openwave.oui.*.* . I want both the jar files and the expanded source
file in the ${build.dir} folder, since in our later releases we will be
removing the jar file, and use the class files in the com/openwav folder
instead.

But everytime I try to compile I get the following error : 

build_wml:
    [javac] Compiling 93 source files to
C:\Experiments\kdas1\DomesticWebPhone\s
ervletsrc
    [javac]
C:\Experiments\kdas1\DomesticWebPhone\servletsrc\com\openwave\oui\fr
amework\WaomComposite.java:2: package com.openwave.oui.rendering does not
exist
    [javac] import com.openwave.oui.rendering.*;
    [javac] ^
    [javac]
C:\Experiments\kdas1\DomesticWebPhone\servletsrc\com\openwave\oui\fr
amework\WaomElement.java:3: package com.openwave.oui.rendering does not
exist
    [javac] import com.openwave.oui.rendering.*;
    [javac] ^
    [javac]
C:\Experiments\kdas1\DomesticWebPhone\servletsrc\com\openwave\oui\fr
amework\DeviceContext.java:5: package com.openwave.oui.rendering does not
exist
    [javac] import com.openwave.oui.rendering.*;
    [javac] ^
    [javac] 3 errors

BUILD FAILED

=> Although I excluded the com/openwave/* files to be compiled in the
target, but ant is stil ltrying to compile the source files within the
com/openwave package !! I don't care about successful compilation of the
com/openwave/*.* folder, since that is not supposed to be compiled at all !!
And as far as the import statements in the java files in the
com/schwab/dmt/views/wml folder(which is probably invoking the compilation
process of the com/openwave/*.* package), I have teh oui.jar file in the
classpath.

=> My aim is to exclude the com/openwave/*.* folder to be compiled, and
instead use the oui.jar file for the compilation of the wml folder.

Please help !!

Thanks,
Kuntal Das
Charles Schwab & Co., Inc.
Global Wireless Technology
215 Fremont, SF
Email : kuntal.das@schwab.com
Phone : (415)667-7064
Live life to the brim.................
----------------------------------------------------------------------------
-------- 
WARNING: All e-mail sent to or from this address will be received 
by the Charles Schwab corporate e-mail system and is subject to archival
and review by someone other than the intended recipient.



--
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