git-changelog-command-line 1.94.0 → 1.96.6
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/build/libs/git-changelog-command-line-1.96.6-javadoc.jar +0 -0
- package/build/libs/git-changelog-command-line-1.96.6-javadoc.jar.asc +11 -0
- package/build/libs/git-changelog-command-line-1.96.6-sources.jar +0 -0
- package/build/libs/git-changelog-command-line-1.96.6-sources.jar.asc +11 -0
- package/build/libs/git-changelog-command-line-1.96.6-tests.jar +0 -0
- package/build/libs/git-changelog-command-line-1.96.6-tests.jar.asc +11 -0
- package/{jdeploy-bundle/git-changelog-command-line-1.94.0.jar → build/libs/git-changelog-command-line-1.96.6.jar} +0 -0
- package/build/libs/git-changelog-command-line-1.96.6.jar.asc +11 -0
- package/index.js +2 -0
- package/package.json +16 -29
- package/jdeploy-bundle/jdeploy.js +0 -165
|
Binary file
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
-----BEGIN PGP SIGNATURE-----
|
|
2
|
+
Version: BCPG v1.64
|
|
3
|
+
|
|
4
|
+
iQEcBAABCgAGBQJhmTY+AAoJEJxRmnfYMAu7Xz0H/3a0tBJhSkVUIT8UzOtCRvzC
|
|
5
|
+
RccoN8mrAh3fvhIP1bM3Xt7JpVluIpY6S0J8W/YMj1r9LyPVHcOnvvBt8vHAtFzA
|
|
6
|
+
bRYaoTXYLLmGd+dRPLtGM/svif/fveLOz3rfJtQ3T987OvtZ+0xGw08tfab9ozK3
|
|
7
|
+
XKzL+HJlH6rFbAdoetAwunl6U0Mxe4x0jPUDf1SXvD+W8USD/wW8njoU4nKbS8d/
|
|
8
|
+
z76aunVzLzSYkXPx95KY953tTGdlUIHpkBJqYaod/VYXX3zynMZujuluVB8rR+0L
|
|
9
|
+
p0C2o5YrATG6403werNq7I5zJ4QOgmVt/YlWwg4hu3q8bMKrRvu6OV/62Z2AjRo=
|
|
10
|
+
=cESA
|
|
11
|
+
-----END PGP SIGNATURE-----
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|
+
Nw9Clzix/XR4FodIVErQwdnKT6smII7gPbDY/w8BV/cbKfULq8TWMfxSw8DqPPc=
|
|
10
|
+
=GpHh
|
|
11
|
+
-----END PGP SIGNATURE-----
|
|
Binary file
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
-----BEGIN PGP SIGNATURE-----
|
|
2
|
+
Version: BCPG v1.64
|
|
3
|
+
|
|
4
|
+
iQEcBAABCgAGBQJhmTY+AAoJEJxRmnfYMAu7iZYH+wU/IMHUreIuwQxRxLjb4+w8
|
|
5
|
+
0GuYH9Xm4GE3hpA/eR8pXyt5rVJwGmbDxNltjnkrDds6g6Vu7MwCfAvcUdSMQojP
|
|
6
|
+
tupYdMHpzN7ZfDNnLrKVe4hH3lqBpH1AJJwoJVjh8xMGUH7oIS1cY8k4eYRoCOIf
|
|
7
|
+
rwmEzD6He0+PKAzpFmVPC2PyJGbosRVko9zzaLFkF0gv63KahKBGHLYEz++6SUk4
|
|
8
|
+
N8jcDDEwa5n3oWys2sGcLNBJMtTgAwzu26Pg+o2A35JpgJASyCzSY+3Jg0EAC0Vl
|
|
9
|
+
4Fiju20Nz3HAe+5qJ6UhpZn8hWOCwlmRCvHVzzl1x6BHviTSThmdP+Udn0X5FvM=
|
|
10
|
+
=NJlg
|
|
11
|
+
-----END PGP SIGNATURE-----
|
package/index.js
ADDED
package/package.json
CHANGED
|
@@ -1,30 +1,17 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
"git-changelog-command-line"
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
"
|
|
9
|
-
"
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
},
|
|
19
|
-
"dependencies": {
|
|
20
|
-
"shelljs": "^0.7.5"
|
|
21
|
-
},
|
|
22
|
-
"license": "Apache 2",
|
|
23
|
-
"name": "git-changelog-command-line",
|
|
24
|
-
"files": [
|
|
25
|
-
"jdeploy-bundle"
|
|
26
|
-
],
|
|
27
|
-
"scripts": {
|
|
28
|
-
"test": "echo \"Error: no test specified\" && exit 1"
|
|
29
|
-
}
|
|
30
|
-
}
|
|
2
|
+
"version": "1.96.6",
|
|
3
|
+
"name": "git-changelog-command-line",
|
|
4
|
+
"homepage": "https://github.com/tomasbjerre/git-changelog-command-line",
|
|
5
|
+
"repository": "https://github.com/tomasbjerre/git-changelog-command-line",
|
|
6
|
+
"author": "Tomas Bjerre",
|
|
7
|
+
"description": "Command line tool that generates changelog from a GIT repository.",
|
|
8
|
+
"runnable-jar-regexp": ".*build/libs/.*\\d+\\.\\d+\\.\\d+\\.jar$",
|
|
9
|
+
"files": [
|
|
10
|
+
"build/libs"
|
|
11
|
+
],
|
|
12
|
+
"bin": "./index.js",
|
|
13
|
+
"license": "Apache 2",
|
|
14
|
+
"dependencies": {
|
|
15
|
+
"npm-java-runner": "0.0.14"
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -1,165 +0,0 @@
|
|
|
1
|
-
#! /usr/bin/env node
|
|
2
|
-
var fail = reason => {
|
|
3
|
-
console.error(reason);
|
|
4
|
-
process.exit(1);
|
|
5
|
-
};
|
|
6
|
-
function getJavaVersion() {
|
|
7
|
-
try {
|
|
8
|
-
var javaVersionProc = exec('java -version', {silent:true});
|
|
9
|
-
if (javaVersionProc.code !== 0) {
|
|
10
|
-
return false;
|
|
11
|
-
}
|
|
12
|
-
var stdout = javaVersionProc.stderr;
|
|
13
|
-
//console.log(javaVersionProc);
|
|
14
|
-
//console.log("stdout is "+stdout);
|
|
15
|
-
var regexp = /version "(.*?)"/;
|
|
16
|
-
var match = regexp.exec(stdout);
|
|
17
|
-
var parts = match[1].split('.');
|
|
18
|
-
var join = '.';
|
|
19
|
-
var versionStr = '';
|
|
20
|
-
parts.forEach(function(v) {
|
|
21
|
-
versionStr += v;
|
|
22
|
-
if (join !== null) {
|
|
23
|
-
versionStr += join;
|
|
24
|
-
join = null;
|
|
25
|
-
}
|
|
26
|
-
});
|
|
27
|
-
versionStr = versionStr.replace('_', '');
|
|
28
|
-
//console.log("Java version string "+versionStr)
|
|
29
|
-
return parseFloat(versionStr);
|
|
30
|
-
} catch (e) {
|
|
31
|
-
return false;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
var getDirectories = dirPath => fs.readdirSync(dirPath).filter(
|
|
36
|
-
file => fs.statSync(path.join(dirPath, file)).isDirectory()
|
|
37
|
-
);
|
|
38
|
-
|
|
39
|
-
function getEmbeddedJavaDir() {
|
|
40
|
-
var _platform = os.platform();
|
|
41
|
-
var _driver;
|
|
42
|
-
switch (_platform) {
|
|
43
|
-
case 'darwin': _platform = 'macosx'; _driver = 'Contents' + path.sep + 'Home' + path.sep + 'bin'; break;
|
|
44
|
-
case 'win32': _platform = 'windows'; _driver = 'bin'; break;
|
|
45
|
-
case 'linux': _driver = 'bin'; break;
|
|
46
|
-
default:
|
|
47
|
-
fail('unsupported platform: ' + _platform);
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
var jreDir = getJdeploySupportDir() + path.sep + 'node_modules' + path.sep + 'node-jre' + path.sep + 'jre';
|
|
51
|
-
|
|
52
|
-
try {
|
|
53
|
-
return jreDir + path.sep + getDirectories(jreDir)[0] + path.sep + _driver;
|
|
54
|
-
} catch (e) {
|
|
55
|
-
//console.log(e);
|
|
56
|
-
return jreDir;
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
function getJdeploySupportDir() {
|
|
63
|
-
return os.homedir() + path.sep + ".jdeploy";
|
|
64
|
-
}
|
|
65
|
-
var fs = require('fs');
|
|
66
|
-
var os = require('os');
|
|
67
|
-
var path = require('path');
|
|
68
|
-
var jarName = "git-changelog-command-line-1.94.0.jar";
|
|
69
|
-
var mainClass = "{{MAIN_CLASS}}";
|
|
70
|
-
var classPath = "{{CLASSPATH}}";
|
|
71
|
-
var port = "0";
|
|
72
|
-
var warPath = "";
|
|
73
|
-
classPath = classPath.split(':');
|
|
74
|
-
var classPathStr = '';
|
|
75
|
-
var first = true;
|
|
76
|
-
classPath.forEach(function(part) {
|
|
77
|
-
if (!first) classPathStr += path.delimiter;
|
|
78
|
-
first = false;
|
|
79
|
-
classPathStr += __dirname + '/' + part;
|
|
80
|
-
});
|
|
81
|
-
classPath = classPathStr;
|
|
82
|
-
var shell = require("shelljs/global");
|
|
83
|
-
var userArgs = process.argv.slice(2);
|
|
84
|
-
var javaArgs = [];
|
|
85
|
-
javaArgs.push('-Djdeploy.base='+__dirname);
|
|
86
|
-
javaArgs.push('-Djdeploy.port='+port);
|
|
87
|
-
javaArgs.push('-Djdeploy.war.path='+warPath);
|
|
88
|
-
var programArgs = [];
|
|
89
|
-
userArgs.forEach(function(arg) {
|
|
90
|
-
if (arg.startsWith('-D') || arg.startsWith('-X')) {
|
|
91
|
-
javaArgs.push(arg);
|
|
92
|
-
} else {
|
|
93
|
-
programArgs.push(arg);
|
|
94
|
-
}
|
|
95
|
-
});
|
|
96
|
-
var cmd = 'java';
|
|
97
|
-
|
|
98
|
-
env['PATH'] = getEmbeddedJavaDir() + path.delimiter + env['PATH'];
|
|
99
|
-
if (env['JAVA_HOME']) {
|
|
100
|
-
env['PATH'] = env['JAVA_HOME'] + path.sep + 'bin' + path.delimiter + env['PATH'];
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
var javaVersion = getJavaVersion();
|
|
104
|
-
if (javaVersion === false || javaVersion < 1.8 || env['JDEPLOY_USE_NODE_JRE']) {
|
|
105
|
-
if (!test('-e', getJdeploySupportDir())) {
|
|
106
|
-
mkdir(getJdeploySupportDir());
|
|
107
|
-
}
|
|
108
|
-
var packageJson = getJdeploySupportDir() + path.sep + 'package.json';
|
|
109
|
-
if (!test('-e', packageJson)) {
|
|
110
|
-
fs.writeFileSync(packageJson, JSON.stringify({'name' : 'jdeploy-support', 'version': '1.0.0'}), 'utf8');
|
|
111
|
-
}
|
|
112
|
-
if (!test('-e', getEmbeddedJavaDir())) {
|
|
113
|
-
var currDir = pwd();
|
|
114
|
-
cd(getJdeploySupportDir());
|
|
115
|
-
console.log("Installing/Updating JRE in "+getJdeploySupportDir()+"...");
|
|
116
|
-
exec('npm install node-jre --save');
|
|
117
|
-
cd(currDir);
|
|
118
|
-
}
|
|
119
|
-
env['PATH'] = getEmbeddedJavaDir() + path.delimiter + env['PATH'];
|
|
120
|
-
/*
|
|
121
|
-
// System java either not on path or too old
|
|
122
|
-
if (!test('-e', getEmbeddedJavaDir())) {
|
|
123
|
-
// Could not find embedded java dir
|
|
124
|
-
// We need to install it.
|
|
125
|
-
fail("Could not find embedded java at "+getEmbeddedJavaDir());
|
|
126
|
-
|
|
127
|
-
} else {
|
|
128
|
-
// Found the embedded version. Add it to the PATH
|
|
129
|
-
env['PATH'] = getEmbeddedJavaDir() + path.delimiter + env['PATH']
|
|
130
|
-
console.log("Now java version is "+getJavaVersion());
|
|
131
|
-
fail("Path is now "+env['PATH']);
|
|
132
|
-
}
|
|
133
|
-
*/
|
|
134
|
-
|
|
135
|
-
}
|
|
136
|
-
//console.log("Java version is "+getJavaVersion());
|
|
137
|
-
|
|
138
|
-
javaArgs.forEach(function(arg) {
|
|
139
|
-
cmd += ' "'+arg+'"';
|
|
140
|
-
});
|
|
141
|
-
if (jarName !== '{'+'{JAR_NAME}}') {
|
|
142
|
-
cmd += ' -jar "'+__dirname+'/'+jarName+'" ';
|
|
143
|
-
} else {
|
|
144
|
-
cmd += ' -cp "'+classPath+'" '+mainClass+' ';
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
programArgs.forEach(function(arg) {
|
|
148
|
-
cmd += ' "'+arg+'"';
|
|
149
|
-
});
|
|
150
|
-
var child = exec(cmd, {async: true});
|
|
151
|
-
process.stdin.setEncoding('utf8');
|
|
152
|
-
|
|
153
|
-
process.stdin.on('readable', () => {
|
|
154
|
-
var chunk = process.stdin.read();
|
|
155
|
-
if (chunk === null) {
|
|
156
|
-
|
|
157
|
-
return;
|
|
158
|
-
}
|
|
159
|
-
try {
|
|
160
|
-
child.stdin.write(chunk);
|
|
161
|
-
} catch(e){}
|
|
162
|
-
});
|
|
163
|
-
child.on('close', function(code) {
|
|
164
|
-
process.exit(code);
|
|
165
|
-
});
|