Questions tagged [profiles]
202 questions
100
votes
7 answers
Default profile in Spring 3.1
In my application I have beans annotated with @Profile("prod") and @Profile("demo").
The first one, as you can guess :), is used on beans that connect to production DB and second one annotates beans that use some fake DB (HashMap or whatever)- to…

Michał Margiel
- 2,912
- 4
- 20
- 19
49
votes
4 answers
How to set active spring 3.1 environment profile via a properites file and not via an env variable or system property
We use the new environment profiles feature of spring 3.1. We currently set the active profile by setting the environment variable spring.profiles.active=xxxxx on the server to which we deploy the application.
We think this is a suboptimal solution…

Fabian
- 2,428
- 2
- 21
- 19
46
votes
3 answers
Using profiles to control which Maven modules are built
I have the following XML in my maven POM.xml:
default
true
default
!disabled
…

Galder Zamarreño
- 5,027
- 2
- 26
- 34
26
votes
1 answer
Maven Change a value in a file based on profile
I have a properties file called ApplicationResources.properties in my application with a property that changes depending on the environment. Let us say the property is:
resources.location=/home/username/resources
and this value is different…

Vincent Ramdhanie
- 102,349
- 23
- 137
- 192
20
votes
1 answer
Maven Build multiple profiles in one go
It is our policy to only build 1 deployable jar. all environment-specific configurations are kept separate, and we build them all together at once. so under our current Ant process, we have a properties file for each environment, loop over them, and…

Prabhjot
- 695
- 3
- 8
- 21
17
votes
1 answer
Location of Bluetooth Profile in Bluetooth System
My question is very basic.I need to know where does all Bluetooth profile such HID, HFP or HSP loaded in Bluetooth stack? Is it in Host layer or in Bluetooth Hardware Chipset such as USB dongle/module or in both Host and Chipset Side?
According to…

ABHIJITH KINI
- 221
- 1
- 13
15
votes
5 answers
Maven Profile - Activate Profile depending on packaging
I have a POM which declares web application stuff that is common to my projects. I use this as the parent for all web applications.
Is it possible to activate a profile only when the packaging is war? I have tried the property approach, but that…
Walter White
10
votes
3 answers
maven profile dependency
I have a maven module with 2 profile profile-a and profile-b
profile-a can be used independent but profile-b should be run with profile-a
mvn install -P profile-a // valid
mvn install -P profile-a,profile-b // valid
mvn…

mhshams
- 16,384
- 17
- 55
- 65
10
votes
3 answers
Django registration and multiple profiles
I'm using django-registration in my application. I want to create different kinds of users with different profiles.
For example, one user is a teacher and another user is a student.
How can I modify registration to set the user_type and create the…

Ste
- 101
- 1
- 3
9
votes
5 answers
Get the EXPIRATION date of a Provisioning Profile at Run-time?
I have an app that I routinely pass out to testers via the ad-hoc distribution method. Some of these testers are 'on the ball' and know enough about provisioning profiles and the quarterly expirations and can (if I forget) give me a nudge to rebuild…

iOSProgrammingIsFun
- 1,418
- 1
- 15
- 32
8
votes
2 answers
Activating a profile when files exists using wildcards
I activate in a parent pom.xml Spring support using
src/main/resources/*beans.xml
This works fine.
When I try to activate the CucumberJVM stuff in a profile using…

Peter Tillemans
- 34,983
- 11
- 83
- 114
7
votes
1 answer
ASP.Net profiles: difficulty setting up and using profile fields
I'm currently trying to use ASP.Net Profiles to store additional user information about users that register on our site.
Relevant sample code:
UserProfile.cs
public class UserProfile: System.Web.Profile.ProfileBase
{
public static UserProfile…

Frank Rosario
- 2,512
- 5
- 31
- 47
6
votes
2 answers
Skinning Android app with Maven build profiles
I've got mavenized Android application and customer wants support for the skinning at build time.
For example:
mvn clean install -P Developer,
mvn clean install -P Customer1,
mvn clean install -P Customer2
In other words, different customer needs…

MartinC
- 546
- 11
- 26
6
votes
2 answers
Storing user profile data in the users table or separate profile table?
I'm developing a quick side project that needs a users table, and I want them to be able to store profile data. I was already reaching for the ASP.NET profile provider when I realized that users will only ever have one profile.
I realize that…

SelAromDotNet
- 4,715
- 5
- 37
- 59
6
votes
2 answers
Defining beans per multiple spring profiles
I have 3 profiles in my app called: dev, test, prod.
I want to use spring profiles to customize bean injection so that for profile dev and test I will have one bean implementation and for profile prod I will have another.
The question is how to…

Luke
- 1,236
- 2
- 11
- 16