[dna-commits] DNA SVN: r366 - in trunk/sequencers/dna-sequencer-java/src/test: workspace and 5 other directories.

dna-commits at lists.jboss.org dna-commits at lists.jboss.org
Wed Jul 23 13:12:46 EDT 2008


Author: spagop
Date: 2008-07-23 13:12:46 -0400 (Wed, 23 Jul 2008)
New Revision: 366

Added:
   trunk/sequencers/dna-sequencer-java/src/test/workspace/
   trunk/sequencers/dna-sequencer-java/src/test/workspace/projectX/
   trunk/sequencers/dna-sequencer-java/src/test/workspace/projectX/src/
   trunk/sequencers/dna-sequencer-java/src/test/workspace/projectX/src/org/
   trunk/sequencers/dna-sequencer-java/src/test/workspace/projectX/src/org/acme/
   trunk/sequencers/dna-sequencer-java/src/test/workspace/projectX/src/org/acme/MySource.java
   trunk/sequencers/dna-sequencer-java/src/test/workspace/projectX/src/org/acme/annotation/
   trunk/sequencers/dna-sequencer-java/src/test/workspace/projectX/src/org/acme/annotation/MyClassAnnotation.java
   trunk/sequencers/dna-sequencer-java/src/test/workspace/projectX/src/org/acme/annotation/MyPackageAnnotation.java
   trunk/sequencers/dna-sequencer-java/src/test/workspace/projectX/src/org/acme/package-info.java
Log:
For now the java sequence can't determine the package annotations from the source file called package-info.java. To test the metadata and sequencing processing and also eliminate the Eclipse compiler problem, I have created in "test" directory a "workspace" directory, where all java sources and projects that are used in some tests can be resided.

Added: trunk/sequencers/dna-sequencer-java/src/test/workspace/projectX/src/org/acme/MySource.java
===================================================================
--- trunk/sequencers/dna-sequencer-java/src/test/workspace/projectX/src/org/acme/MySource.java	                        (rev 0)
+++ trunk/sequencers/dna-sequencer-java/src/test/workspace/projectX/src/org/acme/MySource.java	2008-07-23 17:12:46 UTC (rev 366)
@@ -0,0 +1,78 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2008, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors. 
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.acme;
+
+import org.acme.annotation.MyClassAnnotation;
+import java.util.*;
+
+/**
+ * @author Serge Pagop
+ */
+ at MyClassAnnotation
+public class MySource {
+    
+    private int i;
+    private List<String> l;
+    private A<String>.B<Integer> o;
+    private X x;
+    
+    public MySource(){}
+    
+    public int getI() {
+        return this.i;
+    }
+
+    public void setI( int i ) {
+        this.i = i;
+    }
+    
+    public void doSomething() {
+        l= new ArrayList<String>();
+        l.add("N1");
+    }
+    
+    class A<E> {
+        E e;
+        
+        A(E e) {
+            this.e = e;
+        }
+        
+        @Override
+        public String toString() {
+            return String.valueOf(this.e);
+        }
+        class B<T> {
+            T t;
+            B(T t) {
+                this.t = t;
+            }
+            @Override
+            public String toString() {
+                return String.valueOf(this.t);
+            }
+        }
+    }
+    class X {
+        
+    }
+}

Added: trunk/sequencers/dna-sequencer-java/src/test/workspace/projectX/src/org/acme/annotation/MyClassAnnotation.java
===================================================================
--- trunk/sequencers/dna-sequencer-java/src/test/workspace/projectX/src/org/acme/annotation/MyClassAnnotation.java	                        (rev 0)
+++ trunk/sequencers/dna-sequencer-java/src/test/workspace/projectX/src/org/acme/annotation/MyClassAnnotation.java	2008-07-23 17:12:46 UTC (rev 366)
@@ -0,0 +1,36 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2008, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors. 
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.acme.annotation;
+
+import java.lang.annotation.ElementType;
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+import java.lang.annotation.Target;
+
+/**
+ * @author Randall Hauch
+ */
+ at Retention( RetentionPolicy.CLASS )
+ at Target( ElementType.TYPE )
+public @interface MyClassAnnotation {
+
+}

Added: trunk/sequencers/dna-sequencer-java/src/test/workspace/projectX/src/org/acme/annotation/MyPackageAnnotation.java
===================================================================
--- trunk/sequencers/dna-sequencer-java/src/test/workspace/projectX/src/org/acme/annotation/MyPackageAnnotation.java	                        (rev 0)
+++ trunk/sequencers/dna-sequencer-java/src/test/workspace/projectX/src/org/acme/annotation/MyPackageAnnotation.java	2008-07-23 17:12:46 UTC (rev 366)
@@ -0,0 +1,36 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2008, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors. 
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.acme.annotation;
+
+import java.lang.annotation.ElementType;
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+import java.lang.annotation.Target;
+
+/**
+ * @author Randall Hauch
+ */
+ at Retention( RetentionPolicy.CLASS )
+ at Target( ElementType.PACKAGE )
+public @interface MyPackageAnnotation {
+
+}

Added: trunk/sequencers/dna-sequencer-java/src/test/workspace/projectX/src/org/acme/package-info.java
===================================================================
--- trunk/sequencers/dna-sequencer-java/src/test/workspace/projectX/src/org/acme/package-info.java	                        (rev 0)
+++ trunk/sequencers/dna-sequencer-java/src/test/workspace/projectX/src/org/acme/package-info.java	2008-07-23 17:12:46 UTC (rev 366)
@@ -0,0 +1,26 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2008, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors. 
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+ at MyPackageAnnotation
+package org.acme;
+
+import org.acme.annotation.MyPackageAnnotation;
+




More information about the dna-commits mailing list