# grunt-tomcat

> Easy start and stop a local Tomcat Server

Latest version **0.0.3** (published 2015-05-04) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install grunt-tomcat
pnpm add grunt-tomcat
yarn add grunt-tomcat
bun add grunt-tomcat
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 0.0.3 |
| Published | 2015-05-04 |
| First published | 2015-05-04 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 0.8.0 |
| Dependencies | 2 |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Author | Emmanuel Vuigner |
| Maintainers | maiis |
| Keywords | gruntplugin |

## Links

- npm: https://www.npmjs.com/package/grunt-tomcat
- Repository: https://github.com/maiis/grunt-tomcat
- Issues: https://github.com/maiis/grunt-tomcat/issues
- npm.io page: https://npm.io/package/grunt-tomcat

## Dependencies (2)

- [which](https://npm.io/package/which.md) ^1.0.9
- [cross-spawn](https://npm.io/package/cross-spawn.md) ^0.2.9

## Recent versions

- 0.0.3 (latest) — 2015-05-04
- 0.0.2 — 2015-05-04
- 0.0.1 — 2015-05-04

## README

# grunt-tomcat

> Easy start and stop a local Tomcat Server

## Getting Started
This plugin requires Grunt.

If you haven't used [Grunt](http://gruntjs.com/) before, be sure to check out the [Getting Started](http://gruntjs.com/getting-started) guide, as it explains how to create a [Gruntfile](http://gruntjs.com/sample-gruntfile) as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:

```shell
npm install grunt-tomcat --save-dev
```

Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:

```js
grunt.loadNpmTasks('grunt-tomcat');
```

## The "tomcat" task

### Overview
In your project's Gruntfile, add a section named `tomcat` to the data object passed into `grunt.initConfig()`.

```js
grunt.initConfig({
  tomcat: {
    options: {
      // Task-specific options go here.
    }
  },
})
```

### Options

#### options.bootstrap
Type: `String`

The path to the catalina bootstrap file (.sh)


### Usage Examples
```bash
grunt tomcat:start
grunt tomcat:stop
```

#### Default Options
In this example, the default options are used to do something with whatever. So if the `testing` file has the content `Testing` and the `123` file had the content `1 2 3`, the generated result would be `Testing, 1 2 3.`

```js
grunt.initConfig({
  tomcat: {
    options: {
      bootstrap: '~/tomcat/bin/catalina.sh'
    },
  },
})
```

## Contributing
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using [Grunt](http://gruntjs.com/).

## Release History
_(Nothing yet)_

## TODO
- Sync files changes to tomcat webapps folder

## License
Copyright (c) 2015 Emmanuel Vuigner. Licensed under the MIT license.

---
_Source: https://npm.io/package/grunt-tomcat · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
