An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

# nbcompile
[![npm version](https://img.shields.io/npm/v/nbcompile.svg)](https://www.npmjs.com/package/nbcompile)
[![Build Status](https://travis-ci.org/kvartborg/nbcompile.svg?branch=master)](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
```