-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from snyk/fix/use-wrapper
fix: use gradle wrapper script if present
- Loading branch information
Showing
13 changed files
with
156 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
// not a real buildfile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
echo "not an actual wrapper script" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
not an actual wrapper script |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
// not a real buildfile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
echo "not an actual wrapper script" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
not an actual wrapper script |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,22 +2,23 @@ var fs = require('fs'); | |
var path = require('path'); | ||
var test = require('tap-only'); | ||
var parse = require('../../lib/parse-gradle'); | ||
var fixturePath = path.join(__dirname, '..', 'fixtures', 'no-wrapper'); | ||
|
||
test('compare full results', function (t) { | ||
t.plan(1); | ||
var gradleOutput = fs.readFileSync(path.join( | ||
__dirname, '..', 'fixtures', 'gradle-dependencies-output.txt'), 'utf8'); | ||
var gradleOutput = fs.readFileSync( | ||
path.join(fixturePath, 'gradle-dependencies-output.txt'), 'utf8'); | ||
var depTree = parse(gradleOutput, '[email protected]'); | ||
var results = require(path.join( | ||
__dirname, '..','fixtures','gradle-dependencies-results.json')); | ||
var results = require( | ||
path.join(fixturePath,'gradle-dependencies-results.json')); | ||
|
||
t.same(depTree, results); | ||
}); | ||
|
||
test('parse a `gradle dependencies` output', function (t) { | ||
t.plan(7); | ||
var gradleOutput = fs.readFileSync(path.join( | ||
__dirname, '..', 'fixtures', 'gradle-dependencies-output.txt'), 'utf8'); | ||
fixturePath, 'gradle-dependencies-output.txt'), 'utf8'); | ||
var depTree = parse(gradleOutput, '[email protected]'); | ||
|
||
t.equal( | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters