Questions tagged [properties-file]

A .properties file is either a simple text file or an XML file containing pairs of keys and values. Java and related technologies frequently use .properties files to store configuration information.

Properties files can also be used to store Strings for Internationalization and Localization and error messages.

and related technologies frequently use properties files.

Further Reading:

1316 questions
-1
votes
1 answer

Internationalize element with inner

I'm working with Spring Boot + Thymeleaf. I want to internationalize something like this:

Already registered? Log In

If I add th:text="#{prompt}" to the

tag, the inner span will be replaced by the property…

Mahozad
  • 18,032
  • 13
  • 118
  • 133
-1
votes
1 answer

Show properties file content and edit it from web page

I have a properties file whose content would be like below myprop=key1:value1,key2:value2 myprop2=key21:value21,key22:value22 second set myprop3=key31:value31,key32:value32 How can I show the content on a web page and make it editable, so that, if I…
AngryJS
  • 955
  • 5
  • 23
  • 47
-1
votes
3 answers

Executing as jar says "System cannot find the properties file specified"

I have a gradle project with app.properties file present in the src/main/resources folder. When i am trying to execute the project using jar, it says not able to read the app.properties file specified. Below is the code to read the properties file…
Yathish Manjunath
  • 1,919
  • 1
  • 13
  • 23
-1
votes
3 answers

Creating a class to wrap Properties

I want to create a class that wraps Properties and specifically hides the file I/O operations. I have come up with the abridged code below. This is intended to read the properties from a file at a fixed location outside of the class path. It also…
dazz
  • 119
  • 2
  • 14
-1
votes
1 answer

How to convert properties file to xml node.js

I have properties File and I want to convert it to XML by using node.js.I don't know how can I convert, please help me
Farhan Yaseen
  • 2,507
  • 2
  • 22
  • 37
-1
votes
1 answer

How to update properties file using pom.xml through command line

This is my properties file where i have added this variable databaseEnabled=${db.activedb} Path of my properties file src/main/resources/application-dev.properties This is my pom.xml where I have added this code
-1
votes
1 answer

Problems reading keys from properties file java

I have a properties file that is used to control specific variables within my application. All but one of the keys I am using work perfectly fine as the application has been working. The structure of the ini file…
-1
votes
1 answer

Spring Boot Configuration

I have 2 applications, one using Spring inside a web-app, and another local application using Spring Boot. These 2 share a configuration class between them. I cannot figure out how to configure the local application correctly. Here is the basic…
mangusbrother
  • 3,988
  • 11
  • 51
  • 103
-1
votes
2 answers

make a property loader for an android application

I am developing an android application and there are several variables that i might need to change wihtout wanting to recompile and deploy the android application into the android smartphone. In java i would do a propertyloader like the following i…
-1
votes
1 answer

Compiling a Java USB program with unusual errors/warnings

I was developing a USB reading Java program to get the name of the attached USB device. This is the code I wrote: import java.io.UnsupportedEncodingException; import java.util.List; import javax.usb.*; import javax.usb.UsbDevice; import…
-2
votes
1 answer

Java properties file. Using part of a value to create another value (key-value)

I know that by using the ${} we can use the value of another key. what if we want to use part of that value? for example, ignore the first 10 chars and use this value. or using regular expressions for more complex stuff. can this be done using only…
nicstratis
  • 25
  • 3
-2
votes
1 answer

Is String manipulation possible in YAML file?

Is String manipulation possible in YAML file?? The configuration file application.yml in a Spring Boot application is reading the version from the pom file as 10.10.11 The YAML file logging: …
Kishore_2021
  • 645
  • 12
  • 38
-2
votes
1 answer

Represent array of objects in Properties file java

Below I have represented my array of object in a my JAVA properties file arrNew = [{"arrA": [{"type": "abc","id": "xyz","url": [{"name": "A","value": "http://a.com"},{"name": "B","value": "http://b.com"}]}]}] How should I access the above values in…
MOFD
  • 253
  • 1
  • 3
  • 8
-2
votes
1 answer

Batch Scripting Properties file

this has to be done in batch. I need to be able to read an input file, and parse out certain sections only of lines that contain a specific string, then write that to an output file. For example: input =test.properties…
-2
votes
1 answer

Can I catch multiple exceptions by listing them in a properties file in Java?

I know with Java 7 we can include multiple exceptions in the same catch block and separate them with pipe symbol. My question is for listing them in another file and catching all the exceptions listed in that file
iris-data
  • 11
  • 1
  • 4
1 2 3
87
88