{"id":13250,"date":"2014-04-28T18:12:52","date_gmt":"2014-04-28T12:42:52","guid":{"rendered":"http:\/\/www.tothenew.com\/blog\/?p=13250"},"modified":"2014-04-28T18:12:52","modified_gmt":"2014-04-28T12:42:52","slug":"grails-integrate-with-command","status":"publish","type":"post","link":"https:\/\/www.tothenew.com\/blog\/grails-integrate-with-command\/","title":{"rendered":"Grails &#8216;integrate-with&#8217; command"},"content":{"rendered":"<p>While reading the Grails docs I came across a useful Grails command i.e. <strong>integrate-with<\/strong>. In this short blog I just want to present some of the uses of this command.<\/p>\n<p>By using this command we can create Git&#8217;s <em><strong>.gitignore<\/strong><\/em> file:<\/p>\n<p>[java]<br \/>\ngrails integrate-with &#8211;git<br \/>\n[\/java]<\/p>\n<p>The above command will create a <em>.gitignore<\/em> file in the root of our project with the following content:<\/p>\n<p>[java]<br \/>\n*.iws<br \/>\n*Db.properties<br \/>\n*Db.script<br \/>\n.settings<br \/>\nstacktrace.log<br \/>\n\/*.zip<br \/>\n\/plugin.xml<br \/>\n\/*.log<br \/>\n\/*DB.*<br \/>\n\/cobertura.ser<br \/>\n.DS_Store<br \/>\n\/target\/<br \/>\n\/out\/<br \/>\n\/web-app\/plugins<br \/>\n\/web-app\/WEB-INF\/classes<br \/>\n\/.link_to_grails_plugins\/<br \/>\n\/target-eclipse\/<br \/>\n[\/java]<\/p>\n<p>Another use of &#8216;integrate-with&#8217; command is to create an Eclipse specific file structure (to be opened in Eclipse IDE) of our Grails project:<\/p>\n<p>[java]<br \/>\ngrails integrate-with &#8211;eclipse<br \/>\n[\/java]<\/p>\n<p>&#8216;<strong>eclipse<\/strong>&#8216; option in the above command will produce <em><strong>.project<\/strong><\/em> and <em><strong>.classpath<\/strong><\/em> files for use with Eclipse.<br \/>\nSimilarly, you can create IntelliJ Idea specific project file structure from a Grails project<\/p>\n<p>[java]<br \/>\ngrails integrate-with &#8211;intellij<br \/>\n[\/java]<\/p>\n<p>&#8216;<strong>intellij&#8217;<\/strong> option in the above command will produce <em><strong>.iml, .ipr <\/strong>and<strong> .iws<\/strong><\/em> files for use with IntelliJ Idea IDE.<\/p>\n<p>Hope this cool &#8216;integrate-with&#8217; command gives you a head-start in starting your next Grails project.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>While reading the Grails docs I came across a useful Grails command i.e. integrate-with. In this short blog I just want to present some of the uses of this command. By using this command we can create Git&#8217;s .gitignore file: [java] grails integrate-with &#8211;git [\/java] The above command will create a .gitignore file in the [&hellip;]<\/p>\n","protected":false},"author":118,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"iawp_total_views":0},"categories":[7],"tags":[1411,375,4840,1410,1412],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts\/13250"}],"collection":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/users\/118"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/comments?post=13250"}],"version-history":[{"count":0,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts\/13250\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/media?parent=13250"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/categories?post=13250"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/tags?post=13250"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}