Skip to content

Commit

Permalink
GRIFFON-478 commands are not executed with their defualt environment
Browse files Browse the repository at this point in the history
  • Loading branch information
aalmiray committed Mar 13, 2012
1 parent 8f36cf8 commit c50207b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
Expand Up @@ -61,6 +61,7 @@ public void setCommand(String name) {
}

public String getEnvironment() {
/*
boolean useDefaultEnv = environment == null;
String env;
if (useDefaultEnv && commandName != null) {
Expand All @@ -74,6 +75,8 @@ public String getEnvironment() {
System.setProperty(Environment.DEFAULT, String.valueOf(useDefaultEnv));
return env;
*/
return environment;
}

public String lookupEnvironmentForCommand() {
Expand Down
10 changes: 3 additions & 7 deletions subprojects/griffon-resources/src/app/conf/BuildConfig.groovy
Expand Up @@ -3,15 +3,14 @@ environments {
development {
signingkey {
params {
sigfile = 'GRIFFON'
keystore = "${basedir}/griffon-app/conf/keys/devKeystore"
alias = 'development'
// sigfile = 'GRIFFON'
// keystore = "${basedir}/griffon-app/conf/keys/devKeystore"
// alias = 'development'
storepass = 'BadStorePassword'
keypass = 'BadKeyPassword'
lazy = true // only sign when unsigned
}
}

}
test {
griffon {
Expand All @@ -24,9 +23,6 @@ environments {
production {
signingkey {
params {
sigfile = 'GRIFFON'
keystore = 'CHANGE ME'
alias = 'CHANGE ME'
// NOTE: for production keys it is more secure to rely on key prompting
// no value means we will prompt //storepass = 'BadStorePassword'
// no value means we will prompt //keypass = 'BadKeyPassword'
Expand Down

0 comments on commit c50207b

Please sign in to comment.