> Thanks to everyone who wrote back! FWIW, the simplest solution for my
> purposes turned out to be the addition of the following line:
>
> Markus Fritz wrote:
> >
> > Just use
> >
> > vpath %.class $(ROOT)/classes
> >
> > in your makefile
>
>
> Cheers,
> -Armen
>
Please, Just out
Thanks to everyone who wrote back! FWIW, the simplest solution for my
purposes turned out to be the addition of the following line:
Markus Fritz wrote:
>
> Just use
>
> vpath %.class $(ROOT)/classes
>
> in your makefile
Cheers,
-Armen
>
> Armen Yampolsky wrote:
> >
> > I have a p
Armen Yampolsky wrote:
>
> I have a problem with this approach and using make, (probably because
> I'm not using make correctly), in that if I use the -d option and use a
> separate .class directory tree, make doesn't recognize the up-to-date
> files there and recompiles everything anyway. I can
Just use
vpath %.class $(ROOT)/classes
in your makefile
Armen Yampolsky wrote:
>
> I have a problem with this approach and using make, (probably because
> I'm not using make correctly), in that if I use the -d option and use a
> separate .class directory tree, make doesn't recognize th
Keith T. Garner wrote:
> >
> > On Mon, Sep 14, 1998 at 07:17:17, David Warnock said:
> > > I thought I should be able to connect "find . -name *.class" to
> "rm"
> > > somehow using redirection or pipes but cannot get it to work.
> >
> > You were very close to one possible solution :)
> >
> > find
David Warnock wrote:
>
> Paul Reavis wrote:
>
> > All of which is more complicated than my favorite method, which is to
> > specify a separate .class file directory with the "-d" option (javac or
> > jikes); then it's just
> >
> > rm -r classes\*
>
> Ok, this is neat. Do I get a complete duplic
You didn't specify whether you wanted an easy way or a hard way. If
you want a hard way, hack the following recursive perl script to only
remove *.class.
#!/usr/local/bin/perl
use English;
sub delete_directory_tree {
my($dir) = shift;
my($path);
unless (opendir(DIR, $dir)) {
You can use xargs to construct a list of files for rm to delete. This
should work:
find ./ -name '*.class' -print | xargs rm
On Mon, 14 Sep 1998, David Warnock wrote:
> Hi,
>
> I am using Jikes 0.37 and whilst I trust it's -depends option I like to
> delete all class files prior to building
Paul Reavis wrote:
> All of which is more complicated than my favorite method, which is to
> specify a separate .class file directory with the "-d" option (javac or
> jikes); then it's just
>
> rm -r classes\*
Ok, this is neat. Do I get a complete duplicate of my source directories
for the clas
Keith T. Garner wrote:
>
> On Mon, Sep 14, 1998 at 07:17:17, David Warnock said:
> > I thought I should be able to connect "find . -name *.class" to "rm"
> > somehow using redirection or pipes but cannot get it to work.
>
> You were very close to one possible solution :)
>
> find . -name *.clas
Keith T. Garner wrote:
On Mon, Sep 14, 1998 at 07:17:17, David Warnock said:
> I thought I should be able to connect "find . -name *.class" to "rm"
> somehow using redirection or pipes but cannot get it to work.
You were very close to one possible solution :)
find . -name *.class | xargs rm
xargs
You almost have it. Using find, it's something like
find . -name *.class -exec rm {} ;
find substitutes {} with the filename.
Directory trees worked much better under VAX/VMS.
> X-POP3-Rcpt: james@fattire
> Sender: [EMAIL PROTECTED]
> Date: Mon, 14 Sep 1998 19:17:17 +
> From: Da
On Mon, Sep 14, 1998 at 07:17:17, David Warnock said:
> I thought I should be able to connect "find . -name *.class" to "rm"
> somehow using redirection or pipes but cannot get it to work.
You were very close to one possible solution :)
find . -name *.class | xargs rm
xargs is a wonderful progr
You can do something like this:
find . -name "*.class" -exec rm {} \;
This will find all the class files (including the sub-directories) and
remove them.
Nishi
--People who live in windowed environments shouldn't cast pointers--
mailto:[EMAIL PROTECTED] http://www.c3ipros.com/nkapoor
---
14 matches
Mail list logo