在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:skeeto/sample-java-project开源软件地址:https://github.com/skeeto/sample-java-project开源编程语言:Java 100.0%开源软件介绍:Sample Java ProjectThis is a reference for setting up a new Ant-based Java project. It contains most of the little Ant tricks I've learned over the years. When I start a new Java project I clone this repository, remove sections of build.xml that I don't care about for that particular project, set the project properties, clear out the sample sources, and get to work. SetupBuilding this project requires that Ivy be available to Ant. All you
need is ivy.jar in Ant's classpath (in your DependenciesYou will need to have Astyle installed and in your path for the "format" target to work. If it's missing, that's fine. It won't affect any other targets. There is a "hotswap" target for replacing live code while an application is running. You'll need the hotswap Ant extension installed to use it. This target is to be used alongside the "run-hotswap" target, which enables hotswapping in the JVM. You can demo this for yourself by running "run-hotswap" in a terminal, editing the printed string in the code, and running "hotswap" in another terminal. The printed message in the running program should change to the new string. BundlesTake note of the sample PhilosophyI hate coding absolute paths in my build script and I hate including built files as part of the base project. My philosophy is that the environment should be set up so that the tool can easily find the external resources they need (JUnit, etc.) from the system or dependency manager. It's the system or dependency manager that provides the libraries. Anyone who has the proper development environment set up -- one that works across many projects -- should be able to clone the repository and do a build simply by running the build program with no special arguments. There should be no need to edit or install anything into the project space for the initial build. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论