resources

maven antrun copy resources to base target directory

Hello, I'm learning how to use maven for my standalone java apps but I don't understand how to do a recursive copy of all directories from /src/main/resources to /taget directory. I tried using antrun and resources plugin, but resources are copied to /target/classes and not to /target. What is wrong here? <build> <pluginManagement>...

flashbuilder 4 won't copy an xml file in release build

Hi! I have my own conf.xml file (src/conf/conf.xml) consists some properties (alphas, colors, etc). When i try to export release build, I see list of files which not includes that file. Why? When i run my application at debug it file places in "bin-debug" folder. ...

Reliable approach for loading resources in Java / JNLP

I'm writing a Java application that needs to access several resources in a .jar file that is run over JNLP. While the application works fine in my development environment (Eclipse) it doesn't work when executed through JNLP, apparently because it can't find the resource file in the jar. I've checked the resource file and the resources a...

Silverlight 4: XamlParseException when trying to bind with styles and resources

Hi Everyone I am using Silverlight 4 and I am trying to integrate one of the themes from the Silverlight 4 toolkit from April. My App.xaml reads as follows: <Application.Resources> <ResourceDictionary> <ResourceDictionary.MergedDictionaries> <ResourceDictionary Source="Themes/System.Windows.Controls.Theming.Exp...

How do you change what registry entries a program reads and writes?

I made a word processor by editing the resources of MS WordPad (for XP) and for some reason, when I apply my program as the default application for RTF files, the icons wouldn't show up and used icons from Word 2007. I read somewhere that Windows applications used the registry to locate icons and sometimes load crucial settings. Well, my...

Android HTML resource with references to other resources

I would like to add an HTML resource to my Android project with references to other resources (mainly drawables). Where should I put it and how do I reference other resources from it? Is there a particular way to pass the HTML resource to a WebView? Thanks! ...

Tutorials for writing 2D shaders?

I am needing to write some 2D shaders (not 3D, so no vertex shader code or any of that) in HLSL, but have a lot of trouble finding good tutorials. Do you have any resources I can use? ...

How to assign dynamic value to an xml attribute in a resource tag?

I have a very simple demo project in here. In my code I need an xml resource. In the xml resource I need to set the attribute value to be a dynamic value such as read from configuration file ect... I tried binding but it seems like all text binding syntax are passed to the attribute. So, how can we bind/or work-around to have value set ...

what is less resource intensive: Bindings, KVO, or Notifications

Rather than trying to run a bunch of tests. Does anybody know what is less resource intensive? Bindings, KVO, or Notifications? Has anyone tested to see as well? ...

(List of) Reasonable usage of F# and how OO-Programmer benefit from it

Possible Duplicate: What areas of code are you using f# for? F# is a language that will be used more and more. Microsoft has built in Visual Studio 2010 F# and the potential is huge, like I've read in several IT magazines. So let's collect useful information about the "right" application of F# and what advantages we could ge...

Maven: how to filter the same resource multiple times with different property values?

Our project uses Log4J, configured via log4j.properties file. We have multiple production servers, which log to different log files, so that the logs can be differentiated. So log4j.properties for node 1 looks like this: ... log4j.appender.Application.File=D:/logs/application_1.log ... log4j.appender.tx_info.File=D:/logs/tx_info_1.log ....

How to define and use resources in xaml so they can be used in C#

Hi ! Theoretically, I think that I can define Brushes and Colors etc. in an xaml file and assign that to a button.background in c#. But how do I do that? Where do I put my lineargradientbrush definition like this: <LinearGradientBrush x:Key="BlaBrush"> <GradientStop Offset="0" Color="Red"/> <GradientStop...

Java: Loading resources from the file system

My Project Setup I have the following project setup: \program.jar \images\logo.png In my code, I reference the image with the relative URL "images/logo.png". Problem If I run this program with the following command while in the directory: c:\projects\program_dir\bin\>java -jar program.jar Then everything works and Java is ...

can any one suggest good resources (including BOOKS) for C# 4.0 and ASP.Net 4.0 please.

I'm a Dot net programmer and want to start with .Net 4.0 now. Can any one please suggest me some good resources for C# 4.0 and ASP.Net 4.0? ...

Does webpage content go to DRAM or Video RAM, and what if Video RAM runs out?

If the project has a page that uses jCarousel, and it has a <ul> (or <div>) that is 15860 x 375px, with 32-bit / pixel, that's close to 24MB. Or, what if it is 1000 x 700 pixel per screenful, 6 screenful per webpage, and 5 tabs of such pages, with 32 bit per pixel 1000 x 700 x 6 x 5 x 4 = 84MB does these 24MB or 84MB go to Video RAM o...

wpf resource dictionary organization - data context

The pre-release wpf ribbon control uses commands as resources, and the commands aren't dps so you can't bind directly to them. With an attached property and subclass of the RibbonCommand, as described here, I wound up with a pattern similar to this: // as resources <ab:CommandReference x:Key="AddCommandRef" Command="{Binding AddComma...

Eclipse: Working with Systemresources

Hello all Based on feedback from http://stackoverflow.com/questions/861500/url-to-load-resources-from-the-classpath-in-java i have changed my project, to include my image resources into Images.jar My project setup is now /program.jar /Images.jar In my code i load my images using InputStream connectedImage = ClassLoader.getSystemRes...

Silverlight MVVM Business Application : Where to place the resource files ?

The default Silverlight Business Application (VS2010) creates some resources files (ValidationErrorResources.resx and RegistrationDataResources.resx) in the Web project and creates links to these in the Silverlight project. But in the client Silverlight project there are also some resource files (ApplicationStrings.resx and ErrorResourc...

Android OnClickListener - identify a button

Hey. I have the activity: public class Mtest extends Activity { Button b1; Button b2; public void onCreate(Bundle savedInstanceState) { ... b1 = (Button) findViewById(R.id.b1); b2 = (Button) findViewById(R.id.b2); b1.setOnClickListener(myhandler); b2.setOnClickListener(myhandler); ... } View.OnClickList...

Does android always package unused resources?

I have some resources in my app that are going to be loaded optionally for different brands. I don't want to set up entirely different projects each time we re-brand the app so I want to know if the resources that are not used will be always packaged in and if there is a way to avoid this. Here's an example: MyProject /res /layout...