Suppose that I have two properties file (say a.properties and b.properties) which contains key value pair. How to write ANT task to create a new properties file (say c.properties) which contains the key value pair of both these files(a and b). Please help.
Creating an ANT macro to combine two properties file
866 views Asked by Sharath At
1
There are 1 answers
Related Questions in ANT
- How to build using Eclipse Tycho
- Ant Junit ForkMode with Suites
- Apache Ant - How to handle the target error?
- Ant dont upload file
- Eclipse Ant Javadoc - warning of no comment on private field
- Code coverage is not getting generated. Previously I used to get it properly, now they upgraded to rhel 8. Now, no code coverage is coming at all
- Extract *.jar from *.aar and import; Failed resolution of: Lcom/xxx/xxx/xxx/R$layout when APK running
- Ant continues to add the wrong jar file to the classpath even after I've changed it
- How to exclude Kotlin from OkHttp?
- Jetty Error: I' starting my web aap and all of sudden Getting this Error
- Can ant break upon encountering an undefined property?
- ZipException opening "xalan.jar"
- Using ResourceBundle and jar files with ant
- how can we invoke custom ant task from junit
- How do I configure VS Code to debug an opensource project written in Java that uses ANT as its build command?
Related Questions in PROPERTIES-FILE
- Groovy - how to read properties from a property file in a jar on the classpath
- Spring override environment variable from application.properties
- How to configure RewriteAppender with multiple AppenderRefs in a properties file?
- How to get parent directory of classpath inside @PropertySource()
- What is the correct Java properties file translation of this XML configuration?
- How to properly configure custom PatternSelector in log4j2 Java Properties file
- Find unused properties
- Java .properties file not found in directory
- Create internationalized properties under maven directory "test/resources" is a bad idea?
- Any better way to convert from YAML or JSON into a properties file (flatten object) using DataWeave?
- Why are the properties files missing in the target directory after compilation in Eclipse?
- Maven filtered properties file
- Handling multiple properties file in camel
- How to specify wildcard in application.properties?
- How can I @Autowire in an inner type in my custom @ConfigurationProperties?
Related Questions in BUILD.XML
- Ant command 'war' fails with error 'jvxml.xml.lib doesn't denote a zipfileset or a fileset'
- Build.xml in target folder is not updated with the jar dependencies newly added -- using ant to build
- How can get multi value from java class and use it as property in ant task (build.xml)
- Getting condition doesn't support the nested "then" element in <condition>
- java.lang.NoClassDefFoundError in Ant
- I have a build.xml file but not a pom file for a pre-existing project, are they interchangeable?
- Ant multi module projects to maven
- Is it possible to use multiple Java versions within same build.xml - ANT build. - ANTLR3.3
- is there any way to create new .xml activity file connected to .kot or .jav file
- org.eclipse.swt.SWTError: No more handles [MOZILLA_FIVE_HOME='/usr/lib/firefox'] (java.lang.UnsatisfiedLinkError: Could not load SWT library. Reasons
- Ant execution different depending on svn export
- Adding line numbers to stacktrace with build.xml
- Need development code for xml-apis 1.4.01
- downloaded 'sonarqube-ant-task-2.7.0.1612.jar' and set the classpath using it, but It doesn't work
- Java8 migrate appcfg to gcloud
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
You can use concat
see also https://ant.apache.org/manual/Tasks/concat.html
My tests show that if a.properties and b.properties contain the same properties the definition in b.properties is used. I don't know if this is documented to function like that.
a.properties
b.properties
ant output