Skip to content

Commit

Permalink
copied from reflections.googlecode.com/svn/trunk
Browse files Browse the repository at this point in the history
  • Loading branch information
ronmamo committed Apr 16, 2013
1 parent 097c09e commit 9d2ff4a
Show file tree
Hide file tree
Showing 51 changed files with 5,876 additions and 0 deletions.
14 changes: 14 additions & 0 deletions COPYING.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004

Copyright (C) 2004 Sam Hocevar <sam@hocevar.net>

Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.

DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION

0. You just DO WHAT THE FUCK YOU WANT TO.

98 changes: 98 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
<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/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>

<groupId>org.reflections</groupId>
<artifactId>reflections-parent</artifactId>
<version>0.9.9-RC1</version>
<packaging>pom</packaging>

<name>Reflections</name>
<description>Reflections - a Java runtime metadata analysis</description>
<url>http://code.google.com/p/reflections/</url>

<modules>
<module>reflections</module>
<module>reflections-maven</module>
</modules>

<licenses>
<license>
<name>WTFPL</name>
<url>http://www.wtfpl.net/</url>
</license>
</licenses>

<scm>
<connection>http://reflections.googlecode.com/svn/trunk/</connection>
<url>http://reflections.googlecode.com/svn/trunk/</url>
</scm>

<developers>
<developer>
<email>ronmamo@gmail.com</email>
</developer>
</developers>

<distributionManagement>
<repository>
<uniqueVersion>false</uniqueVersion>
<id>googlecode</id>
<url>svn:https://reflections.googlecode.com/svn/repo</url>
</repository>
</distributionManagement>

<build>
<plugins>
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<!--<version>2.5</version>-->
<configuration>
<encoding>UTF-8</encoding>
</configuration>
</plugin>
<plugin>
<artifactId>maven-source-plugin</artifactId>
<!--<version>2.1.2</version>-->
<executions>
<execution>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-javadoc-plugin</artifactId>
<!--<version>2.8</version>-->
<configuration>
<reportOutputDirectory>javadoc</reportOutputDirectory>
</configuration>
</plugin>

<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<!--<version>2.3.2</version>-->
<configuration>
<encoding>UTF-8</encoding>
<source>1.5</source>
<target>1.5</target>
</configuration>
</plugin>

<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<!--<version>2.12</version>-->
<configuration>
<!-- fix java.class.path -->
<useSystemClassLoader>false</useSystemClassLoader>
<additionalClasspathElements>
<additionalClasspathElement>${project.build.outputDirectory}/target/test-classes</additionalClasspathElement>
</additionalClasspathElements>
</configuration>
</plugin>

</plugins>
</build>

</project>
92 changes: 92 additions & 0 deletions reflections-maven/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
<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/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>org.reflections</groupId>
<artifactId>reflections-parent</artifactId>
<version>0.9.9-RC1</version>
</parent>

<artifactId>reflections-maven</artifactId>
<packaging>maven-plugin</packaging>
<name>Reflections Maven plugin</name>

<dependencies>
<dependency>
<groupId>org.reflections</groupId>
<artifactId>reflections</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.jfrog.maven.annomojo</groupId>
<artifactId>maven-plugin-anno</artifactId>
<version>1.4.1</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>1.6.1</version>
<optional>true</optional>
</dependency>
<dependency>
<groupId>org.jfrog.jade.plugins.common</groupId>
<artifactId>jade-plugin-common</artifactId>
<version>1.3.8</version>
<scope>compile</scope>
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<artifactId>maven-clean-plugin</artifactId>
<configuration>
<filesets>
<fileset>
<directory>javadoc</directory>
</fileset>
</filesets>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-plugin-plugin</artifactId>
<version>2.6</version>
<dependencies>
<dependency>
<groupId>org.jfrog.maven.annomojo</groupId>
<artifactId>maven-plugin-tools-anno</artifactId>
<version>1.4.1</version>
<scope>runtime</scope>
</dependency>
</dependencies>
</plugin>
</plugins>
</build>

<profiles>
<profile>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<id>jfrog-plugins</id>
<pluginRepositories>
<pluginRepository>
<id>jfrog-plugins</id>
<name>jfrog-plugins-dist</name>
<url>http://repo.jfrog.org/artifactory/plugins-releases</url>
</pluginRepository>
</pluginRepositories>
</profile>
</profiles>

<repositories>
<repository>
<id>jfrog-plugins</id>
<name>jfrog-plugins-dist</name>
<url>http://repo.jfrog.org/artifactory/plugins-releases</url>
</repository>
</repositories>

</project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
package org.reflections.maven.plugin;

import org.apache.maven.plugin.logging.Log;
import org.slf4j.Logger;
import org.slf4j.helpers.MarkerIgnoringBase;

import java.text.MessageFormat;

class MavenLogAdapter extends MarkerIgnoringBase implements Logger {
private Log log;

MavenLogAdapter(Log log) { this.log = log; }
public String getName() { return log.getClass().getName(); }
public boolean isDebugEnabled() { return log.isDebugEnabled(); }
public void debug(String format, Object arg1, Object arg2) { if (log.isDebugEnabled()) log.debug(MessageFormat.format(format, arg1, arg2)); }
public void debug(String format, Object arg) { if (log.isDebugEnabled()) log.debug(MessageFormat.format(format, arg)); }
public void debug(String format, Object[] argArray) { if (log.isDebugEnabled()) log.debug(MessageFormat.format(format, argArray)); }
public void debug(String msg, Throwable t) { log.debug(msg, t); }
public void debug(String msg) { log.debug(msg); }
public boolean isErrorEnabled() { return log.isErrorEnabled(); }
public void error(String format, Object arg1, Object arg2) { if (log.isErrorEnabled()) log.error(MessageFormat.format(format, arg1, arg2)); }
public void error(String format, Object arg) { if (log.isErrorEnabled()) log.error(MessageFormat.format(format, arg)); }
public void error(String format, Object[] argArray) { if (log.isErrorEnabled()) log.error(MessageFormat.format(format, argArray)); }
public void error(String msg, Throwable t) { log.error(msg, t); }
public void error(String msg) { log.error(msg); }
public boolean isInfoEnabled() { return log.isInfoEnabled(); }
public void info(String format, Object arg1, Object arg2) { if (log.isInfoEnabled()) log.info(MessageFormat.format(format, arg1, arg2)); }
public void info(String format, Object arg) { if (log.isInfoEnabled()) log.info(MessageFormat.format(format, arg)); }
public void info(String format, Object[] argArray) { if (log.isInfoEnabled()) log.info(MessageFormat.format(format, argArray)); }
public void info(String msg, Throwable t) { log.info(msg, t); }
public void info(String msg) { log.info(msg); }
public boolean isTraceEnabled() { return log.isDebugEnabled(); }
public void trace(String format, Object arg1, Object arg2) { if (log.isDebugEnabled()) log.debug(MessageFormat.format(format, arg1, arg2)); }
public void trace(String format, Object arg) { if (log.isDebugEnabled()) log.debug(MessageFormat.format(format, arg)); }
public void trace(String format, Object[] argArray) { if (log.isDebugEnabled()) log.debug(MessageFormat.format(format, argArray)); }
public void trace(String msg, Throwable t) { log.debug(msg, t); }
public void trace(String msg) { log.debug(msg); }
public boolean isWarnEnabled() { return log.isWarnEnabled(); }
public void warn(String format, Object arg1, Object arg2) { if (log.isWarnEnabled()) log.warn(MessageFormat.format(format, arg1, arg2)); }
public void warn(String format, Object arg) { if (log.isWarnEnabled()) log.warn(MessageFormat.format(format, arg)); }
public void warn(String format, Object[] argArray) { if (log.isWarnEnabled()) log.warn(MessageFormat.format(format, argArray)); }
public void warn(String msg, Throwable t) { log.warn(msg, t); }
public void warn(String msg) { log.warn(msg); }
}
Loading

0 comments on commit 9d2ff4a

Please sign in to comment.