cloudstack-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Wido den Hollander <w...@widodh.nl>
Subject Re: Shell commands vs Native Java file handling
Date Tue, 02 Sep 2014 18:04:53 GMT


On 02-09-14 19:06, Mike Tutkowski wrote:
> If we could keep code like that all in Java, that would be my personal
> preference.
>

+1

Makes error handling (using Exception) a lot easier and cleaner.

Stay away from Shell if not required.

Wido

>
> On Tue, Sep 2, 2014 at 10:42 AM, David Bierce <david.bierce@appcore.com>
> wrote:
>
>> While investigating an issue with secondary storage templates, I noticed
>> all the file handling I came across shelled and execute things like mkdir,
>> rm, etc, etc.  With the migration to Java 7 is there still a reason to
>> continue that method of file handling or in the future could/should file
>> operations be handled by Java?
>>
>>
>> Thanks,
>> David Bierce
>>
>>
>>
>
>

Mime
View raw message