Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
maven-thrift-plugin
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
maven-thrift-plugin
Commits
9a8f7877
Commit
9a8f7877
authored
Sep 28, 2010
by
David Trott
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleaned up unit test and stripped some white space.
parent
4c467f9e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
8 deletions
+13
-8
src/main/java/org/apache/thrift/maven/AbstractThriftMojo.java
...main/java/org/apache/thrift/maven/AbstractThriftMojo.java
+2
-2
src/test/java/org/apache/thrift/maven/TestThrift.java
src/test/java/org/apache/thrift/maven/TestThrift.java
+11
-6
No files found.
src/main/java/org/apache/thrift/maven/AbstractThriftMojo.java
View file @
9a8f7877
...
...
@@ -79,11 +79,11 @@ abstract class AbstractThriftMojo extends AbstractMojo {
* This string is passed to the {@code --gen} option of the {@code thrift} parameter. By default
* it will generate Java output. The main reason for this option is to be able to add options
* to the Java generator - if you generate something else, you're on your own.
*
*
* @parameter default-value="java"
*/
private
String
generator
;
/**
* @parameter
*/
...
...
src/test/java/org/apache/thrift/maven/TestThrift.java
View file @
9a8f7877
package
org
.
apache
.
thrift
.
maven
;
import
org.codehaus.plexus.util.FileUtils
;
import
org.codehaus.plexus.util.cli.CommandLineException
;
import
org.junit.After
;
import
org.junit.Before
;
import
org.junit.Test
;
...
...
@@ -43,6 +44,16 @@ public class TestThrift {
@Test
public
void
testThriftCompile
()
throws
Exception
{
executeThriftCompile
();
}
@Test
public
void
testThriftCompileWithGeneratorOption
()
throws
Exception
{
builder
.
setGenerator
(
"java:private-members,hashcode"
);
executeThriftCompile
();
}
private
void
executeThriftCompile
()
throws
CommandLineException
{
final
File
thriftFile
=
new
File
(
idlDir
,
"shared.thrift"
);
builder
.
addThriftFile
(
thriftFile
);
...
...
@@ -61,12 +72,6 @@ public class TestThrift {
new
File
(
testRootDir
,
"shared/SharedService.java"
).
exists
());
}
@Test
public
void
testThriftCompileWithGeneratorOption
()
throws
Exception
{
builder
.
setGenerator
(
"java:private-members,hashcode"
);
testThriftCompile
();
}
@Test
public
void
testThriftMultipleFileCompile
()
throws
Exception
{
final
File
sharedThrift
=
new
File
(
idlDir
,
"shared.thrift"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment