You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by "Das, Kuntal" <Ku...@Schwab.com> on 2002/07/01 19:24:36 UTC

Excludes file problem !!

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:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Excludes file problem !!

Posted by Thomas Zander <za...@planescape.com>.
On Mon, Jul 01, 2002 at 10:24:36AM -0700, Das, Kuntal wrote:
> 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;
Turn these around so javac will find the jar (with the compiled classes) before
it will find the .java files to put in the dependency graph which it will
compile.

classpath="${build.dir}/oui.jar;${build.dir};

I think that should work.

You can try with a simple manual javac from the command line as well (after
setting the correct CLASSPATH).


-- 
Thomas Zander                                           zander@planescape.com
                                                 We are what we pretend to be

Re: Excludes file problem !!

Posted by Diane Holt <ho...@yahoo.com>.
Try running 'ant -verbose' to see what flags/args are being passed to
'javac'. If nothing jumps out at you, send the pertinent output.

Diane

=====
(holtdl@yahoo.com)



__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>