dependencies

Using Opam to manage project dependencies

左心房为你撑大大i 提交于 2019-12-09 04:20:19
问题 I am a complete newbie to OCaml. Other languages I have used (for instance Scala, Clojure, Javascript on Node.js) have package managers that allow one to start a project as a clean slate that has a declared set of dependencies of known versions. I am trying to do something of the sort with Opam. Ideally, I would like to have a file that lists dependencies (and possibly OCaml version) so that a collaborator can start a project with git clone myproject <magic opam command> ocamlbuild and have a

Scout Eclipse present optional message on server side

我的梦境 提交于 2019-12-09 03:56:15
问题 Is there a way that message (Yes/No) is presented inside scout server? Reason for this is save with warnings. For example you have some logic for save some entity and some validity on this entity in backend. In some cases, user need to be inform that saving this record might lead to some trouble, so he need to confirm save. Right now I have implementation like this : Scout Client -> Scout Server -> Backend -> Scout Server -> Scout Client -> Scout Server -> Scout Backend save called pass

How do I automatically perform unit tests on each build?

三世轮回 提交于 2019-12-09 02:26:58
问题 How do I automatically perform unit tests on each build? I tried to add the Unit Tests target to the Project Target as a dependency, but that doesn't seem to run the actual tests. 回答1: Set the Test After Build build setting to Yes. Choose Product > Build For > Build For Testing to build the project and run the tests. Xcode 5 Update Xcode 5 does not support the Test After Build build setting. I don't know of any way to automatically run tests on each build in Xcode 5. From the OS X menu bar

Dependency Testing with Python

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-08 19:49:41
问题 I would like to write unit tests to test whether a dependency exists between two python packages. E.g.: a/ __init__.py models.py views.py ... b/ __init__.py models.py views.py ... a unit test to check that modules in package b don't import anything from modules in package a . The only solution I have so far is to scan the files and check that there isn't a "from a" or "import a" in the source code. Are there other ways of doing this? One of the requirements is that a/ and b/ must be in the

Postgresql driver not found for maven dependency

耗尽温柔 提交于 2019-12-08 18:56:41
问题 I am running a spring project with maven and I am trying to use postgresql. I've added the dependency to pom.xml, but at tomcat startup, I get the following error: java.lang.ClassNotFoundException: org.postgresql.Driver pom.xml dependency: <dependency> <groupId>org.postgresql</groupId> <artifactId>postgresql</artifactId> <version>9.3-1101-jdbc41</version> </dependency> It appears that Maven isn't downloading the jar so the Driver class is not found. Any ideas? 回答1: When I put this in my pom,

Generate a runnable jar and include libraries in it with Maven

只愿长相守 提交于 2019-12-08 18:32:32
I'm trying to compile a Java project with Maven and Eclipse but I tried a lot of solutions seen on the web but none of them seem to work. I just want to build the application, create a runnable jar and include the needed libraries. I tried maven-dependency or maven-assembly but I surely miss something because I fail every time. Here is my pom.xml, is it ok or does it miss something? <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">

When would I need maven dependency with runtime scope

早过忘川 提交于 2019-12-08 17:42:05
问题 I'm trying to understand the specific need for runtime scoped dependency in maven. In which situation I would need this, where neither compile or provided scope won't do? For example, I would use compile scope for dependency, when I have to call the library API directly in the code (compile against it) and package the dependency in the artifact or dependent project artifacts. I would use provided scope when I have to compile against the API, but don't package it (rather except it to be

How to add include/lib directory to all projects in MSVC 2015 solution?

青春壹個敷衍的年華 提交于 2019-12-08 17:03:48
问题 I have a big solution and adding/changing include directories in each project is extremely tedious. Is it possible to set common include folder for all projects in one step? Thanx. 回答1: The non-intuitive first step is to select multiple projects in the Solution Explorer window. Collapse the project nodes first if necessary. Click the first project then Shift+Click the last project. Make changes to the selection if necessary by using Ctrl+Click to remove or re-add projects from/to the

Composer - specify `composer.json` path

谁说我不能喝 提交于 2019-12-08 16:29:16
问题 Is it possible to specify the path to the composer.json file using the cli commands? Even better, is it possible to user a file with a different name? 回答1: I would suggest you take a look at this: https://getcomposer.org/doc/03-cli.md#environment-variables COMPOSER By setting the COMPOSER env variable it is possible to set the filename of composer.json to something else. For example: COMPOSER=composer-other.json php composer.phar install The generated lock file will use the same name:

Do static libraries, which depend on other slibs need the actual 'code' from them to work?

扶醉桌前 提交于 2019-12-08 15:50:25
问题 Sorry about the vague question title, I just want to ascertain some things. Static libraries don't link with other static libraries, right? So when I write a slib: A, that uses functionality of another: B, all I have to provide are the headers of B to A, and only those, even if A actually uses functionality from B? Yes? As long as exe: X, which uses A,has B.lib specified as linker input? So that at link time, the linker takes A.lib, which basically only knows that a function of B was called