272273
1
 
1
 
2
/*
2
/*
3
 * Copyright 2009, Chris Bedford, d.b.a, Build Lackey Labs. All Rights Reserved.
3
 * Copyright 2009, Chris Bedford, d.b.a, Build Lackey Labs. All Rights Reserved.
4
 *
4
 *
5
 *
5
 *
6
 *       Licensed under the Apache License, Version 2.0 (the "License");
6
 *       Licensed under the Apache License, Version 2.0 (the "License");
7
 *       you may not use this file except in compliance with the
7
 *       you may not use this file except in compliance with the
8
 *       License. You may obtain a copy of the License at
8
 *       License. You may obtain a copy of the License at
9
 *
9
 *
10
 *         http://www.apache.org/licenses/LICENSE-2.0
10
 *         http://www.apache.org/licenses/LICENSE-2.0
11
 *
11
 *
12
 *       Unless required by applicable law or agreed to in writing, software
12
 *       Unless required by applicable law or agreed to in writing, software
13
 *       distributed under the License is distributed on an "AS IS" BASIS,
13
 *       distributed under the License is distributed on an "AS IS" BASIS,
14
 *       WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
 *       WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
 *
15
 *
16
 *       See the License for the specific language governing permissions
16
 *       See the License for the specific language governing permissions
17
 *       and limitations under the License.
17
 *       and limitations under the License.
18
 *
18
 *
19
 */
19
 */
20
 
20
 
21
package com.lackey.provis.cmdline
21
package com.lackey.provis.cmdline
22
 
22
 
23
import com.lackey.provis.session.EndUserCreateSessionContext
23
import com.lackey.provis.session.EndUserCreateSessionContext
...
 
...
 
95
    ctx.localDepotRootDir = getLocalDepotRootDir(defaultLocalDepotDir)
95
    ctx.localDepotRootDir = getLocalDepotRootDir(defaultLocalDepotDir)
96
    ctx.prototypeDepotRootURL = depot_info.getPrototypeDepotURL()
96
    ctx.prototypeDepotRootURL = depot_info.getPrototypeDepotURL()
97
    ctx.cmdshell = getCommandShell()
97
    ctx.cmdshell = getCommandShell()
 
 
98
 
 
 
99
    ctx.cmdshellInitScriptPath = getCommandShellInitScriptPath()
98
    return ctx;
100
    return ctx;
99
  }
101
  }
100
 
102
 
...
 
...
 
133
            CommandShell.codeToCommandShellType)
135
            CommandShell.codeToCommandShellType)
134
  }
136
  }
135
 
137
 
 
 
138
  String getCommandShellInitScriptPath() {
 
 
139
 
 
 
140
  }
 
 
141
 
136
  String getSuggestedPathToDisplay(File file) {
142
  String getSuggestedPathToDisplay(File file) {
137
    if (file.isAbsolute()) {
143
    if (file.isAbsolute()) {
138
      return file.canonicalPath
144
      return file.canonicalPath
...
 
...
 
143
    logger.debug("getSuggestedPathToDisplay relative path from user.home: : $displayedPath")
149
    logger.debug("getSuggestedPathToDisplay relative path from user.home: : $displayedPath")
144
    return displayedPath
150
    return displayedPath
145
  }
151
  }
 
 
152
 
146
}
153
}