I run many of my projects to work using
java name.java
I was wondering if there is a way to add a hook to it, where will it communicate with SVN after running this command?
Thank!
Yes, Ant and Maven are preferable, but if you insist on doing it manually:
Linux: java Some.java && svn commit -m "baz" [..other args]
java Some.java && svn commit -m "baz" [..other args]
Windows: java Some.java & svn commit [..args]
java Some.java & svn commit [..args]
Unable to attach java executable itself.
, Ant Maven ( make) - , , , , ... .
shutdownHook Java-,
Runtime.getRuntime().addShutdownHook(new Thread() { ....do something... }
... , ...
, , , ? ?
Source: https://habr.com/ru/post/1750309/More articles:The site works fine in Mozilla, but not in IE. My js file is incompatible with IE - javascriptFailed to hide WinDbg address - debuggingQuestion about timers and variable intervals - c #What is the best way to send structures containing enum values ββthrough sockets in C - cSession is null when inheriting from System.Web.UI.Page - inheritanceHow to return a value based on a type of generic T - genericsRails 'Missing Essential Gems' Error for Installed Gems - ruby ββ| fooobar.comIs it possible to limit the method call method in PHP? - scopeCan I ignore ScalaCheck / Specs warnings when using SBT with ScalaTest? - scalaHow to get MyEclipse to actively deploy a JavaScript file in my JBoss instance? - javaAll Articles