ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dominique Devienne" <DDevie...@lgc.com>
Subject RE: Problem with classfileset
Date Fri, 28 Jan 2005 22:06:58 GMT
> From: Rhino [mailto:rhino1@sympatico.ca]
> 
> <classfileset id="reqdClasses" dir="${bin.dir}">
>   <root classname="mydomain.foo.Foo"/>
> </classfileset>
> 
> When I run it, the jar contains only three class files (and a
manifest):
> 
> mydomain.foo.Foo.class
> mydomain.foo.FooConstants.class
> mydomain.foo.FooPreferences.class
> 
> mydomain.foo.Foo is indeed the main class of the program and it is
indeed
> dependent on mydomain.foo.FooConstants and
mydomain.foo.FooPreferences.
> 
> Unfortunately, none of the classes that *they* depend on are present
in
> the jar. There are quite a few of them, all belonging to packages
starting
> with mydomain.common.

But are the missing dependent classes in ${bin.dir}?
And are they in the correct directory, i.e. mydomain.common.Foo
can be found in ${bin.dir}/mydomain/common/Foo.class?

Alternatively, you could use a <rootfileset> like the doc shows
to force including the missing classes, but my guess is that the classes
are not in ${bin.dir} for now. --DD

PS: I myself used <genjar> a long time ago to do what you're trying to
do, but I don't know if that task/project still exists.

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


Mime
View raw message