English 中文(简体)
• 如何增加当地对建筑的依赖
原标题:How to add local dependencies in buildr

“java/scala”项目 我有一些依赖性,不是在遥远的存放处,而是在我的档案系统中的其他地方。 我有两种选择,导致问题:

  1. 我可以在我的项目夹中添加一个<代码>lib/。 我怎么能告诉建筑商如何在班级道路上添加内容?

  2. 我可以使用内在的受扶养人管理系统。 Can 我指的是一个档案系统存放站而不是一个http://?

增 编

最佳回答

我在buildr邮件列表中找到了我正在寻找的解决方法。 compile.with()方法接受一个文件名数组(当然带有路径前缀)。因此,如果依赖关系是名为lib的目录中的jar包,您只需调用:

compile.with Dir[ lib/*.jar ] 

http://code>buildfile。 希望有助于其他<代码>buildr。

问题回答

关于您的第二个问题:

I can use the builtin dependencies management system. Can I indicate a filesystem repository path instead of an http one ?

是的,就像maven2一样,你可以利用文件http:/// protocol查找档案系统中的“再分配”存放处。





相关问题
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 ...

热门标签