Skip to content

Commit

Permalink
[MOSYNC-9] rules/mosync_resources.rb: Added quotation marks to filena…
Browse files Browse the repository at this point in the history
…mes in ConvertToPngTask.
  • Loading branch information
Fredrik Eldh committed Sep 30, 2011
1 parent 3ce6b77 commit d0bb126
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rules/mosync_resources.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,12 @@ def resType
def execute
if(@src.to_s.getExt == '.svg')
sh "java -jar \"#{mosyncdir}/bin/batik/batik-rasterizer.jar\" -w #{@width} -h #{@height}"+
" -d #{File.expand_path(@NAME)} #{File.expand_path(@src)}"
" -d \"#{File.expand_path(@NAME)}\" \"#{File.expand_path(@src)}\""
if(!File.exist?(@NAME)) # in case batik fails silently.
error('batik failed!')
end
else
sh "#{mosyncdir}/bin/ImageMagick/convert -resize #{@width}x#{@height} -background none #{@src} #{@NAME}"
sh "#{mosyncdir}/bin/ImageMagick/convert -resize #{@width}x#{@height} -background none \"#{@src}\" \"#{@NAME}\""
end
end
# Read the pixel dimensions of the SVG src and calculate the appropriate size.
Expand Down

0 comments on commit d0bb126

Please sign in to comment.