ann
冰是没有未来的,因为它的永恒
posts - 107,comments - 34,trackbacks - 0

1. 用命令行创建新的project
   #>: play new test
  
   输入 test(会有What is the application name?提示)
   注:一定要输入test  否则在导入到eclipse中就要手动改配置文件

2. 导入eclipse
   >play eclipsify  test
   打开eclipse 在import 就ok了.

如果在创建project时候未输入test。
就要手动修改test.launch文件,也就是查找<listEntry value="/E:"project"eclipse"play1"/>,得出 E:"project"eclipse"play1 ,然后把文件中所有的E:"project"eclipse"play1替换为test
修改前:
<?xml version="1.0" encoding="UTF-8"?>
<launchConfiguration type="org.eclipse.jdt.launching.localJavaApplication">
    
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
        
<listEntry value="/E:\project\eclipse\play1\test"/>
    
</listAttribute>
    
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
        
<listEntry value="4"/>
    
</listAttribute>
    
<booleanAttribute key="org.eclipse.debug.core.appendEnvironmentVariables" value="true"/>
    
<listAttribute key="org.eclipse.jdt.launching.CLASSPATH">
        
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt; &lt;runtimeClasspathEntry containerPath=&quot;org.eclipse.jdt.launching.JRE_CONTAINER&quot; javaProject=&quot;E:\project\eclipse\play1&quot; path=&quot;1&quot; type=&quot;4&quot;/&gt; "/>
        
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt; &lt;runtimeClasspathEntry externalArchive=&quot;D:\Program Files\play-1.1/modules/test-runner/lib/play-test-runner.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt; "/>
        
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt; &lt;runtimeClasspathEntry id=&quot;org.eclipse.jdt.launching.classpathentry.defaultClasspath&quot;&gt; &lt;memento exportedEntriesOnly=&quot;false&quot; project=&quot;E:\project\eclipse\play1&quot;/&gt; &lt;/runtimeClasspathEntry&gt; "/>
        
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt; &lt;runtimeClasspathEntry internalArchive=&quot;/E:\project\eclipse\play1/conf&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt; "/>
    
</listAttribute>
    
<booleanAttribute key="org.eclipse.jdt.launching.DEFAULT_CLASSPATH" value="false"/>
    
<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="play.server.Server"/>
    
<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="E:\project\eclipse\play1"/>
    
<stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS" value="-Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n -Dplay.debug=yes -Dplay.id=test -Dapplication.path=&quot;${project_loc:E:\project\eclipse\play1}&quot; -Djava.endorsed.dirs=&quot;D:\Program Files\play-1.1/framework/endorsed&quot; -javaagent:&quot;D:\Program Files\play-1.1/framework/play.jar&quot;"/>
</launchConfiguration>


   修改后:
  
<?xml version="1.0" encoding="UTF-8"?>
<launchConfiguration type="org.eclipse.jdt.launching.localJavaApplication">
    
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
        
<listEntry value="/test"/>
    
</listAttribute>
    
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
        
<listEntry value="4"/>
    
</listAttribute>
    
<booleanAttribute key="org.eclipse.debug.core.appendEnvironmentVariables" value="true"/>
    
<listAttribute key="org.eclipse.jdt.launching.CLASSPATH">
        
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt; &lt;runtimeClasspathEntry containerPath=&quot;org.eclipse.jdt.launching.JRE_CONTAINER&quot; javaProject=&quot;test&quot; path=&quot;1&quot; type=&quot;4&quot;/&gt; "/>
        
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt; &lt;runtimeClasspathEntry externalArchive=&quot;D:\Program Files\play-1.1/modules/test-runner/lib/play-test-runner.jar&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt; "/>
        
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt; &lt;runtimeClasspathEntry id=&quot;org.eclipse.jdt.launching.classpathentry.defaultClasspath&quot;&gt; &lt;memento exportedEntriesOnly=&quot;false&quot; project=&quot;test&quot;/&gt; &lt;/runtimeClasspathEntry&gt; "/>
        
<listEntry value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt; &lt;runtimeClasspathEntry internalArchive=&quot;/test/conf&quot; path=&quot;3&quot; type=&quot;2&quot;/&gt; "/>
    
</listAttribute>
    
<booleanAttribute key="org.eclipse.jdt.launching.DEFAULT_CLASSPATH" value="false"/>
    
<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="play.server.Server"/>
    
<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="test"/>
    
<stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS" value="-Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n -Dplay.debug=yes -Dplay.id=test -Dapplication.path=&quot;${project_loc:test}&quot; -Djava.endorsed.dirs=&quot;D:\Program Files\play-1.1/framework/endorsed&quot; -javaagent:&quot;D:\Program Files\play-1.1/framework/play.jar&quot;"/>
</launchConfiguration>

      

posted on 2010-02-01 13:38 冰是没有未来的,因为它的永恒 阅读(1702) 评论(0)  编辑  收藏 所属分类: playframework

当下,把心放下 放下如果是可能的,那一定是在当下,
不在过去,也不在未来。
当下放下。唯有活在当下,你的问题才能放下。