dependencies

Using different versions of a python library in the same process

无人久伴 提交于 2019-12-23 09:49:40
问题 We've got a python library that we're developing. During development, I'd like to use some parts of that library in testing the newer versions of it. That is, use the stable code in order to test the development code. Is there any way of doing this in python? Edit: To be more specific, we've got a library (LibA) that has many useful things. Also, we've got a testing library that uses LibA in order to provide some testing facilities (LibT). We want to test LibA using LibT, but because LibT

Spring context dirty after each integration test

僤鯓⒐⒋嵵緔 提交于 2019-12-23 09:39:07
问题 I recently started as a freelancer on my current project. One of the thing I threw myself on, was the failing Jenkins build (it was failing starting from April 8th, a week before I started here). Generally speaking, you could see a buttload of DI issues in the log. First thing I did, was get all tests to work in the same way, starting from the same application context. They also implemented their own "mocking" thing, which seemed to fail to work correctly. After a discussion with the lead dev

Subversion and dependencies

痞子三分冷 提交于 2019-12-23 09:21:18
问题 I am trying to find a viable strategy to a following problem. We have several web projects which are dependent on our framework. Everything is stored in our SVN and has its own project with all the necessary directory structure (trunk, tags, branches). In an example - we have projects webprj01 and webprj02 and we have a framework frm01. All of those have usual SVN project structure - trunk, tags, branches. webprj01 and webprj01 are both dependent on frm01 and in real life frm01 is present as

Visual Studio: how to handle project dependencies right?

别等时光非礼了梦想. 提交于 2019-12-23 07:55:45
问题 I'm writing a program (in C++), which requires several VS projects, that I would like to put in the same VS solution. I'm using Visual Studio 2010. Here is simply the wanted architecture : I'm using a 3rd party library (A) for my project, I have all the headers and .lib files, that I compiled with the source code. With this library, I'm writing my own classes and function. That is my project (B). Then I would like to develop two interfaces for the users: A command line interface (C1) and a

How to include neccessary files to the output of independent client project?

隐身守侯 提交于 2019-12-23 07:54:22
问题 My solution consists of: Client - startup project, UI layer. Depends on: App App - library, application layer, assembler. Depends on: Lib1 , ... Lib1 - library, business logic layer. Needs a specific file to work properly: ThirdParty.dll I've added ThirdParty.dll to the Lib1 project ( Add > Existing Item... > Add ) and set Copy to Output Directory property of dll file to Copy Always . Now the dll file is copied to the Lib1 output and to the App output, but not to the Client output where I

Removing unnessary classes from third party libraries and JARs [duplicate]

人走茶凉 提交于 2019-12-23 07:49:41
问题 This question already has answers here : Java - How to reduce the size of third-party jars to reduce the size of your application (3 answers) Closed 5 years ago . I need to remove unused classes from third party JARs. Why tools should I use? I already tried to use ProGuard. However, it removes only unused classes from the project itself but the library jars - third party - always remain unchanged. 回答1: You can create an uber jar and then use ProGuard. Repackaging library classes into jars

Solving java classpath hell in legacy junit test suite

旧巷老猫 提交于 2019-12-23 07:45:46
问题 Suppose I have a legacy JUnit test suite that includes the following tests: public class AwesomeTest { public void testBusinessLogic() { ... [awesome mocking library] ... } } public class AmazingTest { public void testBusinessProcess() { ... [amazing xml operation] ... } } Now assume that Awesome Mocking library relies on Awesome BCEL bytecode generation library which contains the class org.useful.XMLClass and this library has version 1 of XMLClass. Now assume that Amazing Xml operation

Solving java classpath hell in legacy junit test suite

回眸只為那壹抹淺笑 提交于 2019-12-23 07:45:45
问题 Suppose I have a legacy JUnit test suite that includes the following tests: public class AwesomeTest { public void testBusinessLogic() { ... [awesome mocking library] ... } } public class AmazingTest { public void testBusinessProcess() { ... [amazing xml operation] ... } } Now assume that Awesome Mocking library relies on Awesome BCEL bytecode generation library which contains the class org.useful.XMLClass and this library has version 1 of XMLClass. Now assume that Amazing Xml operation

How to access modules bundled from webpack outside bundles/chunks

你离开我真会死。 提交于 2019-12-23 07:38:53
问题 Let me first say that I have tried searching for an answer to this and haven't found anything that works or even hints to it being possible. I recently moved from RequireJS configuration to rolling up with Webpack. In some places in our Groovy app we have have a script tag in a GSP that will access modules through RequireJS like so: <html> <body> ... <script> require([ 'jquery', 'customModule' ], function($, customModule){ // do something with jquery // ... // do something with customModule }

Is it possible to resolve dependencies in maven plugin from p2 repo

谁都会走 提交于 2019-12-23 07:05:56
问题 I am developing one maven plugin which will be used to override the default maven lifecycles and will use my code instead. I have multiple jar dependencies (eclipse and my another application plugins) for the same. I have p2 repo for those jars. How can I integrate this two to resolve all dependencies? Tycho can not be used as it can only be used for RCP application (my understanding / misunderstanding). Similar to this - question Any other workaround? 回答1: Have you had a look at this git ?