[Remoterengine-commits] r110 - in pkg/RemoteREngine: exec inst/java_src/src/apt/com/addictedtor/remoterengine/apt inst/java_src/src/apt/com/addictedtor/remoterengine/apt/exceptions
noreply at r-forge.r-project.org
noreply at r-forge.r-project.org
Mon Sep 7 17:16:15 CEST 2009
Author: romain
Date: 2009-09-07 17:16:15 +0200 (Mon, 07 Sep 2009)
New Revision: 110
Added:
pkg/RemoteREngine/inst/java_src/src/apt/com/addictedtor/remoterengine/apt/IsNotAServiceException.java
pkg/RemoteREngine/inst/java_src/src/apt/com/addictedtor/remoterengine/apt/RemoteREngineAnnotationException.java
pkg/RemoteREngine/inst/java_src/src/apt/com/addictedtor/remoterengine/apt/ServiceImplementationAnnotationException.java
pkg/RemoteREngine/inst/java_src/src/apt/com/addictedtor/remoterengine/apt/ShouldBeClassDeclarationException.java
pkg/RemoteREngine/inst/java_src/src/apt/com/addictedtor/remoterengine/apt/ShouldHaveADefaultConstructorException.java
Removed:
pkg/RemoteREngine/inst/java_src/src/apt/com/addictedtor/remoterengine/apt/exceptions/IsNotAServiceException.java
pkg/RemoteREngine/inst/java_src/src/apt/com/addictedtor/remoterengine/apt/exceptions/RemoteREngineAnnotationException.java
pkg/RemoteREngine/inst/java_src/src/apt/com/addictedtor/remoterengine/apt/exceptions/ServiceImplementationAnnotationException.java
pkg/RemoteREngine/inst/java_src/src/apt/com/addictedtor/remoterengine/apt/exceptions/ShouldBeClassDeclarationException.java
pkg/RemoteREngine/inst/java_src/src/apt/com/addictedtor/remoterengine/apt/exceptions/ShouldHaveADefaultConstructorException.java
Modified:
pkg/RemoteREngine/exec/remoterengine
pkg/RemoteREngine/inst/java_src/src/apt/com/addictedtor/remoterengine/apt/RemoteREngineAnnotationProcessor.java
Log:
moving classes, use platform dependent path separator
Modified: pkg/RemoteREngine/exec/remoterengine
===================================================================
--- pkg/RemoteREngine/exec/remoterengine 2009-09-07 12:59:48 UTC (rev 109)
+++ pkg/RemoteREngine/exec/remoterengine 2009-09-07 15:16:15 UTC (rev 110)
@@ -53,7 +53,7 @@
# {{{ java environment variables
# {{{ JRI_LD_PATH
-SEP <- ":"
+SEP <- if( .Platform$OS.type == "windows" ) ";" else":"
JRI_LD_PATH <- paste(
system.file( "jri", package = "rJava" ),
file.path( R_HOME, "bin" ),
Added: pkg/RemoteREngine/inst/java_src/src/apt/com/addictedtor/remoterengine/apt/IsNotAServiceException.java
===================================================================
--- pkg/RemoteREngine/inst/java_src/src/apt/com/addictedtor/remoterengine/apt/IsNotAServiceException.java (rev 0)
+++ pkg/RemoteREngine/inst/java_src/src/apt/com/addictedtor/remoterengine/apt/IsNotAServiceException.java 2009-09-07 15:16:15 UTC (rev 110)
@@ -0,0 +1,13 @@
+package com.addictedtor.remoterengine.apt;
+
+import com.sun.mirror.declaration.ClassDeclaration;
+
+public class IsNotAServiceException extends ServiceImplementationAnnotationException {
+
+ private static final long serialVersionUID = 1L;
+
+ public IsNotAServiceException(ClassDeclaration dec) {
+ super(dec, "The class annotated with @ServiceImplementation should implement an interface that extends the Service interface") ;
+ }
+
+}
Added: pkg/RemoteREngine/inst/java_src/src/apt/com/addictedtor/remoterengine/apt/RemoteREngineAnnotationException.java
===================================================================
--- pkg/RemoteREngine/inst/java_src/src/apt/com/addictedtor/remoterengine/apt/RemoteREngineAnnotationException.java (rev 0)
+++ pkg/RemoteREngine/inst/java_src/src/apt/com/addictedtor/remoterengine/apt/RemoteREngineAnnotationException.java 2009-09-07 15:16:15 UTC (rev 110)
@@ -0,0 +1,20 @@
+package com.addictedtor.remoterengine.apt;
+
+import com.sun.mirror.declaration.Declaration;
+
+public abstract class RemoteREngineAnnotationException extends Exception {
+
+ private static final long serialVersionUID = 1L;
+
+ protected Declaration declaration ;
+
+ public RemoteREngineAnnotationException(Declaration declaration, String message){
+ super( message ) ;
+ }
+
+ public String getMessage(){
+ /* TODO: add information about source location of the problem */
+ return super.getMessage() ;
+ }
+
+}
Modified: pkg/RemoteREngine/inst/java_src/src/apt/com/addictedtor/remoterengine/apt/RemoteREngineAnnotationProcessor.java
===================================================================
--- pkg/RemoteREngine/inst/java_src/src/apt/com/addictedtor/remoterengine/apt/RemoteREngineAnnotationProcessor.java 2009-09-07 12:59:48 UTC (rev 109)
+++ pkg/RemoteREngine/inst/java_src/src/apt/com/addictedtor/remoterengine/apt/RemoteREngineAnnotationProcessor.java 2009-09-07 15:16:15 UTC (rev 110)
@@ -8,10 +8,6 @@
import java.util.Collection;
import java.util.Map;
-import com.addictedtor.remoterengine.apt.exceptions.IsNotAServiceException;
-import com.addictedtor.remoterengine.apt.exceptions.RemoteREngineAnnotationException;
-import com.addictedtor.remoterengine.apt.exceptions.ShouldBeClassDeclarationException;
-import com.addictedtor.remoterengine.apt.exceptions.ShouldHaveADefaultConstructorException;
import com.sun.mirror.apt.AnnotationProcessor;
import com.sun.mirror.apt.AnnotationProcessorEnvironment;
import com.sun.mirror.declaration.AnnotationMirror;
Added: pkg/RemoteREngine/inst/java_src/src/apt/com/addictedtor/remoterengine/apt/ServiceImplementationAnnotationException.java
===================================================================
--- pkg/RemoteREngine/inst/java_src/src/apt/com/addictedtor/remoterengine/apt/ServiceImplementationAnnotationException.java (rev 0)
+++ pkg/RemoteREngine/inst/java_src/src/apt/com/addictedtor/remoterengine/apt/ServiceImplementationAnnotationException.java 2009-09-07 15:16:15 UTC (rev 110)
@@ -0,0 +1,13 @@
+package com.addictedtor.remoterengine.apt;
+
+import com.sun.mirror.declaration.Declaration;
+
+public class ServiceImplementationAnnotationException extends
+ RemoteREngineAnnotationException {
+
+ private static final long serialVersionUID = 1L;
+
+ public ServiceImplementationAnnotationException( Declaration declaration, String message ){
+ super(declaration, message);
+ }
+}
Added: pkg/RemoteREngine/inst/java_src/src/apt/com/addictedtor/remoterengine/apt/ShouldBeClassDeclarationException.java
===================================================================
--- pkg/RemoteREngine/inst/java_src/src/apt/com/addictedtor/remoterengine/apt/ShouldBeClassDeclarationException.java (rev 0)
+++ pkg/RemoteREngine/inst/java_src/src/apt/com/addictedtor/remoterengine/apt/ShouldBeClassDeclarationException.java 2009-09-07 15:16:15 UTC (rev 110)
@@ -0,0 +1,15 @@
+package com.addictedtor.remoterengine.apt;
+
+import com.sun.mirror.declaration.Declaration;
+
+
+public class ShouldBeClassDeclarationException extends
+ ServiceImplementationAnnotationException {
+
+ private static final long serialVersionUID = 1L;
+
+ public ShouldBeClassDeclarationException(Declaration declaration) {
+ super( declaration, "the @ServiceImplementation annotation should only be used used on class declaration" );
+ }
+
+}
Added: pkg/RemoteREngine/inst/java_src/src/apt/com/addictedtor/remoterengine/apt/ShouldHaveADefaultConstructorException.java
===================================================================
--- pkg/RemoteREngine/inst/java_src/src/apt/com/addictedtor/remoterengine/apt/ShouldHaveADefaultConstructorException.java (rev 0)
+++ pkg/RemoteREngine/inst/java_src/src/apt/com/addictedtor/remoterengine/apt/ShouldHaveADefaultConstructorException.java 2009-09-07 15:16:15 UTC (rev 110)
@@ -0,0 +1,14 @@
+package com.addictedtor.remoterengine.apt;
+
+import com.sun.mirror.declaration.Declaration;
+
+public class ShouldHaveADefaultConstructorException extends
+ ServiceImplementationAnnotationException {
+
+ private static final long serialVersionUID = 1L;
+
+ public ShouldHaveADefaultConstructorException(Declaration declaration) {
+ super( declaration, "the class annotated by @ServiceImplementation should have a constructor with no parameters");
+ }
+
+}
Deleted: pkg/RemoteREngine/inst/java_src/src/apt/com/addictedtor/remoterengine/apt/exceptions/IsNotAServiceException.java
===================================================================
--- pkg/RemoteREngine/inst/java_src/src/apt/com/addictedtor/remoterengine/apt/exceptions/IsNotAServiceException.java 2009-09-07 12:59:48 UTC (rev 109)
+++ pkg/RemoteREngine/inst/java_src/src/apt/com/addictedtor/remoterengine/apt/exceptions/IsNotAServiceException.java 2009-09-07 15:16:15 UTC (rev 110)
@@ -1,13 +0,0 @@
-package com.addictedtor.remoterengine.apt.exceptions;
-
-import com.sun.mirror.declaration.ClassDeclaration;
-
-public class IsNotAServiceException extends ServiceImplementationAnnotationException {
-
- private static final long serialVersionUID = 1L;
-
- public IsNotAServiceException(ClassDeclaration dec) {
- super(dec, "The class annotated with @ServiceImplementation should implement an interface that extends the Service interface") ;
- }
-
-}
Deleted: pkg/RemoteREngine/inst/java_src/src/apt/com/addictedtor/remoterengine/apt/exceptions/RemoteREngineAnnotationException.java
===================================================================
--- pkg/RemoteREngine/inst/java_src/src/apt/com/addictedtor/remoterengine/apt/exceptions/RemoteREngineAnnotationException.java 2009-09-07 12:59:48 UTC (rev 109)
+++ pkg/RemoteREngine/inst/java_src/src/apt/com/addictedtor/remoterengine/apt/exceptions/RemoteREngineAnnotationException.java 2009-09-07 15:16:15 UTC (rev 110)
@@ -1,20 +0,0 @@
-package com.addictedtor.remoterengine.apt.exceptions;
-
-import com.sun.mirror.declaration.Declaration;
-
-public abstract class RemoteREngineAnnotationException extends Exception {
-
- private static final long serialVersionUID = 1L;
-
- protected Declaration declaration ;
-
- public RemoteREngineAnnotationException(Declaration declaration, String message){
- super( message ) ;
- }
-
- public String getMessage(){
- /* TODO: add information about source location of the problem */
- return super.getMessage() ;
- }
-
-}
Deleted: pkg/RemoteREngine/inst/java_src/src/apt/com/addictedtor/remoterengine/apt/exceptions/ServiceImplementationAnnotationException.java
===================================================================
--- pkg/RemoteREngine/inst/java_src/src/apt/com/addictedtor/remoterengine/apt/exceptions/ServiceImplementationAnnotationException.java 2009-09-07 12:59:48 UTC (rev 109)
+++ pkg/RemoteREngine/inst/java_src/src/apt/com/addictedtor/remoterengine/apt/exceptions/ServiceImplementationAnnotationException.java 2009-09-07 15:16:15 UTC (rev 110)
@@ -1,13 +0,0 @@
-package com.addictedtor.remoterengine.apt.exceptions;
-
-import com.sun.mirror.declaration.Declaration;
-
-public class ServiceImplementationAnnotationException extends
- RemoteREngineAnnotationException {
-
- private static final long serialVersionUID = 1L;
-
- public ServiceImplementationAnnotationException( Declaration declaration, String message ){
- super(declaration, message);
- }
-}
Deleted: pkg/RemoteREngine/inst/java_src/src/apt/com/addictedtor/remoterengine/apt/exceptions/ShouldBeClassDeclarationException.java
===================================================================
--- pkg/RemoteREngine/inst/java_src/src/apt/com/addictedtor/remoterengine/apt/exceptions/ShouldBeClassDeclarationException.java 2009-09-07 12:59:48 UTC (rev 109)
+++ pkg/RemoteREngine/inst/java_src/src/apt/com/addictedtor/remoterengine/apt/exceptions/ShouldBeClassDeclarationException.java 2009-09-07 15:16:15 UTC (rev 110)
@@ -1,15 +0,0 @@
-package com.addictedtor.remoterengine.apt.exceptions;
-
-import com.sun.mirror.declaration.Declaration;
-
-
-public class ShouldBeClassDeclarationException extends
- ServiceImplementationAnnotationException {
-
- private static final long serialVersionUID = 1L;
-
- public ShouldBeClassDeclarationException(Declaration declaration) {
- super( declaration, "the @ServiceImplementation annotation should only be used used on class declaration" );
- }
-
-}
Deleted: pkg/RemoteREngine/inst/java_src/src/apt/com/addictedtor/remoterengine/apt/exceptions/ShouldHaveADefaultConstructorException.java
===================================================================
--- pkg/RemoteREngine/inst/java_src/src/apt/com/addictedtor/remoterengine/apt/exceptions/ShouldHaveADefaultConstructorException.java 2009-09-07 12:59:48 UTC (rev 109)
+++ pkg/RemoteREngine/inst/java_src/src/apt/com/addictedtor/remoterengine/apt/exceptions/ShouldHaveADefaultConstructorException.java 2009-09-07 15:16:15 UTC (rev 110)
@@ -1,14 +0,0 @@
-package com.addictedtor.remoterengine.apt.exceptions;
-
-import com.sun.mirror.declaration.Declaration;
-
-public class ShouldHaveADefaultConstructorException extends
- ServiceImplementationAnnotationException {
-
- private static final long serialVersionUID = 1L;
-
- public ShouldHaveADefaultConstructorException(Declaration declaration) {
- super( declaration, "the class annotated by @ServiceImplementation should have a constructor with no parameters");
- }
-
-}
More information about the Remoterengine-commits
mailing list