Last updated by admin 4 years ago
??, ??, ??
???? ???
?? ??? ?? Grails ????? ??? ? ????:
grails create-plugin [???? ??]
? ??? ???? ??? ??? ???? ???? ????? ?????. ?? ?? {{grails create-plugin example}} ??? ???? {{example}} ??? ??? ???? ????? ??? ????. Grails ????? ???? ??? plugin? ?? ????? plugin Groovy ??? ????? ?? ???? ???? Grails ????? ???? ??? ?????. ??? {{example}} ????? ??? ??? ??? ????:
class ExampleGrailsPlugin {
def version = 0.1 …
}
?? ????? ?? ????? ? ???? ????? ???. ???? ???? ????? ??? ????, ????? ????? ?? ????? ?????(???? ???? ? ???????).
???, ???? ??? ??? ? ???, ???? ????? ? ??? Grails ????????? ???? ????? ???? {{grails run-app}}? ???? ????? Grails ???????? ?????.
?? ? ??
{{example}} ????? ????? {{cd example}} ??? ?? ?? ????? ??? ? ?? ??? ?????:
? ??? "grails"? ???? ???? ??? ???? ??? ??? ?? zip ??? ??????. ?? ?? ?? ???? {{grails-example-0.1.zip}} ??? ??? ??????.
???? ?????? ???? Grails ???? ????? ???? ?? ??? ?????:
grails install-plugin /path/to/plugin/grails-example-0.1.zip
?? ????? ?? HTTP ??? ????? ?? ??? ?? ??? ? ????:
grails install-plugin http://myserver.com/plugins/grails-example-0.1.zip
http://dist.codehaus.org/grails/plugins ?? ???? ??????? ?? ????? ??? ? ????:
grails install-plugin example 0.1