<commit_before># yaml-props
Create Java Properties files from a yaml file

## Example
POM excerpt

´´´xml
			<plugin>
				<groupId>be.redlab.maven</groupId>
				<artifactId>yamlprops-maven-plugin</artifactId>
				<version>0.0.1-SNAPSHOT</version>
				<configuration>
					<!-- Specify the target folder to parse to -->
					<target>target/generated-sources/config/</target>
					<!-- Specify the source yaml file -->
					<yamlfile>src/main/config/configuration.yaml</yamlfile>
					<!-- Specify the encoding of source yaml file, you can also use writeEncoding to define the encoding to write in, if not given readEncoding is used -->
					<readEncoding>UTF-8</readEncoding>
				</configuration>
				<executions>
					<execution>
						<phase>generate-sources</phase>
						<goals>
							<goal>yamlprops</goal>
						</goals>
					</execution>
				</executions>
			</plugin>
```
## yamlprops:yamlprops

### Available parameters:

*    extension (Default: properties)

      The fle extension for generated property files. Defaults to properties
      User property: extension

*    ignoreNotFound (Default: false)

      Ignore yaml file not found. Defaults to false. Set true if you do not want
      the build to fail when source file is not found.
      User property: ignoreNotFound

*    readEncoding (Default: ${project.build.sourceEncoding})

      The character encoding scheme to be applied when parsing the yaml file.
      Defaults to ${project.build.sourceEncoding}.
      User property: readEncoding

*    target (Default: src/main/resources/settings/${project.artifactId}/)

      The target location. If the path is relative (does not start with / or a
      drive letter like C:), the path is relative to the directory containing
      the POM.
      defaults to 'src/main/resources/settings/'
      User property: target

 *   writeEncoding (Default: ${project.build.sourceEncoding})
 
      The character encoding scheme to be applied when writing files. Defaults
      to ${project.build.sourceEncoding}.<commit_msg>more readme<commit_after># yaml-props
Create Java Properties files from a yaml file

## Example
POM excerpt

´´´xml
			<plugin>
				<groupId>be.redlab.maven</groupId>
				<artifactId>yamlprops-maven-plugin</artifactId>
				<version>0.0.1-SNAPSHOT</version>
				<configuration>
					<!-- Specify the target folder to parse to -->
					<target>target/generated-sources/config/</target>
					<!-- Specify the source yaml file -->
					<yamlfile>src/main/config/configuration.yaml</yamlfile>
					<!-- Specify the encoding of source yaml file, you can also use writeEncoding to define the encoding to write in, if not given readEncoding is used -->
					<readEncoding>UTF-8</readEncoding>
				</configuration>
				<executions>
					<execution>
						<phase>generate-sources</phase>
						<goals>
							<goal>yamlprops</goal>
						</goals>
					</execution>
				</executions>
			</plugin>
```

## yamlprops:yamlprops

### Available parameters:
output of mvn be.redlab.maven:yamlprops-maven-plugin:help -Ddetail=true 

*    extension (Default: properties)

      The fle extension for generated property files. Defaults to properties
      User property: extension

*    ignoreNotFound (Default: false)

      Ignore yaml file not found. Defaults to false. Set true if you do not want
      the build to fail when source file is not found.
      User property: ignoreNotFound

*    readEncoding (Default: ${project.build.sourceEncoding})

      The character encoding scheme to be applied when parsing the yaml file.
      Defaults to ${project.build.sourceEncoding}.
      User property: readEncoding

*    target (Default: src/main/resources/settings/${project.artifactId}/)

      The target location. If the path is relative (does not start with / or a
      drive letter like C:), the path is relative to the directory containing
      the POM.
      defaults to 'src/main/resources/settings/'
      User property: target

 *   writeEncoding (Default: ${project.build.sourceEncoding})
 
      The character encoding scheme to be applied when writing files. Defaults
      to ${project.build.sourceEncoding}.
{'fraction_non_alphanumeric': 0.09797297297297297, 'fraction_numerical': 0.0019305019305019305, 'mean_word_length': 3.103960396039604, 'pattern_counts': {'":': 0, '<': 61, '<?xml version=': 0, '>': 61, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '582482', 'n_tokens_mistral': 1317, 'n_tokens_neox': 1092, 'n_words': 391}