jdeploy 2.0.0 → 2.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/bin/jdeploy.js ADDED
@@ -0,0 +1,36 @@
1
+ #! /usr/bin/env node
2
+ var shell = require("shelljs/global");
3
+ var userArgs = process.argv.slice(2);
4
+ var javaArgs = [];
5
+ var programArgs = [];
6
+ userArgs.forEach(function(arg) {
7
+ if (arg.startsWith('-D') || arg.startsWith('-X')) {
8
+ javaArgs.push(arg);
9
+ } else {
10
+ programArgs.push(arg);
11
+ }
12
+ });
13
+ var cmd = 'java';
14
+ javaArgs.forEach(function(arg) {
15
+ cmd += ' "'+arg+'"';
16
+ });
17
+ cmd += ' -jar "'+__dirname+'/JDeploy.jar" ';
18
+ programArgs.forEach(function(arg) {
19
+ cmd += ' "'+arg+'"';
20
+ });
21
+ var child = exec(cmd, {async: true});
22
+ process.stdin.setEncoding('utf8');
23
+
24
+ process.stdin.on('readable', () => {
25
+ var chunk = process.stdin.read();
26
+ if (chunk === null) {
27
+
28
+ return;
29
+ }
30
+ try {
31
+ child.stdin.write(chunk);
32
+ } catch(e){}
33
+ });
34
+ child.on('close', function(code) {
35
+ process.exit(code);
36
+ });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jdeploy",
3
- "version": "2.0.0",
3
+ "version": "2.0.1",
4
4
  "repository": "https://github.com/shannah/jdeploy",
5
5
  "description": "Deploy java apps using NPM",
6
6
  "main": "index.js",
package/bin/npm-debug.log DELETED
@@ -1,31 +0,0 @@
1
- 0 info it worked if it ends with ok
2
- 1 verbose cli [ '/usr/local/bin/node', '/usr/local/bin/npm', 'publish' ]
3
- 2 info using npm@3.10.5
4
- 3 info using node@v4.2.2
5
- 4 verbose publish [ '.' ]
6
- 5 silly cache add args [ '.', null ]
7
- 6 verbose cache add spec .
8
- 7 silly cache add parsed spec Result {
9
- 7 silly cache add raw: '.',
10
- 7 silly cache add scope: null,
11
- 7 silly cache add escapedName: null,
12
- 7 silly cache add name: null,
13
- 7 silly cache add rawSpec: '.',
14
- 7 silly cache add spec: '/Users/shannah/cn1_files/tests/HelloNPM/bin',
15
- 7 silly cache add type: 'local' }
16
- 8 error addLocal Could not install /Users/shannah/cn1_files/tests/HelloNPM/bin
17
- 9 verbose stack Error: EISDIR: illegal operation on a directory, read
18
- 9 verbose stack at Error (native)
19
- 10 verbose cwd /Users/shannah/cn1_files/tests/HelloNPM/bin
20
- 11 error Darwin 15.5.0
21
- 12 error argv "/usr/local/bin/node" "/usr/local/bin/npm" "publish"
22
- 13 error node v4.2.2
23
- 14 error npm v3.10.5
24
- 15 error code EISDIR
25
- 16 error errno -21
26
- 17 error syscall read
27
- 18 error eisdir EISDIR: illegal operation on a directory, read
28
- 19 error eisdir This is most likely not a problem with npm itself
29
- 19 error eisdir and is related to npm not being able to find a package.json in
30
- 19 error eisdir a package you are trying to install.
31
- 20 verbose exit [ -21, true ]