https://github.com/quartercastle/nbcompile
Compile a NetBeans project from the terminal
https://github.com/quartercastle/nbcompile
cli compile java netbeans project
Last synced: 17 days ago
JSON representation
Compile a NetBeans project from the terminal
- Host: GitHub
- URL: https://github.com/quartercastle/nbcompile
- Owner: quartercastle
- License: mit
- Created: 2017-09-22T10:08:35.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-06-10T11:37:58.000Z (about 8 years ago)
- Last Synced: 2025-11-29T09:43:03.906Z (7 months ago)
- Topics: cli, compile, java, netbeans, project
- Language: Shell
- Homepage:
- Size: 195 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# nbcompile
[](https://www.npmjs.com/package/nbcompile)
[](https://travis-ci.org/kvartborg/nbcompile)
Compile NetBeans projects directly from your terminal.
### Requirements
This script is using Apache [`Ant`](https://ant.apache.org/) under the hood to compile
the source, your need the latest version for this to work.
Supported platforms are `macOS` and `linux`, it should work on `Windows`
with the bash emulator.
### Install
Use npm to install the script globally.
```sh
npm install -g nbcompile
```
Or clone this repo and place the `nbcompile.sh` in `/usr/local/bin`.
```sh
git clone https://github.com/kvartborg/nbcompile
cp -a nbcompile/bin/nbcompile.sh /usr/local/bin/nbcompile
```
### Usage
Navigate to a NetBeans project in your terminal and run the `nbcompile` command.
This will compile and run your java code like the NetBeans IDE.
```sh
cd my/netbeans/project
nbc
```
> The command is aliased as both `nbcompile` and `nbc`.
#### Clean & build
NetBeans clean and build feature is also supported by nbcompile, run the `clean` command and the project dist and build folder will be cleaned before execution.
```sh
nbc clean
```