You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by David Kavanagh <da...@dotech.com> on 2004/04/05 05:51:30 UTC
hotswap almost there
I have a small jar file I can send around if people want it. It contains
2 classes that make up the <hotswap> task.
The one problem I still have is file selection.
I can do something like this;
<hotswap verbose="true" port="9000">
<fileset dir="build/classes" includes="**/Hot*.class"/>
<fileset dir="build/classes" includes="**/taskdefs"/>
</hotswap>
This selects files and directories. Using the <tstamp> and
<fileset><date/></fileset> construct would work if the granularity of
those operations were fine enough.
I tried using <outofdate>, but it returns a list of classes with
absolute paths. My task needs to know the base directory of the classes
in order to derrive the fully qualified package name from the class file
name. (i.e c:/jdk/classes/java/awt/Graphics.class" would become
"java.awt.Graphics").
Any ideas? I could just require the base class dir be passed into the
task. That might work, but I thought it would be less flexible in the
long run.
David
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org