Skip to content

Instantly share code, notes, and snippets.

@gyfoster
Last active April 16, 2019 20:31
Show Gist options
  • Save gyfoster/2a454e96258f7bbbe3af5e43139b1ca7 to your computer and use it in GitHub Desktop.
Save gyfoster/2a454e96258f7bbbe3af5e43139b1ca7 to your computer and use it in GitHub Desktop.
A CLI script for deploying an app to a local WildFly server
@echo off
IF EXIST "C:\wildfly\standalone\deployments\myapp.jar*" (
del "C:\wildfly\standalone\deployments\myapp.jar*"
)
IF EXIST "C:\myapp\target\myapp.jar" (
copy C:\myapp\target\myapp.jar C:\wildfly\standalone\deployments\
)
echo. & echo Deploy complete!
pause
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment