Detect Maven wrapper "mvnw" (#4042)

* Detect Maven wrapper "mvnw"

* Fix build, filenames must be sorted in the "filenames" section of languages.yml, filenames cannot be grouped by topic

* Remove `mvnw` file from languages/Shell/filenames according to @Alhadis recommendation as we are sure that `mvnw` always starts with the shebang `#!/bin/sh`.

* Remove space chars added by mistake
This commit is contained in:
Cyrille Le Clerc
2018-04-08 17:04:34 +02:00
committed by Colin Seymour
parent 14fcd75773
commit 51d3711faf
2 changed files with 15 additions and 0 deletions

View File

@@ -276,6 +276,13 @@
- (^|/)gradlew\.bat$
- (^|/)gradle/wrapper/
## Java ##
# Maven
- (^|/)mvnw$
- (^|/)mvnw\.cmd$
- (^|/)\.mvn/wrapper/
## .NET ##
# Visual Studio IntelliSense

View File

@@ -534,6 +534,14 @@ class TestFileBlob < Minitest::Test
assert sample_blob("subproject/gradlew.bat").vendored?
assert sample_blob("subproject/gradle/wrapper/gradle-wrapper.properties").vendored?
# Maven
assert sample_blob("mvnw").vendored?
assert sample_blob("mvnw.cmd").vendored?
assert sample_blob(".mvn/wrapper/maven-wrapper.properties").vendored?
assert sample_blob("subproject/mvnw").vendored?
assert sample_blob("subproject/mvnw.cmd").vendored?
assert sample_blob("subproject/.mvn/wrapper/maven-wrapper.properties").vendored?
# Octicons
assert sample_blob("octicons.css").vendored?
assert sample_blob("public/octicons.min.css").vendored?