1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | $ grails install-plugin /code/grails-shortenurl-0.1.zip Welcome to Grails 1.1.1 - http://grails.org/ Licensed under Apache Standard License 2.0 Grails home is set to: /opt/grails Base Directory: /code/foo Running script /opt/grails/scripts/InstallPlugin.groovy Environment set to development [copy] Copying 1 file to /Users/sdavis/.grails/1.1.1/plugins Installing plug-in shortenurl-0.1 [mkdir] Created dir: /Users/sdavis/.grails/1.1.1/projects/foo/plugins/shortenurl-0.1 [unzip] Expanding: /Users/sdavis/.grails/1.1.1/plugins/grails-shortenurl-0.1.zip into /Users/sdavis/.grails/1.1.1/projects/foo/plugins/shortenurl-0.1 Executing shortenurl-0.1 plugin post-install script ... Plugin shortenurl-0.1 installed |
1 2 3 4 5 6 7 8 | #utf-8 #Wed Aug 19 14:38:24 MDT 2009 app.version=0.1 app.servlet.version=2.4 app.grails.version=1.1.1 plugins.hibernate=1.1.1 plugins.shortenurl=0.1 app.name=foo |
1 2 3 4 5 6 7 8 9 10 11 12 | class TestController { def shortenUrlService def index = { render "This is a test for the ShortenUrl plug-in <br>" + "Type test/tinyurl?q=http://grails.org to try it out." } def tinyurl = { render shortenUrlService.tinyurl(params.q) } } |
欢迎光临 电子技术论坛_中国专业的电子工程师学习交流社区-中电网技术论坛 (http://bbs.eccn.com/) | Powered by Discuz! 7.0.0 |