Korean IDE Integration

Last updated by admin 4 years ago

IDE ??

Eclipse?? ??

Grails ???? ????

Grails ???? Eclipse ???? ? ????? ??? ??????. Eclipse? ??? ?????(Package Explorer)?? ??? ??? ? ?? "Import"? ???? "Existing project into Workspace"? ??? ? "Browse"?? ????? ??? ?????.

"Finish"? ?? ? "Ok"? ??? ????? ?????.

Eclipse ??? ??? GRAILS_HOME ? ???? Grails ?? ??? ?????? ??? ??? ?????. ??? ??? ????? Windows -> Preferences… -> Java -> Build path -> Classpath Variables -> New ? ?????.

??, ?????? JSP? ???? ??? JDK? tools.jar ?????? ???? ?????? ???? ???. ??? ??? jetty?? ??? ??? ??? ????. ??? ??? ?? ???? ?????: http://nuin.blogspot.com/2005/05/launch-jetty-from-eclipse-solving.html

Grails ?????? ????

Grails? ?? ???? ?? Eclipse ?? ??(run configuration)? ???? ??????. ????? ????? "Run" ???? ???? "Run" ????? ?? "Java Application" ???? ???? ???? ??? ??? ?????. ??? "Run"? ???? Grails ??????? Eclipse ???? ???? Eclipse ???? ??? ??? ?? ??? ???? ??? ???.

?? ??? ?? ??? ?????:

org.mortbay.util.MultiException[java.io.FileNotFoundException: {yourpath}/tmp/war]
	at org.mortbay.http.HttpServer.doStart(HttpServer.java:731)
	at org.mortbay.util.Container.start(Container.java:72)
	at grails.util.GrailsMain.main(GrailsMain.java:67)
?? Ant ??? ???? ???:
grails dev package
? ??? Grails ????? ????? mp/war ????? ?????. Eclipse?? Grails ????? ????? ? ??? ?????.

Eclipse?? ?? ?????

?? Groovy Eclipse ????? ?????? ??? ?? ???? ?? ???? ?????.

  • ??? ????? Groovy ??? ???({{BookController.groovy}}?? ???) ??? ?? ???(break point)? ?????.
  • ??? Grails ??????? ???? ?? ??? ???? "Debug" ??? ?? ??? ??? ??????? ?????.
  • ????? ??? ?? ??? ?????.
? ???? Eclipse? ???? ????? ???? ????(inspect) ??? ????? ??? ? ?? ???. ?? ??(source path)? Grails ?? ?? ??? ??????? Grails ??? ???? ??? ? ????.

_??: Eclipse 3.2 ? ?? ??? Groovy ???? ????? Windows ?????? ??? ???? ????. ??? ??? http://jira.codehaus.org/browse/GRAILS-277 ? ????? ????.

??? ??? ?? ????

"grails"? "External Tool"? ???? ??? ??? ?? ?? ??? ? ????. ?????? ??? ?????:

  1. "Run > External Tools > External Tools..." ? ??
  2. "Grails"? ??
  3. "grails" ?? "grails.bat"? ??? ?????
  4. "Working directory"? "${project_loc}" ? ?????
  5. "Arguments"? "${string_prompt}"? ?????
  6. "Refresh" ??? "project containing the selected resource"? ??????? ?????
  7. "Common" ??? "Display in favorites menu"? ?????.
?? "External Tools" ??? ?? ?? ???? ???? "Grails"? ???? ??? ?? ??? ? ????:
  1. "External Tools"? ???? ???? "Grails"? ?????
  2. ????? "create-domain-class"? ?????
  3. ?? ???? ????? ?????? ?????.
  4. grails-app/domain ? ??? ???? ???????.

?? ??

*.groovy ??? ??? ? ?? ??? ?? ???? ???:
An internal error occurred during: "Building workspace".
BUG! exception in phase 'conversion' in source unit '...' Error:
duplicate class declaration for name: … and class:
org.codehaus.groovy.ast.ClassNode@...[name:...]
?? ???? ????:
  • ??? ??????? ??? ??? ?? "Properties..." ?????? ???.
  • "Builders" ? ??? ? "Groovy Builder"? ???? ??? ?????.
  • "Java Compiler/Building" ? ??? ? "Enable project specific settings" ? ?????.
  • "Filtered Resources" ??? "*.groovy"? ???? "*.groovy" ??? ?? ????(output directory)? ???? ??? ???. ?? ???? ";"? ??? ","?? ?? ?????.
  • ??? ??? ? ?????? ????.
  • ????? clean ? ?, ?? ????? "*.groovy" ??? ??? ?????.