system-properties Questions
4
Solved
I have an ant script which has a taskdef and the task creates an https internet connection and somethin with that SSL stuff is wrong. Thus I want to set the system property javax.net.debug=all to g...
Bunnie asked 15/1, 2014 at 20:54
5
Solved
I have a single application.yml configuration file for my Spring Boot app that defines two profiles (as described in the documentation).
When the production profile is enabled, I would like to se...
Cussed asked 27/4, 2016 at 16:30
6
Solved
I have a List<String> of file names from a folder and a certain file name as String. I want to detect whether the file name is in the list, but need to respect the underlying file system's pr...
Erysipelas asked 17/8, 2009 at 13:58
4
I have a project which runs correctly under the terminal command
mvn package exec:java -Dplatform.dependencies -Dexec.mainClass=Demo
Now, I need to debug it correctly (not terminal) with Intell...
Brummett asked 5/4, 2015 at 5:43
2
$java -version
prints like below
java version "1.8.0_40"
Java(TM) SE Runtime Environment (build 1.8.0_40-b27)
Java HotSpot(TM) 64-Bit Server VM (build 25.40-b25, mixed mode)
The info wh...
Chapel asked 29/4, 2016 at 9:31
1
Solved
I don't know if I'm overseeing something, but is it possible to use multiple geckodriver versions in the same JVM?
The problem is with
System.setProperty("webdriver.gecko.driver", "path of the g...
Hohenstaufen asked 4/2, 2020 at 12:30
3
Solved
If I specify a system property multiple times when invoking the JVM which value will I actually get when I retrieve the property? e.g.
java -Dprop=A -Dprop=B -jar my.jar
What will be the result ...
Clipped asked 8/6, 2012 at 22:20
3
Solved
For logging purposes I'm getting the Java version written in log while Java program is running.
I found out that I can get the version with
System.getProperty("java.runtime.version") -> 1.8.0_...
Quarters asked 28/3, 2019 at 13:36
1
We have a Java application that we need to ignore an expired self-signed cert, however we cannot modify the code to do this. I wondering if there was a System Property or environment variable that ...
Cretaceous asked 4/5, 2010 at 0:29
2
I am working on a web application which is running on tomcat server.
I have different properties files for the different environment, So I want to read my environment variable from pom file in java...
Whither asked 20/4, 2018 at 4:42
2
Solved
I'm reading Spring In Action book and there's is an example:
public BlankDisc(@Value("#{systemProperties['disc.title']}" String title){
}
But what is systemProperties here and where to declare i...
Seism asked 24/8, 2018 at 10:20
1
Solved
I needed a VBA procedure to retrieve the system's current battery charge level and charging status.
I was surprised not to find anything on Stack Overflow, and I eventually figured it out, so I'll...
Misinterpret asked 12/6, 2018 at 10:17
5
Solved
This nice article shows us how to print all the current system properties to STDOUT, but I need to convert everything that's in System.getProperties() to a HashMap<String,String>.
Hence if t...
Bourdon asked 26/6, 2013 at 22:27
8
Solved
I understand that I can specify system properties to Tomcat by passing arguments with the -D parameter, for example "-Dmy.prop=value".
I am wondering if there is a cleaner way of doing this by spe...
Geologize asked 16/12, 2008 at 20:59
4
Solved
I wonder which of the following is a preferred approach?
We can set things up as APP_HOME=/path/to/file (export in .profile or something along those lines) and access it as System.getenv("APP_HOME...
Laine asked 24/12, 2012 at 23:48
5
Solved
Is there an easier way to specify multiple System Properties on the command line to a Java program rather than having multiple -D statements?
Trying to avoid this:
java -jar -DNAME="myName" -DVE...
Highway asked 8/9, 2011 at 16:39
7
Solved
In Java we use System.setProperty() method to set some system properties. According to this article the use of system properties is bit tricky.
System.setProperty() can be an evil call.
It...
Beanie asked 26/5, 2009 at 4:17
0
I'm using maven and have a list of system properties -DA=alpha, -DB=beta -DS=random_stuff that I want to pass down to unit tests when maven runs, and which cannot go into the pom files.
Surefire a...
Nemeth asked 24/8, 2017 at 14:30
1
i need to communicate with two webservices from my application.
For one webservice i need to use soap1_1 version and for the other soap version is soap1_2. In this case what should be the value set...
Lamarckian asked 25/1, 2017 at 8:39
2
Solved
build.gradle
tasks.withType(Test){
systemProperties=System.properties
println systemProperties['param']
}
Now I can either pass parameters in the command line:
gradle test -Dparam=10
or pu...
Overhear asked 30/6, 2016 at 14:25
5
Solved
I am using Selenium for automating the tests. My application exclusively uses IE, it will not work on other Browsers.
Code:
import org.openqa.selenium.ie.InternetExplorerDriver;
import org.openqa...
Rickard asked 12/6, 2012 at 10:59
3
Solved
I'm sure I'm missing something really simple... I want to set the system property java.awt.headless to true for my sbt project. Reading the page on properties I think that I need to use system or s...
Infold asked 27/6, 2010 at 9:50
2
Borrowing from this helpful answer, I tried to pass -Dfoo=bar to sbt console.
Given an SBT project having only a build.sbt:
$cat build.sbt
scalaVersion := "2.11.8"
fork := true
I attempted:
$...
Assembler asked 13/5, 2016 at 15:20
1
Solved
Please note: Although I mention Swing and MacOS here, this question has nothing to do with either of them: I'm just providing them as a concrete example of what I'm trying to do.
I'm trying to s...
Fig asked 16/3, 2016 at 9:45
3
Solved
I am using __system_property_get() from sys/system_properties.h to get a system property. I am trying to use r10c ndk because I need arm64 toolchain.
__system_property_get() is defined in libc.so...
Loralorain asked 9/2, 2015 at 15:43
1 Next >
© 2022 - 2024 — McMap. All rights reserved.