English 中文(简体)
加入一个游戏框架项目
原标题:Adding more source folders to a play framework project

如何在游戏项目中拥有多个源夹? 我正在使用1.2.4和ec粒。 我想做的是,在游戏项目中使用另一个项目(如正常java项目)的源头。

通常的做法是,通过地产和建筑法,将双倍器作为源夹;java建造了一条道路和大体;连接源不可行。 因此,在什么地方,我必须补充责任,告诉我们想要做什么? 我知道,如果我想把一个杰尔档案连接起来,就必须在附属地书写。 y file file file files files files files files files

还可以在游戏项目中增加第三个来源,例如,“1. 估计2. 测试3. my计”。

最佳回答

您可在<代码>app/上建立 包装等级。

例如:

app/
    controller/
    models/
    views/
    org/
        myproject/
            MyClass.java
conf/
...

<代码>MyClass可在你的游戏项目中查阅import org.myproject。 MyClass

如果你再次试图处理对文件夹等级的制约因素,你可以尝试symbolicLink

问题回答

I think you can achieve that by creating a Play Module with your source folder from another project.

游戏模块实际上比你规范基础的组织小。

你可以在这里读到更多关于游戏模块的内容:

http://www.playframework.org/documentation/1.2.4/modules

http://playframework.wordpress.com/02/27/play-modules/

在Eclipse, Property on their project: Java Building Path > Project “Required Project on the Building path” > Add?





相关问题
Spring Properties File

Hi have this j2ee web application developed using spring framework. I have a problem with rendering mnessages in nihongo characters from the properties file. I tried converting the file to ascii using ...

Logging a global ID in multiple components

I have a system which contains multiple applications connected together using JMS and Spring Integration. Messages get sent along a chain of applications. [App A] -> [App B] -> [App C] We set a ...

Java Library Size

If I m given two Java Libraries in Jar format, 1 having no bells and whistles, and the other having lots of them that will mostly go unused.... my question is: How will the larger, mostly unused ...

How to get the Array Class for a given Class in Java?

I have a Class variable that holds a certain type and I need to get a variable that holds the corresponding array class. The best I could come up with is this: Class arrayOfFooClass = java.lang....

SQLite , Derby vs file system

I m working on a Java desktop application that reads and writes from/to different files. I think a better solution would be to replace the file system by a SQLite database. How hard is it to migrate ...