dependencies

why project dependency affect linker settings

Hi, any idea why project dependency (Visual Studio) affects linker settings (C++)? I thought that it's enough to chceck linker settings (Additional depend...) or pragma in source code. It's not a big problem, I'm just curious. Thanks. ...

Maven stuck on old version of system dependency

My Maven project has a dependency on a non-Maven library, which is coded as a system dependency: <dependency> <groupId>com.example</groupId> <artifactId>foo</artifactId> <version>${foo.version}</version> <scope>system</scope> <systemPath>${foo.jar}</systemPath> </dependency> where the location of the library can be controlle...

Avoiding re-building prerequisites in Ant

I have an existing Ant project and would like to speed up the build process by avoiding re-building components that are already up to date. Ant permits you to specify that one target depends on another, but by default every prerequisite is always rebuilt, even if it is already up to date. (This is a key difference between Ant and make....

Grails and Local Maven Dependencies

Hi All, I'm developing a small web frontend in Grails. It is basically a "ultra light-weight" client app that is connected async through JMS. I have two dependencies in the project that I would like to pull from a Maven repository. They is activemq and acme-adapter-api, a inhouse dependency, not available at the remote repository. I ...

Clearing Grails Dependency Cache

Hi All, I run into some problems when trying to solve a problem I had with SNAPSHOT maven dependencies (see here). When running grails dependency-report, cached dependencies get listed, more or less like this: acme-adapter-api by com.acme 108 kB (0 kB downloaded, 108 kB in cache) As this answer suggests, you can run into trouble ...

How to make use of Grails Dependencies in your IDE

Hi All, So I finally got my dependencies working with Grails. Now, how can my IDE, eg IntelliJ or Eclipse, take advantage of it? Or do I really have to manually manage what classes my IDE knows about at "development time"? If the BuildConfig.groovy script is setup right (see here), you will be able to code away with vi or your favorite...

maven dependencies groovy

I'm running a project that has a dependency on groovy 1.7-beta-1. The gmaven plugin uses groovy version 1.6 as a dependency. In my pom, I specify in the dependency management section the grooyv-all version as : <dependencyManagement> <dependencies> <dependency> <groupId>org.codehaus.groovy</groupId> <artifactId>groovy-all</arti...

NUnit "missing" GPSVC.DLL on Windows 7/64

I recently upgraded from Vista/32 to Win7/64. On my old machine, everything was working fine. Unfortunately, on my new machine NUnit won't load my unit tests, with the error message "System.IO.FileNotFoundException: Could not load file or assembly 'UnitTest' or one of its dependencies. The system cannot find the file specified". (Act...

Static (iPhone) libraries, distribution, and dependencies

(Presumably the following question is not iPhone specific, aside from the fact that we would likely use a Framework or dynamic library otherwise.) I am building a proprietary iPhone SDK for a client, to integrate with their web back-end. Since we don't want to distribute the source code to customers, we need to distribute the SDK as a s...

HintPath vs ReferencePath in Visual Studio

What exactly is the difference between the HintPath in a .csproj file and the ReferencePath in a .csproj.user file? We're trying to commit to a convention where dependency DLLs are in a "releases" svn repo and all projects point to a particular release. Since different developers have different folder structures, relative references won'...

How to setup local dependency in grails plugin (classpath to the main app)?

Hi, I have a Grails app consisting of main app and its local module linked in BuildConfig.groovy: grails.plugin.location.'mymodule' = "modules/mymodule" In mymodule I would like to use Helper classes from the main app, however I cannot find any way of how to make mymodule dependent to the main app. I was thinking of adding some extra...

C#/WPF: Dependency Property is not updating the bound Property?

Hello, I'm trying to bind a Dependency Property from my UserControl to my MainViewModel. This is how the DependencyProperty looks like: public static DependencyProperty ItemHasChangesProperty = DependencyProperty.Register("ItemHasChanges", typeof(boo...

In Maven2, is there a way to scope a dependency to "package only" and keep it off the test classpath?

Setup I'm packaging a WAR with a number of legacy jar dependencies in it (for the sake of keeping this simple, they can not possibly be altered or excluded from the deployed WAR). Issue Including either or both of two of these jars will cause inexorable errors at test-time. If I exclude the dependencies altogether, the tests pass happil...

Best practices for creating libraries that use .NET namespaces

Is it bad practice to write a library that defines an interface dependent on another library? I know tight coupling is bad, but does this still apply when using .NET classes? For example, in .NET, if I have a library that returns a Color object, it would force a dependancy on System.Drawing on anything that uses my library. Would I be...

How to write a query for SQL Server 2008 that returns the dependencies of an object (Exactly what Management Studio shows with the "View Dependencies" menu)

Management Studio connected to SQL Server 2008 Right click on an object and choose "View Dependencies" Now you can navigate through de dependendies back and forth. How do I get the same information programmatically? (an SQL query?) ...

Which headers should I not use if I don't want my program to be linked with any of msvc*.dll's ?

Which headers should I not use if I don't want my program to be linked with any of msvc*.dll ? At the moment my application uses: kernel32 user32 shell32 msvcp90 msvcr90 I want to get rid of the bottom two files. I don't mind if I will have to rewrite certain aspects of the program. Because I know if you code in C and then link it ...

Dependency version management in maven

When declaring dependencies in maven, can you specify the minimum version the project depends on to, but have mvn exec use the latest binaries. When building a library, I would like to export to minimal set of dependencies (e.g. JUnit 4.0), but always want to use the latest dependencies myself (e.g. JUnit 4.8.1). ...

Finding dependencies in SQL Server 2005

Is there a dependable way to find dependencies among views and tables in SQL Server 2005? sys.sql_dependencies doesn't list all of my dependencies. (I thought I saw a similar thread here but can't find it now. Sorry if this is a dup). ...

How can I make building an Xcode target depend on a shell script?

I have a shell script that runs as part of a Run Script phase in my targets that conditionally copies some files into the product. If I modify the shell script then rebuild, the script is not run because the target does not know that there is a dependency there. How can I add a dependency so that modifications to the shell script cause ...

Conditional use of services in a domain object

So suppose my sandwich shop has two service interfaces, IMeatGetter and IVeggiesGetter. Now I have a domain object, Sandwich, with a property IsVegetarian. I want a method to select all the possible toppings, like void GetToppings { if IsVegetarian select (veggies) else select (veggies union meats) } Is it correct domain...