This repository has been archived by the owner on May 29, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Dealing with the case when unit contains "Globs" data and no (or null) "Files", in this case graph command should scan for matching files using globs. See sourcegraph/srclib#240
- Loading branch information
1 parent
cb1e5d1
commit bfbef36
Showing
10 changed files
with
275 additions
and
13 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
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
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
Submodule java-with-srcfile
added at
b39a83
39 changes: 39 additions & 0 deletions
39
.../program/java-with-srcfile/com.sourcegraph/java-with-srcfile/JavaArtifact.depresolve.json
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,39 @@ | ||
[ | ||
{ | ||
"Raw": { | ||
"groupID": "com.beust", | ||
"artifactID": "jcommander", | ||
"version": "1.30", | ||
"scope": "compile", | ||
"file": ".gradle-srclib/caches/modules-2/files-2.1/com.beust/jcommander/1.30/c440b30a944ba199751551aee393f8aa03b3c327/jcommander-1.30.jar" | ||
}, | ||
"Target": { | ||
"ToRepoCloneURL": "[email protected]:cbeust/jcommander.git", | ||
"ToUnit": "com.beust/jcommander", | ||
"ToUnitType": "JavaArtifact", | ||
"ToVersionString": "1.30" | ||
} | ||
}, | ||
{ | ||
"Raw": { | ||
"groupID": "com.beust", | ||
"artifactID": "jcommander", | ||
"version": "1.30", | ||
"scope": "testCompile", | ||
"file": ".gradle-srclib/caches/modules-2/files-2.1/com.beust/jcommander/1.30/c440b30a944ba199751551aee393f8aa03b3c327/jcommander-1.30.jar" | ||
}, | ||
"Target": { | ||
"ToRepoCloneURL": "[email protected]:cbeust/jcommander.git", | ||
"ToUnit": "com.beust/jcommander", | ||
"ToUnitType": "JavaArtifact", | ||
"ToVersionString": "1.30" | ||
} | ||
}, | ||
{ | ||
"Target": { | ||
"ToRepoCloneURL": "hg.openjdk.java.net/jdk8/jdk8/jdk", | ||
"ToUnit": ".", | ||
"ToUnitType": "Java" | ||
} | ||
} | ||
] |
179 changes: 179 additions & 0 deletions
179
...ected/program/java-with-srcfile/com.sourcegraph/java-with-srcfile/JavaArtifact.graph.json
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,179 @@ | ||
{ | ||
"Defs": [ | ||
{ | ||
"Path": "foo/bar/baz", | ||
"Name": "baz", | ||
"Kind": "package", | ||
"File": "", | ||
"DefStart": 0, | ||
"DefEnd": 0, | ||
"Data": { | ||
"JavaKind": "PACKAGE", | ||
"Package": "foo.bar.baz" | ||
}, | ||
"TreePath": "foo/bar/baz" | ||
}, | ||
{ | ||
"Path": "foo/bar/baz/Qux/:init", | ||
"Name": "\u003cinit\u003e", | ||
"Kind": "func", | ||
"File": "src/main/java/foo/bar/baz/Qux.java", | ||
"DefStart": 76, | ||
"DefEnd": 79, | ||
"Exported": true, | ||
"Data": { | ||
"JavaKind": "CONSTRUCTOR", | ||
"TypeExpression": "()void", | ||
"Package": "foo.bar.baz", | ||
"Modifiers": [ | ||
"public" | ||
] | ||
}, | ||
"TreePath": "foo/bar/baz/Qux/:init" | ||
}, | ||
{ | ||
"Path": "foo/bar/baz/Qux:type", | ||
"Name": "Qux", | ||
"Kind": "type", | ||
"File": "src/main/java/foo/bar/baz/Qux.java", | ||
"DefStart": 63, | ||
"DefEnd": 183, | ||
"Exported": true, | ||
"Data": { | ||
"JavaKind": "CLASS", | ||
"TypeExpression": "foo.bar.baz.Qux", | ||
"Package": "foo.bar.baz", | ||
"Modifiers": [ | ||
"public" | ||
] | ||
}, | ||
"TreePath": "foo/bar/baz/Qux:type" | ||
}, | ||
{ | ||
"Path": "foo/bar/baz/Qux:type/main:java.lang.String[]", | ||
"Name": "main", | ||
"Kind": "func", | ||
"File": "src/main/java/foo/bar/baz/Qux.java", | ||
"DefStart": 85, | ||
"DefEnd": 181, | ||
"Exported": true, | ||
"Data": { | ||
"JavaKind": "METHOD", | ||
"TypeExpression": "(java.lang.String[])void", | ||
"Package": "foo.bar.baz", | ||
"Modifiers": [ | ||
"public", | ||
"static" | ||
] | ||
}, | ||
"TreePath": "foo/bar/baz/Qux:type/main:java.lang.String[]" | ||
}, | ||
{ | ||
"Path": "foo/bar/baz/Qux:type/main:java.lang.String[]/args", | ||
"Name": "args", | ||
"Kind": "var", | ||
"File": "src/main/java/foo/bar/baz/Qux.java", | ||
"DefStart": 109, | ||
"DefEnd": 122, | ||
"Local": true, | ||
"Data": { | ||
"JavaKind": "PARAMETER", | ||
"TypeExpression": "java.lang.String[]", | ||
"Package": "foo.bar.baz", | ||
"Modifiers": [] | ||
}, | ||
"TreePath": "foo/bar/baz/Qux:type/main:java.lang.String[]/args" | ||
}, | ||
{ | ||
"Path": "foo/bar/baz/Qux:type/main:java.lang.String[]/jc", | ||
"Name": "jc", | ||
"Kind": "var", | ||
"File": "src/main/java/foo/bar/baz/Qux.java", | ||
"DefStart": 145, | ||
"DefEnd": 178, | ||
"Local": true, | ||
"Data": { | ||
"JavaKind": "LOCAL_VARIABLE", | ||
"TypeExpression": "com.beust.jcommander.JCommander", | ||
"Package": "foo.bar.baz", | ||
"Modifiers": [] | ||
}, | ||
"TreePath": "foo/bar/baz/Qux:type/main:java.lang.String[]/jc" | ||
} | ||
], | ||
"Refs": [ | ||
{ | ||
"DefRepo": "github.com/cbeust/jcommander", | ||
"DefUnitType": "JavaArtifact", | ||
"DefUnit": "com.beust/jcommander", | ||
"DefPath": "com/beust/jcommander/JCommander:type", | ||
"File": "src/main/java/foo/bar/baz/Qux.java", | ||
"Start": 145, | ||
"End": 155 | ||
}, | ||
{ | ||
"DefRepo": "github.com/cbeust/jcommander", | ||
"DefUnitType": "JavaArtifact", | ||
"DefUnit": "com.beust/jcommander", | ||
"DefPath": "com/beust/jcommander/JCommander:type", | ||
"File": "src/main/java/foo/bar/baz/Qux.java", | ||
"Start": 165, | ||
"End": 175 | ||
}, | ||
{ | ||
"DefRepo": "github.com/cbeust/jcommander", | ||
"DefUnitType": "JavaArtifact", | ||
"DefUnit": "com.beust/jcommander", | ||
"DefPath": "com/beust/jcommander/JCommander:type", | ||
"File": "src/main/java/foo/bar/baz/Qux.java", | ||
"Start": 50, | ||
"End": 60 | ||
}, | ||
{ | ||
"DefPath": "foo/bar/baz/Qux:type/main:java.lang.String[]/args", | ||
"Def": true, | ||
"File": "src/main/java/foo/bar/baz/Qux.java", | ||
"Start": 116, | ||
"End": 120 | ||
}, | ||
{ | ||
"DefPath": "foo/bar/baz/Qux:type/main:java.lang.String[]/jc", | ||
"Def": true, | ||
"File": "src/main/java/foo/bar/baz/Qux.java", | ||
"Start": 156, | ||
"End": 158 | ||
}, | ||
{ | ||
"DefPath": "foo/bar/baz/Qux:type/main:java.lang.String[]", | ||
"Def": true, | ||
"File": "src/main/java/foo/bar/baz/Qux.java", | ||
"Start": 104, | ||
"End": 108 | ||
}, | ||
{ | ||
"DefPath": "foo/bar/baz/Qux:type", | ||
"Def": true, | ||
"File": "src/main/java/foo/bar/baz/Qux.java", | ||
"Start": 76, | ||
"End": 79 | ||
}, | ||
{ | ||
"DefRepo": "hg.openjdk.java.net/jdk8/jdk8/jdk", | ||
"DefUnitType": "Java", | ||
"DefUnit": ".", | ||
"DefPath": "java/lang/Exception:type", | ||
"File": "src/main/java/foo/bar/baz/Qux.java", | ||
"Start": 131, | ||
"End": 140 | ||
}, | ||
{ | ||
"DefRepo": "hg.openjdk.java.net/jdk8/jdk8/jdk", | ||
"DefUnitType": "Java", | ||
"DefUnit": ".", | ||
"DefPath": "java/lang/String:type", | ||
"File": "src/main/java/foo/bar/baz/Qux.java", | ||
"Start": 109, | ||
"End": 115 | ||
} | ||
] | ||
} |
1 change: 1 addition & 0 deletions
1
...pected/program/java-with-srcfile/com.sourcegraph/java-with-srcfile/JavaArtifact.unit.json
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 @@ | ||
{"Name":"com.sourcegraph/java-with-srcfile","Type":"JavaArtifact","Repo":"github.com/sgtest/java-with-srcfile","Globs":["**/*.java"],"Files":null,"Dependencies":[{"artifactID":"jcommander","file":".gradle-srclib/caches/modules-2/files-2.1/com.beust/jcommander/1.30/c440b30a944ba199751551aee393f8aa03b3c327/jcommander-1.30.jar","groupID":"com.beust","scope":"compile","version":"1.30"},{"artifactID":"jcommander","file":".gradle-srclib/caches/modules-2/files-2.1/com.beust/jcommander/1.30/c440b30a944ba199751551aee393f8aa03b3c327/jcommander-1.30.jar","groupID":"com.beust","scope":"testCompile","version":"1.30"}],"Data":{"ClassPath":[".gradle-srclib/caches/modules-2/files-2.1/com.beust/jcommander/1.30/c440b30a944ba199751551aee393f8aa03b3c327/jcommander-1.30.jar"],"Description":"Test srclib-java for gradle support.","GradleFile":"build.gradle","SourcePath":[["com.sourcegraph/java-with-srcfile","0.0.1-SNAPSHOT","src/main/java"],["com.sourcegraph/java-with-srcfile","0.0.1-SNAPSHOT","src/test/java"]],"SourceVersion":"1.8"}} |