Blueprint
A single class, highly performant, easily extensible, zero external dependencies, and java-8 compatible templating engine for Java with same easily readable syntax as Nunjucks
File Explorer
- BenchmarkRunner.java
- SampleTemplateData.java
- Blueprint.java
- StdUtils.java
- SampleUsage.java
- full.blu
- small.blu
- BlueprintTest.java
- .gitignore
- jmh_report_template_full.txt
- jmh_report_template_small.txt
- LICENSE
- pom.xml
- README.md
# Use via CDN
jsDelivrjsDelivr serves any public GitHub repository as a CDN with zero setup. Pick a version and a file to get a ready-to-paste link and snippet.
Command Glossary
Commands referenced in this DOCs, explained below.
java
View Details ▼
java
Java application launcher.
java {{classname}}
Execute a Java `.class` file that contains a main method by using just the class name:
java -classpath {{path/to/classes1}}:{{path/to/classes2}}:. {{classname}}
Execute a Java program and use additional third-party or user-defined classes:
java -jar {{filename.jar}}
Execute a `.jar` program:
join
View Details ▼
join
Join lines of two sorted files on a common field.
join {{path/to/file1}} {{path/to/file2}}
Join two files on the first (default) field:
join -t ',' {{path/to/file1}} {{path/to/file2}}
Join two files using a comma (instead of a space) as the field separator:
join -1 {{3}} -2 {{1}} {{path/to/file1}} {{path/to/file2}}
Join field3 of file1 with field1 of file2:
mvn
View Details ▼
mvn
Apache Maven: build and manage Java-based projects.
mvn compile
Compile a project:
mvn package
Compile and package the compiled code in its distributable format, such as a `jar`:
mvn package {{[-D|--define]}} skipTests
Compile and package, skipping unit tests:
truncate
View Details ▼
truncate
Shrink or extend the size of a file to the specified size.
truncate {{[-s|--size]}} 10G {{path/to/file}}
Set a size of 10 GB to an existing file, or create a new file with the specified size:
truncate {{[-s|--size]}} +50M {{path/to/file}}
Extend the file size by 50 MiB, fill with holes (which reads as zero bytes):
truncate {{[-s|--size]}} -2G {{path/to/file}}
Shrink the file by 2 GiB, by removing data from the end of file:
replace
View Details ▼
replace
Replace files.
See also: `robocopy`, `move`, `del`.
replace {{path\to\file_or_directory}} {{path\to\destination_directory}}
Replace the destination file with the one from the source directory:
replace {{path\to\file_or_directory}} {{path\to\destination_directory}} /a
Add files to the destination directory instead of replacing existing files:
replace {{path\to\file_or_directory}} {{path\to\destination_directory}} /p
Interactively copy multiple files, with a prompt before replacing or adding a destination file:
