i used automator create shell script executes terminal command bundle .war file.
have saved file called: make_war_file
there easy way can create script this:
wait until folder appears: /output/folder_name
when does, run shell script called: make_war_file
?
if waiting folder problematic reason, can tell name of file inside of instead.
solution
sorry such newbie question, in case there others reading , solution found set automator "folder action" on "output" folder.
trying "workflow" application seems require manually running application, whereas folder action acts whenever folder changes.
folder action set on "output" folder, , starts "filter files" acts when folder named "folder_name" added, followed "run shell script" contains text:
cd /output/folder_name
jar cf help.war *
whenever oxygen xml editor generates output , deposits "folder_name" inside of folder named "output", shell navigates inside folder_name folder , runs jar command bundle web application called help.war.
seems work if "folder_name" didn't exist before it's written, i'll try figure out how specify act when new version of folder written, overwriting old one. if not have delete old 1 each time, isn't terrible chore.
Forums Macs Mac Programming
- iPhone
- Mac OS & System Software
- iPad
- Apple Watch
- Notebooks
- iTunes
- Apple ID
- iCloud
- Desktop Computers
- Apple Music
- Professional Applications
- iPod
- iWork
- Apple TV
- iLife
- Wireless
Comments
Post a Comment