- Unzip yajsw-stable-11.04.zip to c:/yajsw-stable-11.04
- copy wrapper.conf to c:\yajsw-stable-11.04\conf
- cd C:\yajsw-stable-11.04\bat
- runConsole.bat
- If all is ok (no error in the output), please execute a test with your browser http://localhost:4516 (username admin, password admin)
- if you've some troubles, please add wrapper.debug=true in your wrapper file.
- If you can connect , please kill the runConsole.bat
- to install the service , please run installService.bat
- to uninstall the service , please run uninstallService.bat
This file contains 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
module=$1 | |
echo "remove submodule $module" | |
git submodule deinit $module | |
git rm $module | |
rm -rf .git/modules/$module |
This file contains 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
def gather_steps_from_block(b, tid): | |
if hasattr(b, "blocks") and len(b.blocks): | |
for i in b.blocks: | |
return gather_steps_from_block(i, tid) | |
else: | |
step_block_state = task2.steps(tid, b.id) | |
step_index = 0 | |
step_ids = [] | |
for st in step_block_state.steps: | |
step_index += 1 |
This file contains 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
echo "patching ${deployed.configurationFile}" | |
touch snippet.conf | |
echo "${deployed.comment} ${deployed.beginMarkup}" >> snippet.conf | |
echo "aValue ${deployed.avalue}" >> snippet.conf | |
echo "anotherValue ${deployed.anotherValue}" >> snippet.conf | |
echo "${deployed.comment} ${deployed.endMarkup}" >> snippet.conf |
This file contains 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
from java.io import File | |
from java.io import FileInputStream | |
from java.util import Properties | |
#Load properties file in java.util.Properties | |
def loadPropsFil(propsFil): | |
properties={} | |
propFil = Properties() | |
propFil.load(FileInputStream(propsFil)) |
This file contains 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
def mappings(): | |
mapping = {} | |
mapping['tomcat.VirtualHost']=(lambda c: c.server.host) | |
mapping['was.Cluster']=(lambda c: c.getHost()) | |
mapping['wls.Cluster']=(lambda c: c.getHost()) | |
mapping['wls.JmsServer']=(lambda c: c.getHost()) | |
mapping['cyber-ark.SshHost']=(lambda c: c) | |
mapping['overthere.SshHost']=(lambda c: c) | |
mapping['overthere.LocalHost']=(lambda c: c) |
This file contains 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
def deployedApplication(): | |
return specification.deployedOrPreviousApplication | |
environment = deployedApplication().environment | |
candidates = filter(lambda task: task.metadata['environment_id'] == environment.id, taskService.allCurrentTasks) | |
if len(candidates) == 1: | |
raise Exception("%d deployment task is running or has been scheduled on '%s'" % (len(candidates), environment.id)) |
This file contains 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
print getCurrentTask().title | |
print getCurrentTask().pythonScript.deploymentPackage | |
result = "hotfix" not in getCurrentTask().pythonScript.deploymentPackage |
This file contains 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
def deployedApplication(): | |
return specification.deployedOrPreviousApplication | |
version = deployedApplication().version | |
environment_id = deployedApplication().environment.id | |
applicationRequirements = version.applicationRequirements | |
print "Checking Application Requirements: %s " % applicationRequirements | |
missingRequirements = [] | |
for application in applicationRequirements.keys(): |
This file contains 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
from com.xebialabs.overthere.util import OverthereUtils | |
from java.io import PrintWriter | |
def comment(line): | |
if line.startswith(entry): | |
return "#"+line | |
else: | |
return line | |
def out_line(pw,line,lineSeparator): |
OlderNewer