https://github.com/flanker/build-script-examples
build script examples
https://github.com/flanker/build-script-examples
Last synced: over 1 year ago
JSON representation
build script examples
- Host: GitHub
- URL: https://github.com/flanker/build-script-examples
- Owner: flanker
- Created: 2012-05-15T09:28:26.000Z (about 14 years ago)
- Default Branch: master
- Last Pushed: 2012-05-15T14:00:37.000Z (about 14 years ago)
- Last Synced: 2025-01-22T23:16:16.630Z (over 1 year ago)
- Language: Java
- Size: 102 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
build script examples
=====================
check out the example code to your local environment:
git clone git://github.com/flanker/build-script-examples.git
**TESTED in Ubuntu 10.04 and Mac OS X 10.7**
### [Apache Buildr](http://buildr.apache.org/):
code in [build-script-examples/buildr/one](https://github.com/flanker/build-script-examples/tree/master/buildr/one)
`one` is a java based project which uses Apache Buildr as its build script. To try it yourself:
* first you need install jdk: (if you have jdk installed, then skip this step)
sudo apt-get install openjdk-6-jdk
* install `buildr`:
sudo gem install buildr
* open a shell and go to directory `CODE/buildr/one`
* to compile project, run the tests and package them into jar/war, just run:
buildr one:web:package
this command will download the required library and compile the source code, run junit test, then package the `library` module into a `jar` file and package `web` module into a `war` file.
* to run the web server, run:
buildr one:web:run
this command will run the web server. you can see the result at `http://localhost:8080/`