A commandline survival kit for Java developers
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin
completions
libexec
share/fika
README.md

README.md

fika-utils

A commandline survival kit for developers on the JVM

Paolo Lulli 2016 - paolo AT lulli.net

fika-utils is a collection of commandline utilities to automate frequent tasks in the Java/Groovy/Scala world such as:

  • Finding which jar contains a given Class
  • Generate Ant project
  • Recall Maven project archetype
  • Generate a Scala project that builds with either Maven or Sbt
  • Putting every needed jar in the CLASSPATH
  • Generate a decent format for the final user

Subcommands

fika [ search:class | -s | --search-class ] <Classname> <path>

This command is useful to search the jar file that contains a certain class within a given path:

For example:

$ fika -s OutputStreamFactory /home/pielle/dev

Searching StreamFactory in /home/pielle/dev .................................................................................................................................................................................................................. /home/pielle/dev/github/shape-spring/shape-spring-web/target/shape-spring-pack/WEB-INF/lib/spring-jdbc-4.1.6.RELEASE.jar contains: [org/springframework/jdbc/datasource/embedded/OutputStreamFactory.class

fika project:java9 <project-name>

This command generates a Java 9 template project with 2 modules and a script to build a cut-down JRE containing only your own modules (about 40M size overall)

fika [ project:android | -pA | --project-android ] <project-name>

This command generates an Android project

fika [ project:maven | -pm | --project-maven ] <project-name>

This command generates a Maven project

fika [ project:servlet | -ps | --project-servlet ] <project-name>

This command generates a web project. The fastest web project, ever.

fika [ project:ant | -pa | --project-ant ] <project-name>

This command generates an Ant project

fika [ spring:boot | -sb | --spring-boot ] <project-name>

This command generates a Spring Boot project

fika [ project:scala | -pS | --project-scala ] <project-name>

This command generates a Scala project

What in a name

Since the Java folks (and programmers in general) have totally polluted the coffee-related namespace:

  • Java
  • Kaffeh
  • Caffe
  • CoffeeScript
  • Mocha
  • ...

I had to resolve for something else to name a bunch of scripts for daily survival in a highly IDE-driven environment. Therefore I decided to take up the swedish name for "Coffee Break".