-
-
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 branch 'feature/issue#63' into develop
- Loading branch information
Showing
11 changed files
with
849 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
/* | ||
* To change this license header, choose License Headers in Project Properties. | ||
* To change this template file, choose Tools | Templates | ||
* and open the template in the editor. | ||
*/ | ||
package org.bsc.function; | ||
|
||
/** | ||
* | ||
* @author bsorrentino | ||
* @param <T> | ||
*/ | ||
public interface Consumer<T> { | ||
|
||
void accept(T t); | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,160 @@ | ||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
|
||
<groupId>org.bsc.maven</groupId> | ||
<artifactId>maven-processor-plugin-test</artifactId> | ||
<version>3.2.0-SNAPSHOT</version> | ||
<packaging>jar</packaging> | ||
<name>MAVEN PROCESSOR PLUGIN TEST- ${project.version}</name> | ||
<description></description> | ||
|
||
<properties> | ||
<!-- | ||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | ||
--> | ||
</properties> | ||
|
||
<dependencies> | ||
|
||
<dependency> | ||
<groupId>junit</groupId> | ||
<artifactId>junit</artifactId> | ||
<version>4.10</version> | ||
<scope>test</scope> | ||
</dependency> | ||
|
||
</dependencies> | ||
|
||
<inceptionYear>2012</inceptionYear> | ||
|
||
|
||
<build> | ||
|
||
|
||
<plugins> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-compiler-plugin</artifactId> | ||
<version>2.3.2</version> | ||
<configuration> | ||
<source>1.7</source> | ||
<target>1.7</target> | ||
</configuration> | ||
</plugin> | ||
|
||
<!-- | ||
=================================================================== | ||
PROCESSOR PLUGIN | ||
=================================================================== | ||
--> | ||
|
||
<plugin> | ||
<groupId>org.bsc.maven</groupId> | ||
<artifactId>maven-processor-plugin</artifactId> | ||
<version>${project.version}</version> | ||
<dependencies> | ||
<dependency> | ||
<groupId>org.bsc</groupId> | ||
<artifactId>jaxrs-wiki-processor</artifactId> | ||
<version>2.2</version> | ||
</dependency> | ||
|
||
</dependencies> | ||
<executions> | ||
|
||
<execution> | ||
|
||
<id>process-test</id> | ||
<goals> | ||
<goal>process-test</goal> | ||
</goals> | ||
<phase>process-test-classes</phase> | ||
<configuration> | ||
<outputDirectory>${basedir}/src/site</outputDirectory> | ||
|
||
<additionalSourceDirectories> | ||
<item>${user.home}/src</item> | ||
<item>./src/main/java</item> | ||
</additionalSourceDirectories> | ||
|
||
<failOnError>false</failOnError> | ||
<processors> | ||
<!-- list of processors to use --> | ||
<processor>org.bsc.maven.plugin.processor.test.TESTWikiProcessor</processor> | ||
<processor>org.bsc.jaxrs.JAXRSWikiProcessor</processor> | ||
</processors> | ||
|
||
<options> | ||
</options> | ||
</configuration> | ||
|
||
|
||
</execution> | ||
<execution> | ||
|
||
<id>process</id> | ||
<goals> | ||
<goal>process</goal> | ||
</goals> | ||
<phase>process-classes</phase> | ||
<configuration> | ||
<outputDirectory>${basedir}/src/site</outputDirectory> | ||
|
||
<additionalSourceDirectories> | ||
<item>${basedir}/src/main/java</item> | ||
<item>${user.home}/src</item> | ||
</additionalSourceDirectories> | ||
|
||
<failOnError>false</failOnError> | ||
<processors> | ||
<!-- list of processors to use --> | ||
<processor>org.bsc.jaxrs.JAXRSWikiProcessor</processor> | ||
</processors> | ||
|
||
<options> | ||
</options> | ||
</configuration> | ||
|
||
|
||
</execution> | ||
</executions> | ||
</plugin> | ||
|
||
<plugin> | ||
<groupId>org.codehaus.mojo</groupId> | ||
<artifactId>build-helper-maven-plugin</artifactId> | ||
<version>1.7</version> | ||
<executions> | ||
<execution> | ||
<id>add-source</id> | ||
<phase>generate-sources</phase> | ||
<goals> | ||
<goal>add-source</goal> | ||
</goals> | ||
<configuration> | ||
<sources> | ||
<source>${basedir}/src-generated/src</source> | ||
</sources> | ||
</configuration> | ||
</execution> | ||
<execution> | ||
<id>add-test-source</id> | ||
<phase>generate-sources</phase> | ||
<goals> | ||
<goal>add-test-source</goal> | ||
</goals> | ||
<configuration> | ||
<sources> | ||
<source>${basedir}/src-generated/test</source> | ||
</sources> | ||
</configuration> | ||
</execution> | ||
|
||
</executions> | ||
</plugin> | ||
</plugins> | ||
|
||
</build> | ||
|
||
</project> |
15 changes: 15 additions & 0 deletions
15
test/src/main/java/org/bsc/maven/plugin/processor/test/ParameterDocumentation.java
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,15 @@ | ||
package org.bsc.maven.plugin.processor.test; | ||
|
||
import java.lang.annotation.ElementType; | ||
import java.lang.annotation.Retention; | ||
import java.lang.annotation.RetentionPolicy; | ||
import java.lang.annotation.Target; | ||
|
||
@Retention(RetentionPolicy.SOURCE) | ||
@Target({ ElementType.PARAMETER}) | ||
public @interface ParameterDocumentation { | ||
|
||
String value() default ""; | ||
|
||
|
||
} |
18 changes: 18 additions & 0 deletions
18
test/src/main/java/org/bsc/maven/plugin/processor/test/ServiceDocumentation.java
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,18 @@ | ||
package org.bsc.maven.plugin.processor.test; | ||
|
||
import java.lang.annotation.ElementType; | ||
import java.lang.annotation.Retention; | ||
import java.lang.annotation.RetentionPolicy; | ||
import java.lang.annotation.Target; | ||
|
||
|
||
@Retention(RetentionPolicy.SOURCE) | ||
@Target({ ElementType.METHOD}) | ||
public @interface ServiceDocumentation { | ||
|
||
public String since() default ""; | ||
|
||
public String value() default ""; | ||
|
||
public String note() default ""; | ||
} |
Oops, something went wrong.