Below is my ant build. Here is how I'm trying to load the properties …. Attempting to load a resource from getClass.
See Class. For Ant, file paths are resolved relative to the working directory. Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Collectives on Stack Overflow. Learn more. Ask Question. Asked 10 years, 8 months ago. Active 10 years, 8 months ago. Viewed 12k times.
Thanks, - Dave. Apache Ant provides an optional task for editing property files. This is very useful when wanting to make unattended modifications to configuration files for application servers and applications.
Currently, the task maintains a working property file with the ability to add properties or make changes to existing ones. Since Ant 1. In general, linefeeds of the updated file will be the same as the first linefeed found when reading it.
The boolean attribute jdkproperties is provided to recover the previous behaviour of the task, in which the layout and any comments in the properties file were lost by the task. The rules used when setting a property value are shown below.
Create a build. This properties file has all the property object needed for the ANT build script. The properties file is loaded using the below syntax. It takes the property file name as the input in order to load the properties. While using this site, you have agree to read and accepted our terms of use and cookie policy.
0コメント