Skip to content

Commit

Permalink
#96. Remove CarnivalLocalDirInit, which is no longer required for tes…
Browse files Browse the repository at this point in the history
…ts. Will consult with hwilli about other potential ramifications before merging.
  • Loading branch information
augustearth committed Aug 18, 2022
1 parent 949c7fb commit dc84762
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 57 deletions.
33 changes: 0 additions & 33 deletions app/carnival-core/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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'


/*
///////////////////////////////////////////////////////////////////////////////
Expand Down

This file was deleted.

0 comments on commit dc84762

Please sign in to comment.