[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [soot] compiling multiple class files



Hi,
      thanks Feng.

But starting a process all the time, especially for large bunches of
classes, like Kaffe's Klasses.jar, is slow.

For whatever that was worth,

Regards,
--
Philippe Laporte                      Tel:     (415) 243-4055 ext 1011
Transvirtual Technologies, Inc.,      Fax:     (415) 243-4056
San Francisco, CA, USA.               Email:   philippe@transvirtual.com





Feng QIAN wrote:

> hi,
>
> Maybe the easiest way to do that is to write a script for processing
> classes one by one.
>
> e,g,. create a script file called 'sootdir':
>
>   #!/bin/bash
>
>   DIR=$1
>   shift
>
>   cd $DIR
>
>   for KlassFile in `echo *.class`
>   do
>     echo $KlassFile > tmp.name
>     Klass=`eval cut -f1 -d. tmp.name`
>     java soot.Main $* $Klass
>   done
>
> so you can use command 'sootdir tmp'.
>
> hope this helpful,
>
> feng