📄 devguide.html
字号:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html><head><title>Struts Menu Tag Library - Developer Guide</title><style type="text/css" media="all"> @import url("./style/maven-base.css"); @import url("./style/maven-theme.css");</style><link rel="stylesheet" href="./style/print.css" type="text/css" media="print"></link><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"></meta><meta name="author" content="Matt Raible"></meta><meta name="email" content="mraible AT users.sourceforge.net"></meta></head><body class="composite"><div id="banner"><a href="http://struts-menu.sourceforge.net/" id="organizationLogo"><span class="xleft">SourceForge</span></a><a href="http://struts-menu.sourceforge.net" id="projectLogo"><img alt="Struts Menu" src="./images/sm-logo.png"></img></a><div class="clear"><hr></hr></div></div><div id="breadcrumbs"><div class="xleft"></div><div class="xright"> <a href="http://struts-menu.sourceforge.net/">Home</a> <span class="separator">|</span> <a href="http://demo.raibledesigns.com/struts-menu/index.jsp" class="externalLink" title="External Link">Demo</a> <span class="separator">|</span> <a href="http://sourceforge.net/projects/struts-menu/" class="externalLink" title="External Link">SourceForge Project Page</a> <span class="separator">|</span> <a href="http://struts-menu.cvs.sourceforge.net/struts-menu/navigator/" class="externalLink" title="External Link">Browse CVS</a> <span class="separator">|</span> <a href="http://sourceforge.net/project/showfiles.php?group_id=48726" class="externalLink" title="External Link">Download</a> <span class="separator">|</span> <a href="http://issues.appfuse.org/browse/SM" class="externalLink" title="External Link">Create an Issue</a> </div><div class="clear"><hr></hr></div></div><div id="leftColumn"><div id="navcolumn"><div id="menuReference"><h5>Reference</h5><ul><li class="none"><a href="index.html">Overview</a></li><li class="none"><a href="userguide.html">User Guide</a></li><li class="none"><a href="faq.html">FAQ</a></li><li class="none"><strong><a href="devguide.html">Developer Guide</a></strong></li><li class="none"><a href="status.html">Project Status</a></li><li class="none"><a href="security.html">Security Model</a></li></ul></div><div id="menuProject_Documentation"><h5>Project Documentation</h5><ul><li class="none"><a href="index.html">About</a></li><li class="collapsed"><a href="project-info.html">Project Info</a></li><li class="collapsed"><a href="maven-reports.html">Project Reports</a></li><li class="none"><a href="development-process.html">Development Process</a></li></ul></div><div id="legend"><h5>Legend</h5><ul><li class="externalLink">External Link</li><li class="newWindow">Opens in a new window</li></ul></div><a href="http://maven.apache.org" title="Powered by Maven" id="poweredBy"><img alt="Powered by Maven" src="./images/logos/maven-button-4.png"></img></a></div></div><div id="bodyColumn"><div class="contentBox"><div class="section"><a name="Setting_up_the_development_environment"></a><h2>Setting up the development environment</h2> <p>Getting the build process running for Struts Menu is remarkably easy, thanks to Maven. Here's what you need to do: <ul> <li> Check out module "navigator" from the CVS repository (anonymous). <a href="http://sourceforge.net/cvs/?group_id=48726" class="externalLink" title="External Link">Further details</a> are provided on SourceForge. </li> <li> <a href="http://maven.apache.org/start/download.html" class="externalLink" title="External Link">Download</a> and install Maven. </li> <li> Set up the necessary environment variables (JAVA_HOME, MAVEN_HOME), put the maven/bin directory in your PATH... </li> <li> From the navigator root directory (where project.xml is), run "maven war" - this will download all sorts of dependecies and finally build struts-menu.war in the "target" subdirectory. </li> <li> Copy/deploy navigator.war into your servlet container (eg. Tomcat). For your convenience, you can use "maven deploy" if you have Tomcat installed and the CATALINA_HOME environment variable defined. </li> </ul> </p> </div><div class="section"><a name="Setting_up_Eclipse_project"></a><h2>Setting up Eclipse project</h2> <p> <ul> <li>Start Eclipse</li> <li>Under "Window"->"Open perspective"->"CVS Repository exploring"</li> <li>In "CVS repositories" view: <li>Right click</li> <li>Select "New" -> "Repository location"</li> <li>set host to : "struts-menu.cvs.sourceforge.net"</li> <li>set repository path: "/cvsroot/struts-menu"</li> <li>set user to: "anonymous"</li> <li>Click finish</li> </li> <li>Navigate to HEAD -> navigator</li> <li>Right click, and select "Check out as Project"</li> <li>Drink a coke during the checkout (optional:-)</li> <li>From a command prompt enter: <p> <code> "C:>cd ECLIPSE_PATH\workspace\navigator" </code> </p> <p> <code> "...\eclipse\workspace\navigator>maven eclipse:add-maven-repo" </code> </p> This will download all the dependencies, and set up maven_repo for eclipse <p> <code> "maven eclipse" </code> </p> This will create a .classpath file for your project. Refresh the project and you should be good to go. You can also create an IDEA project using "maven idea". </li> </ul> <ul> Congratulation, you've got the fresh code of struts-menu as an Eclipse project ! </ul> </p> </div></div></div><div class="clear"><hr></hr></div><div id="footer"><div class="xleft"> <a href="http://sourceforge.net/projects/struts-menu" class="externalLink" title="External Link"> <img src="http://sourceforge.net/sflogo.php?group_id=48726" style="border: 0" alt="SourceForge Logo"></img></a> </div><div class="xleft">Last published: 01 June 2007 <span class="separator">|</span>燚oc for 2.4.3 </div><div class="xright">
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -