Created
August 19, 2013 21:55
-
-
Save willis7/6274651 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
<target name="bounce-svc" description="Bounce service on HOST"> | |
<bounceService server="${j2ee.host}" service="beasvc ${weblogic.domain.name}_${weblogic.deploy.target}" /> | |
</target> | |
<macrodef name="bounceService"> | |
<attribute name="server" /> | |
<attribute name="service" /> | |
<sequential> | |
<echo message="Bouncing @{service} on @{server}" /> | |
<exec executable="sc" outputproperty="dummy"> | |
<arg line="\\@{server} stop "@{service}"" /> | |
</exec> | |
<exec executable="sc" outputproperty="dummy"> | |
<arg line="\\@{server} start "@{service}"" /> | |
</exec> | |
<echo message="Completed bounce of @{service} on @{server}" /> | |
</sequential> | |
</macrodef> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment