Skip to content

Commit

Permalink
escape
Browse files Browse the repository at this point in the history
  • Loading branch information
jjaffeux committed May 21, 2015
1 parent 1d1f6e4 commit e0b247f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions lib/motion-gradle.rb
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
require 'shellwords'
require 'motion/project/gradle'
require 'motion/project/version'
4 changes: 2 additions & 2 deletions lib/motion/project/gradle.erb
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ task generateDependencies(type: Copy) {
repositories {
<% if android_repository %>
maven {
url "<%= ENV['RUBYMOTION_ANDROID_SDK'] %>/extras/android/m2repository/"
url "<%= ENV['RUBYMOTION_ANDROID_SDK'].shellescape %>/extras/android/m2repository/"
}
<% end %>
<% if google_repository %>
maven {
url "<%= ENV['RUBYMOTION_ANDROID_SDK'] %>/extras/google/m2repository/"
url "<%= ENV['RUBYMOTION_ANDROID_SDK'].shellescape %>/extras/google/m2repository/"
}
<% end %>
<% @repositories.each do |url| %>
Expand Down
2 changes: 1 addition & 1 deletion lib/motion/project/settings.erb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<% @libraries.each do |library| %>
include '<%= library[:name] %>'
project(':<%= library[:name] %>').projectDir = new File('<%= library[:path] %>')
project(':<%= library[:name] %>').projectDir = new File('<%= library[:path].shellescape %>')
<% end %>

0 comments on commit e0b247f

Please sign in to comment.