ãã®èšäºã¯ãç¹ã«EAPå°çšã§ãããããã¹ããããã€ã¹ãããã¬ã€ããããã¹ããŒã¯ã§ãããããã£ãŠããªã¹ã¯ãäœäžããã«éåžžã«æ ifãªçã§ããå Žåã¯ããªãªãŒã¹ãåŸ ã¡ãŸã:)
ã€ã³ã¹ããŒã«ã¯Windowsã§èæ ®ãããããšã«æ³šæããŠãã ããããã ãããã¹ãŠã®ãœãããŠã§ã¢ã¯ã¯ãã¹ãã©ãããã©ãŒã ã§ã-UnixãMacãããã³WindowsïŒç§èªèº«ã¯æè¿AIRã®ããã«openSUSEã§M $ Vistaã«ã¯ããŒã«ããŸããïŒã ç§ã®ãã·ã³æ§æïŒThinkPad T61ãIntel Core 2 Duo T9300ïŒ2.5 GHzïŒã2 GB RAMãWindows Vista SP1ã ã¹ãã¬ãŒãžãµãŒããŒäžïŒå¿ èŠãªãã§ãããïŒFreeBSD 6.3ãnginx 0.6.32ã
IDEæ©èœã®æŠèŠ
æè¿ãŸã§ã Flex Builderã«ä»£ããçŸå®çãªä»£æ¿æ段ã¯ãããŸããã§ããã ãããã DianaãšåŒã°ããIntelliJ IDEAã®æ¬¡æããŒãžã§ã³ã§ã¯ ããããã¬ãŒãç»å ŽããFlexãµããŒããåãå ¥ããããããã«ãªããŸããã IntelliJ IDEAãšã¯äœã§ããïŒ åœŒå¥³ã«ã¯ã§ããªããšèšãæ¹ãç°¡åã§ãã 圌女ã¯ã³ãŒããŒãbrewããæ¹æ³ãç¥ããŸããïŒéæ¥çã«ã®ã¿ã IDEããŒã¯ãéããŠïŒã ãã®ãããFlex Builderãšæ¯èŒããããšã¯ãé«éã§è·é¢ãééãããšããæèã§æ©è¡è ã®èœåãã¬ãŒã¹ã«ãŒãšæ¯èŒããããšãšåçã§ãã
客芳çã«ïŒ
- MXMLã€ã³ããŒãåŒãããŒãžã£ãŒïŒFlex Builderã¯ASã§ã®ã¿æé©åã§ããŸãïŒã ããã ãã§ãªãã衚瀺ãããŠããã¹ã¯ãªãŒã³ã·ã§ããã確èªããŸãïŒæ¬æ Œçãªã¹ã¯ãªãŒã³ã·ã§ãããäœæããããã®å€§ããªmxmlã³ã³ããŒãã³ãã¯ãããŸãããã5ã12åã®åŒã®4ã€ã®ã°ã«ãŒããããå Žåãç°è²ã®æè£
ç¬é¡ãšFBããã®çµæžã«åŸãããšãã§ããªããããIDEãå€æŽããããšãèããŸãïŒ
- ANTã®ãããžã§ã¯ãããšã¯ã¹ããŒãããŸãã ã€ãŸãããããžã§ã¯ãã¡ã¿ãã¡ã€ã«ãANTãã¡ã€ã«ã«å€æãããããIntelliJ IDEAãªãã§èª°ãããããžã§ã¯ãããã«ãããæ¹æ³ãå¿é ããå¿ èŠã¯ãããŸããïŒãã ãããã«ãããŒã«ãããã«äœ¿çšããããšããå§ãããŸãïŒã
- Find UsagesïŒãã¹ãŠã®èŠçŽ ã§æ©èœããïŒãæ瀺çã«äœ¿çšããå¿
èŠãªãã«ãæ¬åœã«å¿
èŠãªã³ã³ããã¹ãã§ããããžã§ã¯ãå
ã®èŠçŽ ã®äœ¿çšããªã³ã¶ãã©ã€ã§è¡šç€ºããŸãã Flex Builderã¯çšéãèŠã€ããããšããã§ããŸãããããã«ãèŠçŽ ã®ãªã¹ãã¯å°ãããäŸåãããœãŒã¹ã³ãŒããå€æŽããããŸã§ã®ã¿æ©èœããŸãããã®åŸãç°å¢ãåèµ·åããå¿
èŠããããŸã:)ãããã§ãªãå ŽåãèŠã€ãã£ããã®ã®ãªã¹ãã¯æå³çã«å°ãããªããŸãã
- ã³ãŒãã®åŒ·èª¿è¡šç€ºã ãããæãèŠãŠããåçŽãªãã·ã¢äººç·æ§ãèšãäžèšã ããã¯ã©ã€ã以äžã®ãã®ã§ãã ãã€ã¢ãã¯é髪ã§ã¯ãããŸããã
- ããªããé ã£æã£ãŠåž°ã£ãŠãããšããŠãããã€ã¢ãã¯ããªãã«é£äºãæäŸããããªãã¯ãããžã§ã¯ãã®ãããã«ãå±ããªãäœããã®ãµãŒãããŒãã£ã®ãã¡ã€ã«ã§ããããšãinããŸããããããªãããããã§èœã¡çãããšãã«åœŒå¥³ãããããšãã圌女ã®åã§ãã¹ãŠãç©ããã«è¡ããŸãã
ããã§ã¯ãéåžžã«é·ããªã¹ããäœæã§ããŸãã 圌女ã¯ç¢ºãã«éåžžã«ç¥çã§ãã è©ŠããŠã¿ãŠãã ããïŒç¹ã«ããã¡ããã倧èŠæš¡ã§è€éãªãããžã§ã¯ãã«åãçµãã§ãã人ã¯æè¬ããŸãïŒã Flex Builderã«ã¯ããããã¡ã€ãªã³ã°ãšããå©ç¹ã1ã€ãããããŸããã ã³ã¡ã³ãã«ã¯çåããã£ããããæåã«ãªã¹ãããå¿ èŠã®ããæ©èœãããã«2ã€è¿œå ããŸãã çæãšãªãã¡ã¯ã¿ãªã³ã°ã§ãã
䞻芳çã«ïŒ
- ç°å¢ã«ãã£ãŠäœæããããããžã§ã¯ãã®ã¡ã¿ãã¡ã€ã«ã¯ããã¡ã€ã«ããªãŒãã€ãŸãEclipseã®.projectãš* .iprã«è¡šç€ºãããŸãã æ±ãããã³ã§ãããã«å ¥ãå¿ èŠãããå Žåãç§ã¯é¢ããããšãªããããè¡ãããšãã§ããŸãã
- èšå®ã§ã¯ãConsolasã®ãããªClearTypeãã©ã³ãã«Windows XPã§å¿ èŠãªã¢ã³ããšã€ãªã¢ã·ã³ã°ãå«ããããšãã§ããŸãïŒãã¡ãããEclipseã®ãœãªã¥ãŒã·ã§ã³ãèŠã€ããããšãã§ããŸãããããã§ã¯ç§ãã¡ã®ç®ã®åã«ãããŸã-å®éãããã¯äž»èŠ³çã§ãïŒã
- ããããªã·ãŒãã ãã§ãªããã³ãŒãã®æãããã¿ãæåã«èšå®ãããŸãã ãã®æªè§£æ±ºã®åœ¢åŒã§ã¯ãå¿ èŠã«å¿ããŠã³ãŒãã®äœæè ã«éãæž¡ããç¥ã®ã¯ã©ã¹ã®ããã«è¶³ãæã¡ãŸãã ãããŠããã¹ãŠã®ãã®ãããªææ ®æ·±ãïŒFlex Builderã¯xmlã匷調衚瀺ããæ¹æ³ããç¥ããªããããã«æ¬æãè¡šããŠã å¿ èŠäžå¯æ¬ ãªãã©ã°ã€ã³ãã€ã³ã¹ããŒã«ããŠææ補åãèªåã§ä»äžããå¿ èŠãããã®ã ãããïŒïŒ
- éããŠãããããžã§ã¯ããã¡ã€ã«ã®ãªã¹ãã¯ããããžã§ã¯ãèªäœã«ä¿åãããŸãã ãããäœãæå³ãããç¥ã£ãŠããŸããïŒ ããã¯ã圌女ã®ãããžã§ã¯ãã¡ã¿ãã¡ã€ã«ãSVNã«ä¿æããŠããåž°å® ããŠãšãã£ã¿ãŒãéããšãè·å ŽãšåããªãŒãã³ãã¡ã€ã«ã®ã»ãããåŸãããããšãæå³ããŸãïŒã¯ããå°ãçããããã©ã¹ïŒã
çµã¿ç«ãŠããŒã«ã®æŠèŠ
IDEããã§ã«ã³ã³ãã€ã«ããµããŒãããŠããå Žåããªãå¿ èŠãªã®ã§ããïŒ ãããèªæã§ãªãå Žåã¯ã ãŠã£ãããã£ã¢ã®èšäºãèªãããšããå§ãããŸãã ãªãã¢ãªã§ã¯ãªãã¡ã€ãŽã³ãªã®ãïŒ Mavenã¯å®£èšçãªã¢ã»ã³ããªã§ãããåœä»€çãªã¢ã»ã³ããªã§ã¯ãªãããã§ãã Agahovã®ããã°ã«ããMavenãªã³ã¯ã®è¯ãéžæã çŸåšãFlexã«åªæãæäŸããflex-mojosãã©ã°ã€ã³ã®ã»ããã«ä»£ããæ¬åœã®éžæè¢ã¯ãããŸããã
IDEã®ã€ã³ã¹ããŒã«
ã ããã ãããã€ã³ã¹ããŒã«ããŸãããã ææ°ã®EAPãããŠã³ããŒãããŸã ïŒå·çæç¹ã§ã¯ãæåŸã®EAPã¯8940ã§ããæ°MBãä¿åããã111 MBã®ã€ã³ã¹ããŒã©ãŒãããŠã³ããŒãããããšããå§ãããŸãïŒã æåã®èµ·åæã«ã圌女ã¯èšå®ãã©ã€ã»ã³ã¹ããã©ã°ã€ã³ã«ã€ããŠå°ããŸããã€ãŸããåææ§æãå®è¡ããŸãã
äŸ¡æ Œãšããã°ã ãªãŒãã³ãœãŒã¹ãããžã§ã¯ãã®å Žåãç¡æã§ãã æè²é¢ä¿è ã®å Žåã¯ãç¡æãŸãã¯å€§å¹ ãªå²åŒã§æäŸãããŸãã å人çãªäœ¿çšã®å Žåããã£ãã®$ 249ã§ãã ãŸããFlex Builder 3 Standardã«ã¯æ°åã®è²»çšãããããŸãïŒ 249ãã«ïŒã éããæããŠãã ããã ãã®ãããè³Œå ¥æã«æãäžããŠããŸããã§ããããIntelliJ IDEAã®å Žåãããããããšãªãæ¯æããç¡æã®ã©ã€ã»ã³ã¹ãååŸããæ©äŒãããããŸããã
ã€ã³ã¹ããŒã«ãããã©ã°ã€ã³ãéžæããå Žåãå¿ èŠãªãã®ã ããé 眮ããŠãã ããããã¡ãããããã¯ãªãœãŒã¹æ¶è²»ãåæžããŸãïŒãŸããã€ã³ã¿ãŒãã§ãŒã¹ããäžèŠãªãã©ã°ã€ã³ãåé€ããŸãïŒã ãã®åŸããã¡ã€ã«->èšå®->ãã©ã°ã€ã³ã§ãã©ã°ã€ã³ãåé€/è¿œå ã§ããŸã
ã€ã³ã¹ããŒã«åŸãããã«IDEAã®ã¡ã¢ãªå²ãåœãŠãå¢ããããšããå§ãããŸã-bin / idea.exe.vmoptionsãã«ãŒããã©ã«ãã§éããŸãïŒ
-Xms256m -Xmx512m -XX:MaxPermSize=128m
ãšãã£ã¿ãŒã®åæèšå®ã§äœãããããããšããããããããŸããã ãããããã¹ãŠãã«ã¹ã¿ãã€ãºå¯èœã§ãããç§ã奜ãã§ã¯ãªãã£ããã®ã®äžéšã§ããã解決çã¯ä»¥äžã«èª¬æãããŠããŸãïŒ
- 衚瀺ã ãªãLookïŒFeelã¯ããã©ã«ãã®ãšã€ãªã¢ã³ã§ããïŒ å€èŠ³->ã«ãã¯ã¢ã³ããã£ãŒã«= Windowsã
- è¡æ«ã§ã¯ãªãããšãã£ã¿ãŒã®ä»»æã®å Žæã«ã«ãŒãœã«ãèšå®ããŸãã ç§ã¯ç §æºãåãããã®ãé¢åã§ãïŒããã©ã«ãã§ã¯Eclipseã§è¡æ«ã«ïŒããããã£ãŠããšãã£ã¿->åäœ->è¡æ«ã®åŸã«ãã£ã¬ããã®é 眮ãèš±å¯ããªãã«ããŸãã
- ã€ã³ãã³ãçšã®ã¿ãã§ã¯ãªãã¹ããŒã¹ã ç¹°ãè¿ãã«ãªããŸãããFlex Builderã®ããã©ã«ãã¯éèšã§ããããã§ã¯ããããã®ã¹ããŒã¹ããã¥ãŒã§æ®åœ±ããå¿ èŠããããŸãã GlobalCode Style-> [Use]ã¿ãæåã«Dawãå ¥åããŸãïŒãã¹ãŠã®ãã¡ã€ã«ã¿ã€ãã«åãèšå®ã䜿çšããããšã«æ³šæããŠãã ããïŒã
ç§ãããã§åºåããMavenã§ã¯ãªããçµã¿èŸŒã¿ã®IDEãã«ããŒã䜿çšããå Žåãåé¡ã解決ããããã«ãã³ã³ãã€ã©ãŒã¯ãã·ã¢èªã§ãšã©ãŒã衚瀺ããŸãïŒãã®ã³ã³ããã¹ãã§ãã·ã¢èªã®è³ã®æ絶ããããŸãããïŒïŒãã©ã¡ãŒã¿ãŒ
-Duser.language=en -Duser.country=US
è¿œå ããŸãïŒIDE Builderã¯fcshã䜿çšããããïŒãä»ã®äœãã§ãã«ãããå Žåã¯ãé©åãªå Žæã§JVMãã©ã¡ãŒã¿ãŒãå€æŽããŸãã Mavenã䜿çšããå Žåã¯ã以äžããèªã¿ãã ããã
ããã ãã§ã ã€ã³ã¹ããŒã«ããŠéããŸããã ããã¯EAPã§ããããšãå¿ããªãã§ãã ããã
ã¢ã»ã³ããªããŒã«ãã€ã³ã¹ããŒã«ããŸãã
èšå®ããå¿ èŠã¯ãããŸããã Mavenã¯IDEAã«çµã¿èŸŒãŸããŠããŸãïŒãã ããå€éšã䜿çšããããã«æå®ããããšãã§ããŸãïŒã ãã ããèšå®ããããšããå§ãããŸãã ãã·ã¢èªãæ ¹çµ¶ããã«ã¯ãç°å¢å€æ°
MAVEN_OPTS = -Duser.language=en -Duser.country=US
ïŒãèšå®ããŸãã åå¥ã«ã€ã³ã¹ããŒã«ããå Žåã¯ãã¡ã¢ãªèšå®ãå€æŽããããšããå§ãããŸã
-Xms256m -Xmx512m -XX:MaxPermSize=128m
ïŒFreeBSDã®ããŒããšã¯å¥ã«ã€ã³ã¹ããŒã«ããŸãã-ã€ã³ã¹ããŒã«ã¯åé¡ãªãå®äºããŸãã ïŒã
ãããžã§ã¯ãäœæ
æãåçŽãªHelloWorldãããžã§ã¯ãã®éçºãæ€èšããŠãã ããã
- ãã¡ã€ã«->æ°èŠãããžã§ã¯ã
-
- ãã®ã¹ãããã§ã¯ãäœãå€æŽããããšã¯ã§ããã[å®äº]ãã¯ãªãã¯ããã ãã§ãã çŸåšã flexãããžã§ã¯ãã«ã¯ã¢ãŒãã¿ã€ãããããŸãããè€éã«ãªããªãããã«ãã¢ãŒãã¿ã€ãã¯äœ¿çšããŸããã
ãã®åŸããããžã§ã¯ããéããŸãã
ãããžã§ã¯ããã³ã³ãã€ã«ããã«ã¯ãäœãæåã§ããŠã³ããŒãããå¿ èŠã¯ãããŸããããIDEAãå®å šã«æ©èœããããã«ã¯ãFlex SDKãœãŒã¹ã³ãŒããå¿ èŠã§ãã ææ°ã®å®å®ãã«ããããŠã³ããŒãã ïŒå·çæç¹ã§ã¯2008幎10æ23æ¥ïŒæš ïŒ ãã3.2.0.3794ã§ã ïŒãã©ããã§è§£åããŠIDEAã«ã€ã³ã¹ããŒã«ããŸãã
- ãã¡ã€ã«->ãããžã§ã¯ãæ§é
ãããŠããã¹ã瀺ããŸã
æ®å¿µãªãããIDEAã«ã¯Flexãã¡ã»ããã®ããã©ã«ãã§Flex SDKãå®çŸ©ããéã«ãšã©ãŒãçºçããŸãïŒæ£ç¢ºã«ã¯ãã¡ã»ããã¯ãªãã¯ãã§ããããã¯EAPã§ããããšãå¿ããªãã§ãã ãã ïŒã ïŒ
ããã§äœæã§ããŸãã
- scr / main / javaããã³src / test / javaãã©ã«ããŒã®ååãå€æŽïŒãªãã¡ã¯ã¿ãŒ->ååå€æŽãŸãã¯Shift + F6ïŒïŒããã«å¿ããŠjavaãflexã«å€æŽããŸãïŒã¢ãŒãã¿ã€ããããããžã§ã¯ããäœæããå Žåãååãå€æŽããå¿ èŠã¯ãããŸããïŒã
- mavenãææ¡ãããããžã§ã¯ãæ§é ã«åŸã£ãŠãæ°ããMxmlã³ã³ããŒãã³ããäœæããŸãã
- 次ã®ã³ãŒãã貌ãä»ããŸãïŒ[HelloWorld.mxml]
- pom.xmlã®ç·šéïŒ[pom.xml]
- å€æŽãä¿åããåŸãpom.xml IDEAã¯ãããžã§ã¯ãã®åã€ã³ããŒããææ¡ããŸãïŒã€ãŸããæ°ããPOMã«å¿ããŠå¿ èŠãªãã®ãã¹ãŠãæŽæ°ããŸãïŒã¯ããä»ã®ãšãããå°ãæ²ãã£ãŠããŸããã éçºè ã«éç¥ãããäœæ¥äžã§ãïŒïŒã
- ã¿ãŒã²ãããã©ã«ããŒã®çµæãHelloWorld-1.0.swf result.png
POMã«ã€ããŠã¯ã³ã¡ã³ãããŠããŸããã ãžã®ãªã³ã¯ã¯æ¢ã«æäŸãããŠããŸãã çŸåšã®ãšãããFlex Mavenãäžçäžã§æ®åããŠããªããšããäºå®ã«ãããäžå€®ãªããžããªã®ã»ãšãã©ã®ã©ã€ãã©ãªãæ¬ èœããŠããããšã«æ³šæããŠãã ããã mavenãããžã§ã¯ããäžå€®ãªããžããªã«è¿œå ã§ããŸããããµãŒãããŒãã£ã®ã©ã€ãã©ãªã¯ã»ãšãã©ãããŸããã®ã§ãç§ã¯ãµãŒããŒïŒãªããžããªã«ç€ºãããŠããŸãïŒã httpïŒ//maven.flyti.org ïŒäœããã®çš®é¡ã®ã©ã€ãã©ãªãå¿ èŠãªå Žåã¯ãããªãã¯ç§ã«æžãããšãã§ããç§ã¯ãããç§ã®å ¬éãªããžããªã«è¿œå ããŸãããäœæè ã«ããããäžå€®ã®ãã®ã«å ¥ããããã«äŸé Œããæ¹ãè¯ãã§ãïŒã
ã³ã¡ã³ããžã®å¿çãšããŠæŽæ°0
ç§ã®ãããžã§ã¯ããæ°ããIDEã«ç§»è¡ããŠãã客芳çãªå©ç¹ã¯èŠåœãããŸããã ã³ãŒããçè²ããããã®ããããã®æïŒ åŽäžãã
äžèšã®å®¢èŠ³çãªå©ç¹ïŒmavenãšantã®ãµããŒããã³ã³ããã¹ãã«ããã¯ãšãªãè¡ããã«findã䜿çšã§ããå¯èœæ§ãªã©ïŒã§ååã§ãªãå Žåã¯ãããã«2ã€ã®äž»ãªæãéèŠãªå©ç¹ãçæã ã ãªãã¡ã¯ã¿ãªã³ã°ããŸãã
ã¢ããããŒã1
ã³ã³ãã€ã©ãŒã¢ãŒãã£ãã¡ã¯ãã®äŸåé¢ä¿ã¯ãPOMã®å®éã®äŸã§ãããã©ã°ã€ã³ã«ããå¿ èŠããããŸãã