diff --git a/app/carnival-core/build.gradle b/app/carnival-core/build.gradle index 48b410f..73fccb0 100644 --- a/app/carnival-core/build.gradle +++ b/app/carnival-core/build.gradle @@ -155,39 +155,6 @@ compileGroovy { -/////////////////////////////////////////////////////////////////////////////// -// TASKS - CLI -/////////////////////////////////////////////////////////////////////////////// -task carnivalLocalDirInit (type: JavaExec) { - description 'Run CarnivalLocalDirInit script to initilize the CARNIVAL_HOME directory' - - mainClass = 'carnival.core.cli.CarnivalLocalDirInit' - classpath = sourceSets.main.runtimeClasspath - standardInput = System.in - - if (System.getProperty('carnival.home')) { - systemProperty('carnival.home', System.getProperty('carnival.home')) - systemProperty('logback.configurationFile', System.getProperty('carnival.home') + '/config/logback.xml') - } - if (System.getenv('CARNIVAL_HOME')) { - systemProperty('carnival.home', System.getenv('CARNIVAL_HOME')) - systemProperty('logback.configurationFile', System.getenv('CARNIVAL_HOME') + '/config/logback.xml') - } - if (System.getProperty('logback.configurationFile')) { - systemProperty("logback.configurationFile", System.getProperty('logback.configurationFile')) - } else if (System.getenv('CARNIVAL_LOGBACK_CONFIG')) { - systemProperty("logback.configurationFile", System.getenv('CARNIVAL_LOGBACK_CONFIG')) - } - if (!(System.getProperty('carnival.home') || System.getenv('CARNIVAL_HOME'))) { - ant.echo "WARNING: Carnival home is not set. Use command line argument -Dcarnival.home= or environment variable CARNIVAL_HOME. See documentation." - if (!(System.getProperty('logback.configurationFile') || System.getenv('CARNIVAL_LOGBACK_CONFIG'))) { - ant.echo "WARNING: Logback configuration file not set. Use the -D command line argument like -Dlogback.configurationFile=/path/to/file.xml. Or, set the environment variable CARNIVAL_LOGBACK_CONFIG to /path/to/file.xml. See documentation." - } - } -} - -test.dependsOn 'carnivalLocalDirInit' - /* /////////////////////////////////////////////////////////////////////////////// diff --git a/app/carnival-core/src/main/groovy/carnival/core/cli/CarnivalLocalDirInit.groovy b/app/carnival-core/src/main/groovy/carnival/core/cli/CarnivalLocalDirInit.groovy deleted file mode 100644 index 350f671..0000000 --- a/app/carnival-core/src/main/groovy/carnival/core/cli/CarnivalLocalDirInit.groovy +++ /dev/null @@ -1,24 +0,0 @@ -package carnival.core.cli - - - -import carnival.core.config.Defaults - - - -/** - * Create the directory structure in the default location. - * - * Run: - * gradle carnivalLocalDirInit - */ -class CarnivalLocalDirInit { - - /** - * Create the directory structure in the default location. - * - */ - static void main(String[] args) { - Defaults.initDirectories() - } -}