Skip to content

Commit

Permalink
feat(#93): mvnwSync -> mvnw
Browse files Browse the repository at this point in the history
  • Loading branch information
volodya-lombrozo committed Nov 30, 2022
1 parent 7a5fa4c commit 52f69d4
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 16 deletions.
4 changes: 2 additions & 2 deletions src/commands/assemble.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
*/

const path = require('path');
const mvnwSync = require('../mvnw');
const mvnw = require('../mvnw');
const parserVersion = require('../parser-version');

/**
Expand All @@ -32,7 +32,7 @@ const parserVersion = require('../parser-version');
* @return {Promise} of assemble task
*/
module.exports = function(opts) {
return mvnwSync([
return mvnw([
'eo:assemble',
'-Deo.version=' + (opts.parser ? opts.parser : parserVersion()),
opts.verbose ? '' : '--quiet',
Expand Down
4 changes: 2 additions & 2 deletions src/commands/audit.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
* SOFTWARE.
*/

const mvnwSync = require('../mvnw');
const mvnw = require('../mvnw');
const parserVersion = require('../parser-version');

/**
Expand All @@ -31,5 +31,5 @@ const parserVersion = require('../parser-version');
*/
module.exports = function(opts) {
parserVersion();
mvnwSync(['--version']);
mvnw(['--version']);
};
4 changes: 2 additions & 2 deletions src/commands/compile.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
* SOFTWARE.
*/

const mvnwSync = require('../mvnw');
const mvnw = require('../mvnw');
const path = require('path');
const parserVersion = require('../parser-version');

Expand All @@ -33,7 +33,7 @@ const parserVersion = require('../parser-version');
*/
module.exports = function(opts) {
const target = path.resolve(opts.target);
return mvnwSync([
return mvnw([
'compiler:compile',
opts.verbose ? '' : '--quiet',
`-Dmaven.compiler.source=1.8`,
Expand Down
4 changes: 2 additions & 2 deletions src/commands/gmi.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
*/

const path = require('path');
const mvnwSync = require('../mvnw');
const mvnw = require('../mvnw');
const parserVersion = require('../parser-version');

/**
Expand Down Expand Up @@ -60,7 +60,7 @@ module.exports = function(opts) {
argv.push('-Deo.generateGraphFiles');
argv.push('-Deo.generateDotFiles');
}
return mvnwSync(argv).then((r) => {
return mvnw(argv).then((r) => {
console.info('GMI files generated in %s', path.resolve(opts.target));
return r;
});
Expand Down
4 changes: 2 additions & 2 deletions src/commands/link.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
* SOFTWARE.
*/

const mvnwSync = require('../mvnw');
const mvnw = require('../mvnw');
const path = require('path');
const parserVersion = require('../parser-version');

Expand All @@ -32,7 +32,7 @@ const parserVersion = require('../parser-version');
* @return {Promise} of link task
*/
module.exports = function(opts) {
return mvnwSync([
return mvnw([
'jar:jar',
opts.verbose ? '' : '--quiet',
`-Deo.targetDir=${path.resolve(opts.target)}`,
Expand Down
4 changes: 2 additions & 2 deletions src/commands/register.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
* SOFTWARE.
*/

const mvnwSync = require('../mvnw');
const mvnw = require('../mvnw');
const path = require('path');
const parserVersion = require('../parser-version');

Expand All @@ -33,7 +33,7 @@ const parserVersion = require('../parser-version');
*/
module.exports = function(opts) {
const foreign = path.resolve(opts.target, 'eo-foreign.json');
return mvnwSync([
return mvnw([
'eo:register',
'-Deo.version=' + (opts.parser ? opts.parser : parserVersion()),
opts.verbose ? '' : '--quiet',
Expand Down
4 changes: 2 additions & 2 deletions src/commands/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
* SOFTWARE.
*/

const mvnwSync = require('../mvnw');
const mvnw = require('../mvnw');
const path = require('path');

/**
Expand All @@ -31,7 +31,7 @@ const path = require('path');
* @return {Promise} of compile task
*/
module.exports = function(opts) {
return mvnwSync([
return mvnw([
'surefire:test',
`-Deo.targetDir=${path.resolve(opts.target)}`,
]);
Expand Down
4 changes: 2 additions & 2 deletions src/commands/transpile.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
* SOFTWARE.
*/

const mvnwSync = require('../mvnw');
const mvnw = require('../mvnw');
const path = require('path');
const parserVersion = require('../parser-version');

Expand All @@ -33,7 +33,7 @@ const parserVersion = require('../parser-version');
*/
module.exports = function(opts) {
const sources = path.resolve(opts.target, 'generated-sources');
return mvnwSync([
return mvnw([
'eo:transpile',
'-Deo.version=' + (opts.parser ? opts.parser : parserVersion()),
opts.verbose ? '' : '--quiet',
Expand Down

0 comments on commit 52f69d4

Please sign in to comment.