Last active
August 19, 2016 17:21
-
-
Save zverbatim/b6f45a7ae89d3fa9a05d874c04454785 to your computer and use it in GitHub Desktop.
Create folders need for a new groovy project
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Script: Create folders need for a new groovy project | |
# Takes: One argument for package name. Example : /com/acme/marketing | |
# Created: August 19, 2016 | |
# Description: Based of the documentation from https://docs.gradle.org/current/userguide/groovy_plugin.html | |
if [ $# -ne 1 ] | |
then | |
echo "Usage: $0 <package_name>" | |
echo "Example: $0 /com/acme/marketing" | |
exit | |
fi | |
PACKAGE=$1 | |
echo "creating the folder ..." | |
mkdir -p src/main/groovy/$PACKAGE | |
mkdir -p src/main/resources/$PACKAGE | |
mkdir -p src/test/resources/$PACKAGE | |
mkdir -p src/test/groovy/$PACKAGE | |
# assuming tree in installed | |
echo "project layout:" | |
tree |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment