Home
last modified time | relevance | path

Searched refs:thriftFile (Results 1 – 3 of 3) sorted by relevance

/thrift-3.4.0/contrib/thrift-maven-plugin/src/main/java/org/apache/thrift/maven/
DThrift.java85 for (File thriftFile : thriftFiles) { in compile()
88 cl.addArguments(buildThriftCommand(thriftFile).toArray(new String[]{})); in compile()
108 ImmutableList<String> buildThriftCommand(final File thriftFile) { in buildThriftCommand() argument
119 command.add(thriftFile.toString()); in buildThriftCommand()
177 public Builder addThriftFile(File thriftFile) { in addThriftFile() argument
178 checkNotNull(thriftFile); in addThriftFile()
179 checkArgument(thriftFile.isFile()); in addThriftFile()
180 checkArgument(thriftFile.getName().endsWith(".thrift")); in addThriftFile()
181 checkThriftFileIsInThriftPath(thriftFile); in addThriftFile()
182 thriftFiles.add(thriftFile); in addThriftFile()
[all …]
/thrift-3.4.0/contrib/thrift-maven-plugin/src/test/java/org/apache/thrift/maven/
DTestThrift.java81 final File thriftFile = new File(idlDir, "shared.thrift"); in executeThriftCompile() local
83 builder.addThriftFile(thriftFile); in executeThriftCompile()
87 assertTrue("File not found: shared.thrift", thriftFile.exists()); in executeThriftCompile()
125 final File thriftFile = new File(testRootDir, "missing.thrift"); in testBadCompile() local
129 assertTrue(thriftFile.createNewFile()); in testBadCompile()
130 builder.addThriftFile(thriftFile); in testBadCompile()
131 assertTrue(thriftFile.delete()); in testBadCompile()
135 assertTrue(!thriftFile.exists()); in testBadCompile()
145 final File thriftFile = new File(testRootDir, "missing.thrift"); in testFileInPathPreCondition() local
148 assertTrue(thriftFile.createNewFile()); in testFileInPathPreCondition()
[all …]
/thrift-3.4.0/lib/java/gradle/
DgenerateTestThrift.gradle42 def thriftFile = file("$thriftRoot/test/$thriftFileName")
43 if (!thriftFile.exists()) {
44 thriftFile = file("$projectDir/src/test/resources/$thriftFileName")
45 assert thriftFile.exists(), "can't find $thriftFile"
48 task.inputs.file thriftFile
57 args thriftFile