dependencies

Whats the best way to resolve dependencies between Java projects?

Hi, I think most of you will know, programmers often reuse code from other software. I think, most of the time it is a good idea. But if you use code from another project your program depends on the other project. I my current case I got three java projects A, B and C. Now A uses B and B uses C. I'm using eclipse IDE and added B to th...

How can a build system support code generation but force declaration of all external dependencies?

I'm currently working on a build tool where its come up that it would be desirable to support code generation. Currently the tool simply compiles any out of date C and C++ source files it finds in the current folder when it's invoked. There's some support for custom build targets, which could create files, but the tool will ignore them b...

How do you determine the cause of crashes when it runs fine on your machines?

I wrote an application for Windows 7 using C# and VS2008 and it runs perfectly on the machine I developed it on and my laptop (doesn't have VS*). How can one determine the cause of these crashes? Is there a way to check for dependencies of a program? The error it gives has zero information in it and I've tried installing the latest .NET ...

Visual Studio DLL dependencies cause unnecessary re-link

I have a (native C++) visual studio solution with several projects in it, some of them being DLLs. The dependencies of the projects on each other is fed into "Project dependencies". Whenever a DLL is being changed and re-built, regardless of wether this change affects other projects or not (that is, only the implementation and not the de...

Getting a Target to run BEFORE anything else runs when building from Visual Studio

Hi, I'm trying to get a one-time costly target to run only when building a certain top-level project (that has many dependencies). I have no problem on getting this working from plain msbuild / command line build. I do this with setting and InitialTargets on the project, or alternatively with < BeforeBuild />. The tricky part is ...

Generate list of classes in order of dependency

Hi all, I'm doing a build script for a Java application to run inside the Oracle JVM. In order to import the 50-odd classes, it appears I need to bring them in in order so any dependencies are present before compilation. For each class, I'm running 'create or replace and compile java source {className} as {classPath}' for each file. D...

How can I specify dependency in JPA without links from owner entity?

The goal is to remove all Dependent when their Owner is deleted. I have the following classes: @Entity class Dependent { @ManyToOne(cascade = CascadeType.PERSIST, fetch = FetchType.LAZY, optional = false) @Column(name = "OWNER") private Owner _owner; } @Entity class Owner { ... } In the current implementation Dependen...

How to get Visual Studios build system to understand unmanaged dependencies of managed dlls?

When building managed code Visual Studio correctly (and recursively) copies dlls of referenced managed projects to the output folder of the project being build. However, if one the of those references is a managed DLL that depends on unmanaged dlls then these unmanaged DLLs are not copied to the output folder, even though their corresp...

Generate all project dependencies in a single file using gcc -MM flag

Hi all, I want to generate a single dependency file which consists of all the dependencies of source files using gcc -M flags through Makefile. I googled for this solution but, all the solutions mentioned are for generating multiple deps files for multiple objects. DEPS = make.dep $(OBJS): $(SOURCES) @$(CC) -MM $(SOURCEs) > $(DEP...

Code based examples on difference between Aggregation, Composition and Dependency.

What is the difference between different types of association i.e. aggregation, composition and dependency? explain with the help of code examples(in java, C++ or pseudo code). ...

Error: Servlet Jar not Loaded

I get the following error: INFO: validateJarFile(C:\dev\server\tomcat6\webapps Sempedia\WEB-INF\lib\servlet-api.jar) - jar not loaded. See Servlet Spec 2.3, sectoin 9.7.2. Offending class: javax/servlet/Servlet.class The existing resources out there say it is due to a conflict with the servlet.jar or in my case named servlet-api....

Using custom dependency properties as DataTrigger in WPF

I have a custom dependency property that I would like to use as a data trigger. Here is the code behind: public static readonly DependencyProperty BioinsulatorScannedProperty = DependencyProperty.Register( "BioinsulatorScanned", typeof(bool), typeof(DisposablesDisplay), new FrameworkPropertyMetadat...

How can I create a time-based Makefile rule?

I would like to have a Makefile target that gets rebuilt only if the target file is older than some time interval. As an example, say that I have some way of generating a key that is valid for one day, but generating it takes a non-trivial amount of time. I could just regenerate it each time I needed it: .PHONY: key key: sleep 5 &...

What is a quick way to run a single script to automatically install missing modules using only Perl core?

I inherited a project which is supposed to be able to be deployed to other servers. This project has a number of simple module dependencies which however might not be present on all target machines. As such I'd like to be able to run a single command line script that checks which Perl modules are installed and tries to automatically ins...

dependency management with maven

I have lately become a big fan of Maven for controlling the build cycle for my application. However I've encountered some rough edges with Maven's dependency management. I'm wondering if these are limitations of the tool and paradigm, necessary evils of dependancy management, or if I"m just using the tool incorrectly. First is the ...

setuptools "at least one of these" dependency specification

In some cases, there are various modules which each implement a common API (in my case, the old pure-python elementtree, cElementTree, lxml.etree, and the built-in xml.etree). I can write the module using ElementTree to try each of these options, and take the first one that exists according to my own preference order -- but I can't find ...

Implicitly including optional dependencies in Maven

I have a project A which has a dependency X. Dependency X has an optional dependency Y which doens't get included in A by default. Is there a way to include Y in my POM without explicitly including it? In Ivy they have a way to essentailly say include all optional dependencies of X, does Maven have a way to do this? ...

Transitive dependencies in maven plugins

Are dependencies in Maven plugins supposed to resolve their transitive dependencies or do they have to be manually added to the plugin dependencies? ...

What happens when two Java frameworks need third one but each of the two need different version of third one?

In my Java project I'm using two different frameworks (let's say A.jar and B.jar) and both of them require one common framework (let's say Log4j.jar) but in two different versions. How it is treated by Java if framework A needs Log4J v1.1 and B needs Log4j v1.2? Will it cause some kind of conflict/error or will by somehow (how?) resolved...

Circular dependencies

I have 2 projects. Project#2 has a reference to Project#1 Now I need to reference Project#2 in Project#1, but vs.net is complaining about a circular dependency. Is there a way out of this? ...