Repository: buildr Updated Branches: refs/heads/master a1b508bb9 -> 3738beb2e
java command: escape classpath entries in the pathing jar manifest Project: http://git-wip-us.apache.org/repos/asf/buildr/repo Commit: http://git-wip-us.apache.org/repos/asf/buildr/commit/b6520a78 Tree: http://git-wip-us.apache.org/repos/asf/buildr/tree/b6520a78 Diff: http://git-wip-us.apache.org/repos/asf/buildr/diff/b6520a78 Branch: refs/heads/master Commit: b6520a7801dbbc4d61b78e5f03545392efddff60 Parents: 1f3e57f Author: Glenn Croes <[email protected]> Authored: Mon Oct 16 13:00:48 2017 +0200 Committer: Glenn Croes <[email protected]> Committed: Mon Oct 16 13:00:48 2017 +0200 ---------------------------------------------------------------------- lib/buildr/java/commands.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/buildr/blob/b6520a78/lib/buildr/java/commands.rb ---------------------------------------------------------------------- diff --git a/lib/buildr/java/commands.rb b/lib/buildr/java/commands.rb index 7328fb9..d367f64 100644 --- a/lib/buildr/java/commands.rb +++ b/lib/buildr/java/commands.rb @@ -73,7 +73,7 @@ module Java path = File.directory?(c) && !c.end_with?('/') ? "#{c}/" : c.to_s Buildr::Util.win_os? ? "/#{path}" : path end - manifest = Buildr::Packaging::Java::Manifest.new([{'Class-Path' => paths.join(" ")}]) + manifest = Buildr::Packaging::Java::Manifest.new([{'Class-Path' => paths.map{|p| URI.encode(p)}.join(" ")}]) tjar = Tempfile.new(['javacmd', '.jar']) Zip::ZipOutputStream.open(tjar.path) do |zos| zos.put_next_entry('META-INF/MANIFEST.MF')
