Ignore:
Timestamp:
2012-10-02T05:43:31+13:00 (12 years ago)
Author:
davidb
Message:

Some mods that resulted from testing under Cygwin

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gs2-extensions/music-ir-src/trunk/perllib/plugins/jSongMinerMetadata.pm

    r22439 r26276  
    228228   
    229229    # Input and Output files to use are stored in the batch_file
    230     my $jaudio_cmd = "java -Xmx1024M -jar jAudio.jar $convert_options -b \"$batch_file_path\"";
     230    my $batch_file_path_os = $batch_file_path;
     231
     232    if ($^O eq "cygwin") {
     233        $batch_file_path_os = `cygpath -w "$batch_file_path"`;
     234        $batch_file_path_os =~ s/\s+$//;
     235    }
     236
     237    my $jaudio_cmd = "java -Xmx1024M -jar jAudio.jar $convert_options -b \"$batch_file_path_os\"";
    231238       
    232239    # Test the execution path
Note: See TracChangeset for help on using the changeset viewer.