<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>Kazuhira</author_name>
  <author_url>https://blog.hatena.ne.jp/Kazuhira/</author_url>
  <blog_title>CLOVER🍀</blog_title>
  <blog_url>https://kazuhira-r.hatenablog.com/</blog_url>
  <categories>
    <anon>Groovy</anon>
  </categories>
  <description>また小ネタです。Groovyは、groovyコマンドの「-e」スイッチでOne Linerを実行することが可能ですが、これを使って現在のシステムプロパティを出力するコードを書いてみましょう。んで、できたのがこちら。 $ groovy -e 'System.properties.sort().each{println(it.key + &quot; = &quot; + it.value.replaceAll(/\r/, &quot;\\\\r&quot;).replaceAll(/\n/, &quot;\\\\n&quot;))}' 実行すると、こうなります。 awt.toolkit = sun.awt.X11.XToolkit file.encodi…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkazuhira-r.hatenablog.com%2Fentry%2F20120902%2F1346584621&quot; title=&quot;GroovyのOne Linerで、システムプロパティの値を出力する - CLOVER🍀&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2012-09-02 20:17:01</published>
  <title>GroovyのOne Linerで、システムプロパティの値を出力する</title>
  <type>rich</type>
  <url>https://kazuhira-r.hatenablog.com/entry/20120902/1346584621</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
