fmpp | Command line and Ant tool
kandi X-RAY | fmpp Summary
kandi X-RAY | fmpp Summary
FMPP is a general-purpose text file preprocessing tool that uses FreeMarker templates. It process entire directories recursively. It can be used for generating complete static websites, source code, configuration files, etc. It can insert data from sources like CSV, XML, and JSON into the generated files. You can add new kind of data sources in Java. FMPP can be used with UN*X-style command-line interface, or as Ant task, or can be embedded into your application using its Java API. FMPP was written in Java, thus it runs on all modern platforms (Windows, "Linux", OS X, etc.). FMPP is Free software under Apache License 2.0.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Load a CSV file
- Convert an array of strings to a string array
- Loads the data from a CSV file
- Gets the character at the specified value
- Read bytes into a character buffer
- Creates the error message from the source code
- Replaces all occurrences of a character tab with tabs
- Reads the next character
- Entry point for execution
- Concatenates two arrays
- Convert the given string to a rich text format
- Writes a Writer to a Writer
- Decode a string literal
- Send a progress event
- Load an ant property
- Load properties
- Parses the given text
- Converts the given string to an XML encoded value
- Displays a progress event
- Load data from a list of strings
- Convert a string to HTML encoding
- Convert a string to an XML encoding
- Gets the cached image info
- Escapes a given string
- Escapes the given string using the given encoding
- Handle a progress event
fmpp Key Features
fmpp Examples and Code Snippets
Community Discussions
Trending Discussions on fmpp
QUESTION
I am using typesafe.Config for loading application.conf in my Scala class and with this method the configuration files which resides in src/main/resources is resolved properly:
...ANSWER
Answered 2019-Mar-20 at 13:39You delete all .conf
files (when there's more than one with the same name) with
QUESTION
I have packaged my application into a jar file, however, when I try to execute it, the application fails with this error:
...ANSWER
Answered 2019-Feb-15 at 09:48Downgrading Scala to 2.11 solved the issues. I guess there are some problems with Kafka dependencies for Scala 2.12
QUESTION
I am attempting to convert an ant task which uses fmpp over to gradle. I am unable to get my project to build. I have the following in my build.xml file:
...ANSWER
Answered 2018-Oct-11 at 18:16The problem lies in the fact that both properties read from gradle.properties
and data properties are named exactly the same. To fix it you need to refer to value hidden under property with project
instance, e.g.:
QUESTION
It should be possible to configure freemarker to use the old #-less syntax.
However, to give users time to prepare for this change, in FreeMarker 2.1 and 2.2 the usage of # is optional, unless the programmer enables strict syntax mode in the FreeMarker configuration by calling setStrictSyntaxMode(true) on Configuration. In fact, we strongly recommend this to programmers. Starting from some later release this setting will be initially set to true. Also, you can specify if you want to use strict syntax or old syntax in the template files with the ftl directive.
How can I configure the fmpp preprocessor to use this old syntax with the Ant integration? Is there a setting or how can one call setStrictSyntaxMode(false)?
I am grateful for any assistance!
...ANSWER
Answered 2017-Feb-08 at 16:20It seems you can't... it's not exposed through FMPP's setting API. If it's any consolation, the new syntax is more practical, because it catches more typos, and because the Eclipse plugin supports it. So if you have some old templates, certainly it's better to take that 15 minutes and search-and-replace the FTL tags with the #
version.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install fmpp
You can use fmpp like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the fmpp component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page