You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by ds...@apache.org on 2008/03/25 02:41:02 UTC
svn commit: r640668 [4/6] - in /openejb/trunk/sandbox/openejb-eclipse-plugin:
features/org.apache.openejb.feature/
features/org.apache.openejb.feature/.externalToolBuilders/ plugins/
plugins/org.apache.openejb.branding/ plugins/org.apache.openejb.brand...
Added: openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.helper.annotation.test/plugin.properties
URL: http://svn.apache.org/viewvc/openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.helper.annotation.test/plugin.properties?rev=640668&view=auto
==============================================================================
--- openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.helper.annotation.test/plugin.properties (added)
+++ openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.helper.annotation.test/plugin.properties Mon Mar 24 18:40:47 2008
@@ -0,0 +1,34 @@
+#######################################################################
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+# $Rev: 577442 $ $Date: 2007-09-19 21:43:00 +0100 (Wed, 19 Sep 2007) $
+#
+#######################################################################
+#
+# plugin.properties
+# contains externalized strings for feature.xml
+# "%foo" in feature.xml corresponds to the key "foo" in this file
+# java.io.Properties file (ISO 8859-1 with "\" escapes)
+# This file should be translated.
+#
+#######################################################################
+
+# "pluginName" property - name of the plugin
+pluginName = Apache OpenEJB EJB 3.0 Migration Eclipse Test Plugin
+
+# "providerName" property - name of the company that provides the feature
+providerName = Apache OpenEJB Project
\ No newline at end of file
Modified: openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.helper.annotation.test/plugin.xml
URL: http://svn.apache.org/viewvc/openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.helper.annotation.test/plugin.xml?rev=640668&r1=640667&r2=640668&view=diff
==============================================================================
--- openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.helper.annotation.test/plugin.xml (original)
+++ openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.helper.annotation.test/plugin.xml Mon Mar 24 18:40:47 2008
@@ -1,5 +1,21 @@
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.2"?>
+<!--
+ ~ Licensed to the Apache Software Foundation (ASF) under one or more
+ ~ contributor license agreements. See the NOTICE file distributed with
+ ~ this work for additional information regarding copyright ownership.
+ ~ The ASF licenses this file to You under the Apache License, Version 2.0
+ ~ (the "License"); you may not use this file except in compliance with
+ ~ the License. You may obtain a copy of the License at
+ ~
+ ~ http://www.apache.org/licenses/LICENSE-2.0
+ ~
+ ~ Unless required by applicable law or agreed to in writing, software
+ ~ distributed under the License is distributed on an "AS IS" BASIS,
+ ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ ~ See the License for the specific language governing permissions and
+ ~ limitations under the License.
+ -->
<plugin>
</plugin>
Added: openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.helper.annotation.test/plugin_de.properties
URL: http://svn.apache.org/viewvc/openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.helper.annotation.test/plugin_de.properties?rev=640668&view=auto
==============================================================================
--- openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.helper.annotation.test/plugin_de.properties (added)
+++ openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.helper.annotation.test/plugin_de.properties Mon Mar 24 18:40:47 2008
@@ -0,0 +1,34 @@
+#######################################################################
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+# $Rev: 577442 $ $Date: 2007-09-19 21:43:00 +0100 (Wed, 19 Sep 2007) $
+#
+#######################################################################
+#
+# plugin.properties
+# contains externalized strings for feature.xml
+# "%foo" in feature.xml corresponds to the key "foo" in this file
+# java.io.Properties file (ISO 8859-1 with "\" escapes)
+# This file should be translated.
+#
+#######################################################################
+
+# "pluginName" property - name of the plugin
+pluginName = Apache OpenEJB EJB 3.0 Migrations-Test-Plugin f\u00fcr Eclipse
+
+# "providerName" property - name of the company that provides the feature
+providerName = Apache OpenEJB Projekt
Modified: openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.helper.annotation.test/pom.xml
URL: http://svn.apache.org/viewvc/openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.helper.annotation.test/pom.xml?rev=640668&r1=640667&r2=640668&view=diff
==============================================================================
--- openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.helper.annotation.test/pom.xml (original)
+++ openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.helper.annotation.test/pom.xml Mon Mar 24 18:40:47 2008
@@ -1,4 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ ~ Licensed to the Apache Software Foundation (ASF) under one or more
+ ~ contributor license agreements. See the NOTICE file distributed with
+ ~ this work for additional information regarding copyright ownership.
+ ~ The ASF licenses this file to You under the Apache License, Version 2.0
+ ~ (the "License"); you may not use this file except in compliance with
+ ~ the License. You may obtain a copy of the License at
+ ~
+ ~ http://www.apache.org/licenses/LICENSE-2.0
+ ~
+ ~ Unless required by applicable law or agreed to in writing, software
+ ~ distributed under the License is distributed on an "AS IS" BASIS,
+ ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ ~ See the License for the specific language governing permissions and
+ ~ limitations under the License.
+ -->
<project>
<parent>
<artifactId>eclipse-plugins-parent</artifactId>
@@ -16,6 +32,9 @@
<directory>.</directory>
<includes>
<include>plugin.xml</include>
+ <include>about.html</include>
+ <include>plugin.properties</include>
+ <include>plugin_*.properties</include>
</includes>
</resource>
<resource>
Modified: openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.helper.annotation.test/src/main/java/org/apache/openejb/helper/annotation/fixtures/ProjectFixture.java
URL: http://svn.apache.org/viewvc/openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.helper.annotation.test/src/main/java/org/apache/openejb/helper/annotation/fixtures/ProjectFixture.java?rev=640668&r1=640667&r2=640668&view=diff
==============================================================================
--- openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.helper.annotation.test/src/main/java/org/apache/openejb/helper/annotation/fixtures/ProjectFixture.java (original)
+++ openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.helper.annotation.test/src/main/java/org/apache/openejb/helper/annotation/fixtures/ProjectFixture.java Mon Mar 24 18:40:47 2008
@@ -21,7 +21,6 @@
import org.eclipse.core.resources.IFolder;
import org.eclipse.core.resources.IProject;
import org.eclipse.core.resources.IProjectDescription;
-import org.eclipse.core.resources.IResource;
import org.eclipse.core.resources.IncrementalProjectBuilder;
import org.eclipse.core.resources.ResourcesPlugin;
import org.eclipse.core.runtime.CoreException;
@@ -33,9 +32,7 @@
import org.eclipse.jdt.core.IPackageFragmentRoot;
import org.eclipse.jdt.core.IType;
import org.eclipse.jdt.core.JavaCore;
-import org.eclipse.jdt.core.compiler.CompilationParticipant;
import org.eclipse.jdt.core.dom.AST;
-import org.eclipse.jdt.core.dom.ASTParser;
import org.eclipse.jdt.launching.JavaRuntime;
public class ProjectFixture {
@@ -47,7 +44,7 @@
try {
project = ResourcesPlugin.getWorkspace()
.getRoot()
- .getProject("TestProject");
+ .getProject("TestProject"); //$NON-NLS-1$
project.create(null);
project.open(null);
@@ -55,8 +52,8 @@
addJavaNature();
- IFile j2eeJar = project.getFile("javaee.jar");
- j2eeJar.create(getClass().getResourceAsStream("javaee.jar"), true, null);
+ IFile j2eeJar = project.getFile("javaee.jar"); //$NON-NLS-1$
+ j2eeJar.create(getClass().getResourceAsStream("javaee.jar"), true, null); //$NON-NLS-1$
javaProject.setRawClasspath(new IClasspathEntry[]{ JavaRuntime.getDefaultJREContainerEntry(), JavaCore.newLibraryEntry(j2eeJar.getFullPath(), null, null) }, null);
@@ -64,7 +61,7 @@
addBinFolder();
} catch (Exception e) {
- throw new RuntimeException("Unable to create Eclipse project", e);
+ throw new RuntimeException(Messages.getString("org.apache.openejb.helper.annotation.fixtures.runtimeExceptionMsg"), e); //$NON-NLS-1$
}
}
@@ -75,14 +72,14 @@
protected void addBinFolder() throws CoreException {
IProject project = javaProject.getProject();
- IFolder folder = project.getFolder("bin");
+ IFolder folder = project.getFolder("bin"); //$NON-NLS-1$
IPath outputLocation= folder.getFullPath();
javaProject.setOutputLocation(outputLocation, null);
}
protected void addSrcFolder() throws CoreException {
- IFolder folder = project.getFolder("src");
+ IFolder folder = project.getFolder("src"); //$NON-NLS-1$
folder.create(false, true, null);
IPackageFragmentRoot root = javaProject.getPackageFragmentRoot(folder);
@@ -104,7 +101,7 @@
String className = getClassName(fullClassName);
String packageName = getPackageName(fullClassName);
- IFolder folder = project.getFolder("src");
+ IFolder folder = project.getFolder("src"); //$NON-NLS-1$
if (! folder.exists()) {
addSrcFolder();
}
@@ -112,17 +109,17 @@
IPackageFragmentRoot packageFragmentRoot = javaProject.findPackageFragmentRoot(folder.getFullPath());
IPackageFragment packageFragment = packageFragmentRoot.createPackageFragment(packageName, true, null);
- ICompilationUnit cu = packageFragment.createCompilationUnit(className + ".java", content, true, null);
+ ICompilationUnit cu = packageFragment.createCompilationUnit(className + ".java", content, true, null); //$NON-NLS-1$
cu.reconcile(AST.JLS3, true, null, null);
}
private String getPackageName(String fullClassName) {
- int lastDotPosition = fullClassName.lastIndexOf(".");
+ int lastDotPosition = fullClassName.lastIndexOf("."); //$NON-NLS-1$
return fullClassName.substring(0, lastDotPosition);
}
private String getClassName(String fullClassName) {
- int lastDotPosition = fullClassName.lastIndexOf(".");
+ int lastDotPosition = fullClassName.lastIndexOf("."); //$NON-NLS-1$
return fullClassName.substring(lastDotPosition + 1);
}
Modified: openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.helper.annotation.test/src/main/java/org/apache/openejb/helper/annotation/tests/Activator.java
URL: http://svn.apache.org/viewvc/openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.helper.annotation.test/src/main/java/org/apache/openejb/helper/annotation/tests/Activator.java?rev=640668&r1=640667&r2=640668&view=diff
==============================================================================
--- openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.helper.annotation.test/src/main/java/org/apache/openejb/helper/annotation/tests/Activator.java (original)
+++ openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.helper.annotation.test/src/main/java/org/apache/openejb/helper/annotation/tests/Activator.java Mon Mar 24 18:40:47 2008
@@ -26,7 +26,7 @@
public class Activator extends Plugin {
// The plug-in ID
- public static final String PLUGIN_ID = "org.apache.openejb.helper.annotation.test";
+ public static final String PLUGIN_ID = "org.apache.openejb.helper.annotation.test"; //$NON-NLS-1$
// The shared instance
private static Activator plugin;
Modified: openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.helper.annotation.test/src/main/java/org/apache/openejb/helper/annotation/tests/AddAnnotationTest.java
URL: http://svn.apache.org/viewvc/openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.helper.annotation.test/src/main/java/org/apache/openejb/helper/annotation/tests/AddAnnotationTest.java?rev=640668&r1=640667&r2=640668&view=diff
==============================================================================
--- openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.helper.annotation.test/src/main/java/org/apache/openejb/helper/annotation/tests/AddAnnotationTest.java (original)
+++ openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.helper.annotation.test/src/main/java/org/apache/openejb/helper/annotation/tests/AddAnnotationTest.java Mon Mar 24 18:40:47 2008
@@ -84,7 +84,7 @@
}
}
- public static final String PROJECT_NAME = "TestProject";
+ public static final String PROJECT_NAME = "TestProject"; //$NON-NLS-1$
private ProjectFixture fixture;
/**
@@ -95,119 +95,119 @@
}
public void testShouldAddAnAnnotationToAJavaSourceFile() throws Exception {
- addNewClassToProject("org.apache.openejb.test.TestBean1", getStreamContents(getClass().getResourceAsStream("Test1.txt")));
+ addNewClassToProject("org.apache.openejb.test.TestBean1", getStreamContents(getClass().getResourceAsStream("Test1.txt"))); //$NON-NLS-1$ //$NON-NLS-2$
JDTFacade facade = new JDTFacade(fixture.getProject());
- facade.addClassAnnotation("org.apache.openejb.test.TestBean1", Stateless.class, null);
+ facade.addClassAnnotation("org.apache.openejb.test.TestBean1", Stateless.class, null); //$NON-NLS-1$
Change change = facade.getChange();
FakeProgressMonitor progressMonitor = new FakeProgressMonitor();
change.perform(progressMonitor);
- assertEquals(getStreamContents(getClass().getResourceAsStream("ExpectedResult1.txt")), getClassContents("org.apache.openejb.test.TestBean1"));
+ assertEquals(getStreamContents(getClass().getResourceAsStream("ExpectedResult1.txt")), getClassContents("org.apache.openejb.test.TestBean1")); //$NON-NLS-1$ //$NON-NLS-2$
}
public void testShouldAddAnAnnotationToAJavaSourceFileAndNotAddAnImportIfTheImportAlreadyExists() throws Exception {
- addNewClassToProject("org.apache.openejb.test.TestBean2", getStreamContents(getClass().getResourceAsStream("Test2.txt")));
+ addNewClassToProject("org.apache.openejb.test.TestBean2", getStreamContents(getClass().getResourceAsStream("Test2.txt"))); //$NON-NLS-1$ //$NON-NLS-2$
JDTFacade facade = new JDTFacade(fixture.getProject());
- facade.addClassAnnotation("org.apache.openejb.test.TestBean2", Stateless.class, null);
+ facade.addClassAnnotation("org.apache.openejb.test.TestBean2", Stateless.class, null); //$NON-NLS-1$
Change change = facade.getChange();
FakeProgressMonitor progressMonitor = new FakeProgressMonitor();
change.perform(progressMonitor);
- assertEquals(getStreamContents(getClass().getResourceAsStream("ExpectedResult2.txt")), getClassContents("org.apache.openejb.test.TestBean2"));
+ assertEquals(getStreamContents(getClass().getResourceAsStream("ExpectedResult2.txt")), getClassContents("org.apache.openejb.test.TestBean2")); //$NON-NLS-1$ //$NON-NLS-2$
}
public void testShouldAddAnAnnotationToAJavaSourceFileAndNotAddAnImportIfThePackageIsAlreadyImported() throws Exception {
- addNewClassToProject("org.apache.openejb.test.TestBean3", getStreamContents(getClass().getResourceAsStream("Test3.txt")));
+ addNewClassToProject("org.apache.openejb.test.TestBean3", getStreamContents(getClass().getResourceAsStream("Test3.txt"))); //$NON-NLS-1$ //$NON-NLS-2$
JDTFacade facade = new JDTFacade(fixture.getProject());
- facade.addClassAnnotation("org.apache.openejb.test.TestBean3", Stateless.class, null);
+ facade.addClassAnnotation("org.apache.openejb.test.TestBean3", Stateless.class, null); //$NON-NLS-1$
Change change = facade.getChange();
FakeProgressMonitor progressMonitor = new FakeProgressMonitor();
change.perform(progressMonitor);
- assertEquals(getStreamContents(getClass().getResourceAsStream("ExpectedResult3.txt")), getClassContents("org.apache.openejb.test.TestBean3"));
+ assertEquals(getStreamContents(getClass().getResourceAsStream("ExpectedResult3.txt")), getClassContents("org.apache.openejb.test.TestBean3")); //$NON-NLS-1$ //$NON-NLS-2$
}
public void testShouldAddAnnotationWithProperties() throws Exception {
- addNewClassToProject("org.apache.openejb.test.TestBean4", getStreamContents(getClass().getResourceAsStream("Test4.txt")));
+ addNewClassToProject("org.apache.openejb.test.TestBean4", getStreamContents(getClass().getResourceAsStream("Test4.txt"))); //$NON-NLS-1$ //$NON-NLS-2$
Map<String,Object> properties = new HashMap<String,Object>();
- properties.put("name", "Test");
+ properties.put("name", "Test"); //$NON-NLS-1$ //$NON-NLS-2$
JDTFacade facade = new JDTFacade(fixture.getProject());
- facade.addClassAnnotation("org.apache.openejb.test.TestBean4", Entity.class, properties);
+ facade.addClassAnnotation("org.apache.openejb.test.TestBean4", Entity.class, properties); //$NON-NLS-1$
Change change = facade.getChange();
FakeProgressMonitor progressMonitor = new FakeProgressMonitor();
change.perform(progressMonitor);
- assertEquals(getStreamContents(getClass().getResourceAsStream("ExpectedResult4.txt")), getClassContents("org.apache.openejb.test.TestBean4"));
+ assertEquals(getStreamContents(getClass().getResourceAsStream("ExpectedResult4.txt")), getClassContents("org.apache.openejb.test.TestBean4")); //$NON-NLS-1$ //$NON-NLS-2$
}
public void testShouldAddAnnotationWithEnumProperty() throws Exception {
- addNewClassToProject("org.apache.openejb.test.TestBean5", getStreamContents(getClass().getResourceAsStream("Test5.txt")));
+ addNewClassToProject("org.apache.openejb.test.TestBean5", getStreamContents(getClass().getResourceAsStream("Test5.txt"))); //$NON-NLS-1$ //$NON-NLS-2$
Map<String,Object> properties = new HashMap<String,Object>();
- properties.put("value", TransactionManagementType.BEAN);
+ properties.put("value", TransactionManagementType.BEAN); //$NON-NLS-1$
JDTFacade facade = new JDTFacade(fixture.getProject());
- facade.addClassAnnotation("org.apache.openejb.test.TestBean5", TransactionManagement.class, properties);
+ facade.addClassAnnotation("org.apache.openejb.test.TestBean5", TransactionManagement.class, properties); //$NON-NLS-1$
Change change = facade.getChange();
FakeProgressMonitor progressMonitor = new FakeProgressMonitor();
change.perform(progressMonitor);
- assertEquals(getStreamContents(getClass().getResourceAsStream("ExpectedResult5.txt")), getClassContents("org.apache.openejb.test.TestBean5"));
+ assertEquals(getStreamContents(getClass().getResourceAsStream("ExpectedResult5.txt")), getClassContents("org.apache.openejb.test.TestBean5")); //$NON-NLS-1$ //$NON-NLS-2$
}
public void testShouldAddMethodAnnotationWithEnumProperty() throws Exception {
- addNewClassToProject("org.apache.openejb.test.TestBean6", getStreamContents(getClass().getResourceAsStream("Test6.txt")));
+ addNewClassToProject("org.apache.openejb.test.TestBean6", getStreamContents(getClass().getResourceAsStream("Test6.txt"))); //$NON-NLS-1$ //$NON-NLS-2$
JDTFacade facade = new JDTFacade(fixture.getProject());
- facade.addMethodAnnotation("org.apache.openejb.test.TestBean6", "echoHelloWorld", new String[] {"java.lang.String"}, ManyToMany.class, null);
+ facade.addMethodAnnotation("org.apache.openejb.test.TestBean6", "echoHelloWorld", new String[] {"java.lang.String"}, ManyToMany.class, null); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
Change change = facade.getChange();
FakeProgressMonitor progressMonitor = new FakeProgressMonitor();
change.perform(progressMonitor);
- assertEquals(getStreamContents(getClass().getResourceAsStream("ExpectedResult6.txt")), getClassContents("org.apache.openejb.test.TestBean6"));
+ assertEquals(getStreamContents(getClass().getResourceAsStream("ExpectedResult6.txt")), getClassContents("org.apache.openejb.test.TestBean6")); //$NON-NLS-1$ //$NON-NLS-2$
}
public void testShouldAddAnnotationWithClassAttributeWithStringPassedIn() throws Exception {
- addNewClassToProject("org.apache.openejb.test.TestBean7", getStreamContents(getClass().getResourceAsStream("Test7.txt")));
+ addNewClassToProject("org.apache.openejb.test.TestBean7", getStreamContents(getClass().getResourceAsStream("Test7.txt"))); //$NON-NLS-1$ //$NON-NLS-2$
JDTFacade facade = new JDTFacade(fixture.getProject());
Map<String, Object> properties = new HashMap<String,Object>();
- properties.put("value", new String[] { "org.apache.openejb.test.Test7" });
- facade.addClassAnnotation("org.apache.openejb.test.TestBean7", Remote.class, properties);
+ properties.put("value", new String[] { "org.apache.openejb.test.Test7" }); //$NON-NLS-1$ //$NON-NLS-2$
+ facade.addClassAnnotation("org.apache.openejb.test.TestBean7", Remote.class, properties); //$NON-NLS-1$
Change change = facade.getChange();
FakeProgressMonitor progressMonitor = new FakeProgressMonitor();
change.perform(progressMonitor);
- assertEquals(getStreamContents(getClass().getResourceAsStream("ExpectedResult7.txt")), getClassContents("org.apache.openejb.test.TestBean7"));
+ assertEquals(getStreamContents(getClass().getResourceAsStream("ExpectedResult7.txt")), getClassContents("org.apache.openejb.test.TestBean7")); //$NON-NLS-1$ //$NON-NLS-2$
}
public void testShouldAddAnnotationWithNestedAttributes() throws Exception {
- addNewClassToProject("org.apache.openejb.test.TestBean8", getStreamContents(getClass().getResourceAsStream("Test8.txt")));
+ addNewClassToProject("org.apache.openejb.test.TestBean8", getStreamContents(getClass().getResourceAsStream("Test8.txt"))); //$NON-NLS-1$ //$NON-NLS-2$
JDTFacade facade = new JDTFacade(fixture.getProject());
Map<String, Object> properties = new HashMap<String, Object>();
Map<String, Object> activationConfigProperty = new HashMap<String, Object>();
- activationConfigProperty.put("propertyName", "destinationType");
- activationConfigProperty.put("propertyValue", "javax.jms.Queue");
+ activationConfigProperty.put("propertyName", "destinationType"); //$NON-NLS-1$ //$NON-NLS-2$
+ activationConfigProperty.put("propertyValue", "javax.jms.Queue"); //$NON-NLS-1$ //$NON-NLS-2$
- properties.put("activationConfig", new Map[] { activationConfigProperty });
+ properties.put("activationConfig", new Map[] { activationConfigProperty }); //$NON-NLS-1$
- facade.addClassAnnotation("org.apache.openejb.test.TestBean8", MessageDriven.class, properties);
+ facade.addClassAnnotation("org.apache.openejb.test.TestBean8", MessageDriven.class, properties); //$NON-NLS-1$
Change change = facade.getChange();
FakeProgressMonitor progressMonitor = new FakeProgressMonitor();
change.perform(progressMonitor);
- assertEquals(getStreamContents(getClass().getResourceAsStream("ExpectedResult8.txt")), getClassContents("org.apache.openejb.test.TestBean8"));
+ assertEquals(getStreamContents(getClass().getResourceAsStream("ExpectedResult8.txt")), getClassContents("org.apache.openejb.test.TestBean8")); //$NON-NLS-1$ //$NON-NLS-2$
}
/* (non-Javadoc)
Modified: openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.helper.annotation.test/src/main/java/org/apache/openejb/helper/annotation/tests/SessionBeanConverterTest.java
URL: http://svn.apache.org/viewvc/openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.helper.annotation.test/src/main/java/org/apache/openejb/helper/annotation/tests/SessionBeanConverterTest.java?rev=640668&r1=640667&r2=640668&view=diff
==============================================================================
--- openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.helper.annotation.test/src/main/java/org/apache/openejb/helper/annotation/tests/SessionBeanConverterTest.java (original)
+++ openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.helper.annotation.test/src/main/java/org/apache/openejb/helper/annotation/tests/SessionBeanConverterTest.java Mon Mar 24 18:40:47 2008
@@ -17,7 +17,6 @@
package org.apache.openejb.helper.annotation.tests;
-import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.Iterator;
@@ -30,8 +29,6 @@
import javax.annotation.security.RolesAllowed;
import javax.annotation.security.RunAs;
import javax.ejb.MessageDriven;
-import javax.ejb.Remote;
-import javax.ejb.RemoteHome;
import javax.ejb.Stateful;
import javax.ejb.Stateless;
import javax.ejb.TransactionAttribute;
@@ -48,7 +45,6 @@
import org.apache.openejb.helper.annotation.IJDTFacade;
import org.apache.openejb.helper.annotation.OpenEjbXmlConverter;
import org.apache.openejb.helper.annotation.SessionBeanConverter;
-import org.apache.openejb.jee.ActivationConfig;
import org.apache.openejb.jee.AssemblyDescriptor;
import org.apache.openejb.jee.ContainerTransaction;
import org.apache.openejb.jee.EjbJar;
@@ -91,12 +87,12 @@
// expectations
context.checking(new Expectations(){{
- one(facade).addClassAnnotation("test.Test1Bean", Stateless.class, null);
- one(facade).addClassAnnotation("test.Test2Bean", Stateless.class, null);
+ one(facade).addClassAnnotation("test.Test1Bean", Stateless.class, null); //$NON-NLS-1$
+ one(facade).addClassAnnotation("test.Test2Bean", Stateless.class, null); //$NON-NLS-1$
}});
// execute
- converter.convert(new InputSource(getClass().getResourceAsStream("sample-openejb-jar-two-statelessessionbeans.xml")));
+ converter.convert(new InputSource(getClass().getResourceAsStream("sample-openejb-jar-two-statelessessionbeans.xml"))); //$NON-NLS-1$
// verify
context.assertIsSatisfied();
@@ -109,21 +105,21 @@
// expectations
context.checking(new Expectations(){{
- one(facade).addClassAnnotation("test.TestBean", TransactionManagement.class, createNameValuePair("value", TransactionManagementType.BEAN));
- one(facade).addClassAnnotation("test.TestBean", TransactionAttribute.class, createNameValuePair("value", TransactionAttributeType.MANDATORY));
- one(facade).addMethodAnnotation("test.TestBean", "test", new String[] { "java.lang.String" }, TransactionAttribute.class, createNameValuePair("value", TransactionAttributeType.MANDATORY));
+ one(facade).addClassAnnotation("test.TestBean", TransactionManagement.class, createNameValuePair("value", TransactionManagementType.BEAN)); //$NON-NLS-1$ //$NON-NLS-2$
+ one(facade).addClassAnnotation("test.TestBean", TransactionAttribute.class, createNameValuePair("value", TransactionAttributeType.MANDATORY)); //$NON-NLS-1$ //$NON-NLS-2$
+ one(facade).addMethodAnnotation("test.TestBean", "test", new String[] { "java.lang.String" }, TransactionAttribute.class, createNameValuePair("value", TransactionAttributeType.MANDATORY)); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
}});
EnterpriseBean enterpriseBean = new StatefulBean();
- enterpriseBean.setEjbName("TestBean");
- enterpriseBean.setEjbClass("test.TestBean");
+ enterpriseBean.setEjbName("TestBean"); //$NON-NLS-1$
+ enterpriseBean.setEjbClass("test.TestBean"); //$NON-NLS-1$
enterpriseBean.setTransactionType(TransactionType.BEAN);
AssemblyDescriptor descriptor = new AssemblyDescriptor();
- addMethodTransactionToDescriptor(descriptor, "TestBean", "*", new String[0]);
- addMethodTransactionToDescriptor(descriptor, "TestBean", "test", new String[] { "java.lang.String" });
+ addMethodTransactionToDescriptor(descriptor, "TestBean", "*", new String[0]); //$NON-NLS-1$ //$NON-NLS-2$
+ addMethodTransactionToDescriptor(descriptor, "TestBean", "test", new String[] { "java.lang.String" }); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
// execute
converter.processTransactionManagement(enterpriseBean, descriptor);
@@ -140,12 +136,12 @@
// expectations
context.checking(new Expectations(){{
- one(facade).addMethodAnnotation("test.TestBean", "test", new String[0], RolesAllowed.class, createNameValuePair("value", new String[] { "Admin" }));
+ one(facade).addMethodAnnotation("test.TestBean", "test", new String[0], RolesAllowed.class, createNameValuePair("value", new String[] { "Admin" })); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
}});
EjbJar ejbJar = new EjbJar();
- addStatefulBeanToEjbJar(ejbJar, "TestBean", "test.TestBean");
- addMethodToEjbJarDescriptor(ejbJar, "TestBean", "test", new String[] { "Admin" }, false, false);
+ addStatefulBeanToEjbJar(ejbJar, "TestBean", "test.TestBean"); //$NON-NLS-1$ //$NON-NLS-2$
+ addMethodToEjbJarDescriptor(ejbJar, "TestBean", "test", new String[] { "Admin" }, false, false); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
// execute
converter.processMethodPermissions(ejbJar);
@@ -192,12 +188,12 @@
// expectations
context.checking(new Expectations(){{
- one(facade).addClassAnnotation("test.TestBean", RolesAllowed.class, createNameValuePair("value", new String[] { "Admin" }));
+ one(facade).addClassAnnotation("test.TestBean", RolesAllowed.class, createNameValuePair("value", new String[] { "Admin" })); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
}});
EjbJar ejbJar = new EjbJar();
- addStatefulBeanToEjbJar(ejbJar, "TestBean", "test.TestBean");
- addMethodToEjbJarDescriptor(ejbJar, "TestBean", "*", new String[] { "Admin" }, false, false);
+ addStatefulBeanToEjbJar(ejbJar, "TestBean", "test.TestBean"); //$NON-NLS-1$ //$NON-NLS-2$
+ addMethodToEjbJarDescriptor(ejbJar, "TestBean", "*", new String[] { "Admin" }, false, false); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
// execute
converter.processMethodPermissions(ejbJar);
@@ -214,12 +210,12 @@
// expectations
context.checking(new Expectations(){{
- one(facade).addMethodAnnotation("test.TestBean", "test", new String[0], PermitAll.class, null);
+ one(facade).addMethodAnnotation("test.TestBean", "test", new String[0], PermitAll.class, null); //$NON-NLS-1$ //$NON-NLS-2$
}});
EjbJar ejbJar = new EjbJar();
- addStatefulBeanToEjbJar(ejbJar, "TestBean", "test.TestBean");
- addMethodToEjbJarDescriptor(ejbJar, "TestBean", "test", new String[] { "Admin" }, true, false);
+ addStatefulBeanToEjbJar(ejbJar, "TestBean", "test.TestBean"); //$NON-NLS-1$ //$NON-NLS-2$
+ addMethodToEjbJarDescriptor(ejbJar, "TestBean", "test", new String[] { "Admin" }, true, false); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
// execute
converter.processMethodPermissions(ejbJar);
@@ -236,12 +232,12 @@
// expectations
context.checking(new Expectations(){{
- one(facade).addClassAnnotation("test.TestBean", PermitAll.class, null);
+ one(facade).addClassAnnotation("test.TestBean", PermitAll.class, null); //$NON-NLS-1$
}});
EjbJar ejbJar = new EjbJar();
- addStatefulBeanToEjbJar(ejbJar, "TestBean", "test.TestBean");
- addMethodToEjbJarDescriptor(ejbJar, "TestBean", "*", new String[] { "Admin" }, true, false);
+ addStatefulBeanToEjbJar(ejbJar, "TestBean", "test.TestBean"); //$NON-NLS-1$ //$NON-NLS-2$
+ addMethodToEjbJarDescriptor(ejbJar, "TestBean", "*", new String[] { "Admin" }, true, false); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
// execute
converter.processMethodPermissions(ejbJar);
@@ -258,12 +254,12 @@
// expectations
context.checking(new Expectations(){{
- one(facade).addMethodAnnotation("test.TestBean", "test", new String[0], DenyAll.class, null);
+ one(facade).addMethodAnnotation("test.TestBean", "test", new String[0], DenyAll.class, null); //$NON-NLS-1$ //$NON-NLS-2$
}});
EjbJar ejbJar = new EjbJar();
- addStatefulBeanToEjbJar(ejbJar, "TestBean", "test.TestBean");
- addMethodToEjbJarDescriptor(ejbJar, "TestBean", "test", new String[] { "Admin" }, true, true);
+ addStatefulBeanToEjbJar(ejbJar, "TestBean", "test.TestBean"); //$NON-NLS-1$ //$NON-NLS-2$
+ addMethodToEjbJarDescriptor(ejbJar, "TestBean", "test", new String[] { "Admin" }, true, true); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
// execute
converter.processMethodPermissions(ejbJar);
@@ -280,14 +276,14 @@
// expectations
context.checking(new Expectations(){{
- one(facade).addClassAnnotation("test.TestBean", RunAs.class, createNameValuePair("value", "Administrator"));
+ one(facade).addClassAnnotation("test.TestBean", RunAs.class, createNameValuePair("value", "Administrator")); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
}});
EjbJar ejbJar = new EjbJar();
- EnterpriseBean bean = addStatefulBeanToEjbJar(ejbJar, "TestBean", "test.TestBean");
+ EnterpriseBean bean = addStatefulBeanToEjbJar(ejbJar, "TestBean", "test.TestBean"); //$NON-NLS-1$ //$NON-NLS-2$
SecurityIdentity securityIdentity = new SecurityIdentity();
- securityIdentity.setRunAs("Administrator");
+ securityIdentity.setRunAs("Administrator"); //$NON-NLS-1$
bean.setSecurityIdentity(securityIdentity);
// execute
@@ -305,14 +301,14 @@
// expectations
context.checking(new Expectations(){{
- one(facade).addClassAnnotation("test.TestBean", DeclareRoles.class, createNameValuePair("value", new String[] { "Admin" }));
+ one(facade).addClassAnnotation("test.TestBean", DeclareRoles.class, createNameValuePair("value", new String[] { "Admin" })); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
}});
EjbJar ejbJar = new EjbJar();
- EnterpriseBean bean = addStatefulBeanToEjbJar(ejbJar, "TestBean", "test.TestBean");
+ EnterpriseBean bean = addStatefulBeanToEjbJar(ejbJar, "TestBean", "test.TestBean"); //$NON-NLS-1$ //$NON-NLS-2$
RemoteBean remoteBean = (RemoteBean) bean;
- remoteBean.getSecurityRoleRef().add(new SecurityRoleRef("Admin"));
+ remoteBean.getSecurityRoleRef().add(new SecurityRoleRef("Admin")); //$NON-NLS-1$
// execute
converter.processDeclaredRoles(bean);
@@ -329,11 +325,11 @@
// expectations
context.checking(new Expectations(){{
- one(facade).addClassAnnotation("test.TestBean", Interceptors.class, createNameValuePair("value", new String[] { SessionBeanConverterTest.class.getCanonicalName() }));
+ one(facade).addClassAnnotation("test.TestBean", Interceptors.class, createNameValuePair("value", new String[] { SessionBeanConverterTest.class.getCanonicalName() })); //$NON-NLS-1$ //$NON-NLS-2$
}});
EjbJar ejbJar = new EjbJar();
- EnterpriseBean bean = addStatefulBeanToEjbJar(ejbJar, "TestBean", "test.TestBean");
+ EnterpriseBean bean = addStatefulBeanToEjbJar(ejbJar, "TestBean", "test.TestBean"); //$NON-NLS-1$ //$NON-NLS-2$
Interceptor interceptor = new Interceptor(SessionBeanConverterTest.class);
ejbJar.addInterceptor(interceptor);
@@ -357,11 +353,11 @@
// expectations
context.checking(new Expectations(){{
- one(facade).addMethodAnnotation("test.TestBean", "test", new String[0], Interceptors.class, createNameValuePair("value", new String[] { SessionBeanConverterTest.class.getCanonicalName() }));
+ one(facade).addMethodAnnotation("test.TestBean", "test", new String[0], Interceptors.class, createNameValuePair("value", new String[] { SessionBeanConverterTest.class.getCanonicalName() })); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
}});
EjbJar ejbJar = new EjbJar();
- EnterpriseBean bean = addStatefulBeanToEjbJar(ejbJar, "TestBean", "test.TestBean");
+ EnterpriseBean bean = addStatefulBeanToEjbJar(ejbJar, "TestBean", "test.TestBean"); //$NON-NLS-1$ //$NON-NLS-2$
Interceptor interceptor = new Interceptor(SessionBeanConverterTest.class);
ejbJar.addInterceptor(interceptor);
@@ -369,7 +365,7 @@
InterceptorBinding binding = new InterceptorBinding(bean, interceptor);
NamedMethod method = new NamedMethod();
- method.setMethodName("test");
+ method.setMethodName("test"); //$NON-NLS-1$
method.setMethodParams(new MethodParams());
binding.setMethod(method);
interceptorBindings.add(binding);
@@ -389,12 +385,12 @@
// expectations
context.checking(new Expectations(){{
- one(facade).addClassAnnotation("test.TestBean", Interceptors.class, createNameValuePair("value", new String[] { SessionBeanConverterTest.class.getCanonicalName() }));
- one(facade).addClassAnnotation("test.TestBean", ExcludeDefaultInterceptors.class, createNameValuePair("value", new String[] { SessionBeanConverterTest.class.getCanonicalName() }));
+ one(facade).addClassAnnotation("test.TestBean", Interceptors.class, createNameValuePair("value", new String[] { SessionBeanConverterTest.class.getCanonicalName() })); //$NON-NLS-1$ //$NON-NLS-2$
+ one(facade).addClassAnnotation("test.TestBean", ExcludeDefaultInterceptors.class, createNameValuePair("value", new String[] { SessionBeanConverterTest.class.getCanonicalName() })); //$NON-NLS-1$ //$NON-NLS-2$
}});
EjbJar ejbJar = new EjbJar();
- EnterpriseBean bean = addStatefulBeanToEjbJar(ejbJar, "TestBean", "test.TestBean");
+ EnterpriseBean bean = addStatefulBeanToEjbJar(ejbJar, "TestBean", "test.TestBean"); //$NON-NLS-1$ //$NON-NLS-2$
Interceptor interceptor = new Interceptor(SessionBeanConverterTest.class);
ejbJar.addInterceptor(interceptor);
@@ -419,12 +415,12 @@
// expectations
context.checking(new Expectations(){{
- one(facade).addMethodAnnotation("test.TestBean", "test", new String[0], ExcludeDefaultInterceptors.class, createNameValuePair("value", new String[] { SessionBeanConverterTest.class.getCanonicalName() }));
- one(facade).addMethodAnnotation("test.TestBean", "test", new String[0], Interceptors.class, createNameValuePair("value", new String[] { SessionBeanConverterTest.class.getCanonicalName() }));
+ one(facade).addMethodAnnotation("test.TestBean", "test", new String[0], ExcludeDefaultInterceptors.class, createNameValuePair("value", new String[] { SessionBeanConverterTest.class.getCanonicalName() })); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
+ one(facade).addMethodAnnotation("test.TestBean", "test", new String[0], Interceptors.class, createNameValuePair("value", new String[] { SessionBeanConverterTest.class.getCanonicalName() })); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
}});
EjbJar ejbJar = new EjbJar();
- EnterpriseBean bean = addStatefulBeanToEjbJar(ejbJar, "TestBean", "test.TestBean");
+ EnterpriseBean bean = addStatefulBeanToEjbJar(ejbJar, "TestBean", "test.TestBean"); //$NON-NLS-1$ //$NON-NLS-2$
Interceptor interceptor = new Interceptor(SessionBeanConverterTest.class);
ejbJar.addInterceptor(interceptor);
@@ -433,7 +429,7 @@
InterceptorBinding binding = new InterceptorBinding(bean, interceptor);
binding.setExcludeDefaultInterceptors(true);
NamedMethod method = new NamedMethod();
- method.setMethodName("test");
+ method.setMethodName("test"); //$NON-NLS-1$
method.setMethodParams(new MethodParams());
binding.setMethod(method);
interceptorBindings.add(binding);
@@ -453,12 +449,12 @@
// expectations
context.checking(new Expectations(){{
- one(facade).addClassAnnotation("test.TestBean", Interceptors.class, createNameValuePair("value", new String[] { SessionBeanConverterTest.class.getCanonicalName() }));
- one(facade).addClassAnnotation("test.TestBean", ExcludeClassInterceptors.class, createNameValuePair("value", new String[] { SessionBeanConverterTest.class.getCanonicalName() }));
+ one(facade).addClassAnnotation("test.TestBean", Interceptors.class, createNameValuePair("value", new String[] { SessionBeanConverterTest.class.getCanonicalName() })); //$NON-NLS-1$ //$NON-NLS-2$
+ one(facade).addClassAnnotation("test.TestBean", ExcludeClassInterceptors.class, createNameValuePair("value", new String[] { SessionBeanConverterTest.class.getCanonicalName() })); //$NON-NLS-1$ //$NON-NLS-2$
}});
EjbJar ejbJar = new EjbJar();
- EnterpriseBean bean = addStatefulBeanToEjbJar(ejbJar, "TestBean", "test.TestBean");
+ EnterpriseBean bean = addStatefulBeanToEjbJar(ejbJar, "TestBean", "test.TestBean"); //$NON-NLS-1$ //$NON-NLS-2$
Interceptor interceptor = new Interceptor(SessionBeanConverterTest.class);
ejbJar.addInterceptor(interceptor);
@@ -483,12 +479,12 @@
// expectations
context.checking(new Expectations(){{
- one(facade).addMethodAnnotation("test.TestBean", "test", new String[0], ExcludeClassInterceptors.class, createNameValuePair("value", new String[] { SessionBeanConverterTest.class.getCanonicalName() }));
- one(facade).addMethodAnnotation("test.TestBean", "test", new String[0], Interceptors.class, createNameValuePair("value", new String[] { SessionBeanConverterTest.class.getCanonicalName() }));
+ one(facade).addMethodAnnotation("test.TestBean", "test", new String[0], ExcludeClassInterceptors.class, createNameValuePair("value", new String[] { SessionBeanConverterTest.class.getCanonicalName() })); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
+ one(facade).addMethodAnnotation("test.TestBean", "test", new String[0], Interceptors.class, createNameValuePair("value", new String[] { SessionBeanConverterTest.class.getCanonicalName() })); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
}});
EjbJar ejbJar = new EjbJar();
- EnterpriseBean bean = addStatefulBeanToEjbJar(ejbJar, "TestBean", "test.TestBean");
+ EnterpriseBean bean = addStatefulBeanToEjbJar(ejbJar, "TestBean", "test.TestBean"); //$NON-NLS-1$ //$NON-NLS-2$
Interceptor interceptor = new Interceptor(SessionBeanConverterTest.class);
ejbJar.addInterceptor(interceptor);
@@ -497,7 +493,7 @@
InterceptorBinding binding = new InterceptorBinding(bean, interceptor);
binding.setExcludeClassInterceptors(true);
NamedMethod method = new NamedMethod();
- method.setMethodName("test");
+ method.setMethodName("test"); //$NON-NLS-1$
method.setMethodParams(new MethodParams());
binding.setMethod(method);
interceptorBindings.add(binding);
@@ -517,13 +513,13 @@
// expectations
context.checking(new Expectations(){{
- one(facade).addClassAnnotation("test.TestBean", Stateful.class, null);
+ one(facade).addClassAnnotation("test.TestBean", Stateful.class, null); //$NON-NLS-1$
}});
EjbJar ejbJar = new EjbJar();
- StatefulBean bean = (StatefulBean) addStatefulBeanToEjbJar(ejbJar, "TestBean", "test.TestBean");
- bean.setHome("test.TestHome");
- bean.setRemote("test.Test");
+ StatefulBean bean = (StatefulBean) addStatefulBeanToEjbJar(ejbJar, "TestBean", "test.TestBean"); //$NON-NLS-1$ //$NON-NLS-2$
+ bean.setHome("test.TestHome"); //$NON-NLS-1$
+ bean.setRemote("test.Test"); //$NON-NLS-1$
// execute
converter.processSessionBean((SessionBean) bean);
@@ -539,18 +535,18 @@
SessionBeanConverter converter = new SessionBeanConverter(facade);
final Map<String,Object> expectedMap = new HashMap<String, Object>();
- expectedMap.put("destination", "TestQueue");
- expectedMap.put("destinationType", "javax.jms.Queue");
+ expectedMap.put("destination", "TestQueue"); //$NON-NLS-1$ //$NON-NLS-2$
+ expectedMap.put("destinationType", "javax.jms.Queue"); //$NON-NLS-1$ //$NON-NLS-2$
// expectations
context.checking(new Expectations(){{
- one(facade).addClassAnnotation("test.MessageDrivenBean1", MessageDriven.class, createNameValuePair("name", "Test"));
+ one(facade).addClassAnnotation("test.MessageDrivenBean1", MessageDriven.class, createNameValuePair("name", "Test")); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
}});
EjbJar ejbJar = new EjbJar();
MessageDrivenBean bean = new MessageDrivenBean();
- bean.setEjbName("Test");
- bean.setEjbClass("test.MessageDrivenBean1");
+ bean.setEjbName("Test"); //$NON-NLS-1$
+ bean.setEjbClass("test.MessageDrivenBean1"); //$NON-NLS-1$
ejbJar.addEnterpriseBean(bean);
Modified: openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.helper.annotation/META-INF/MANIFEST.MF
URL: http://svn.apache.org/viewvc/openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.helper.annotation/META-INF/MANIFEST.MF?rev=640668&r1=640667&r2=640668&view=diff
==============================================================================
--- openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.helper.annotation/META-INF/MANIFEST.MF (original)
+++ openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.helper.annotation/META-INF/MANIFEST.MF Mon Mar 24 18:40:47 2008
@@ -1,6 +1,6 @@
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
-Bundle-Name: OpenEJB :: EJB 3.0 Migration Eclipse Plugin
+Bundle-Name: %pluginName
Bundle-SymbolicName: org.apache.openejb.helper.annotation;singleton:=true
Bundle-Version: 1.0.0
Bundle-Activator: org.apache.openejb.helper.annotation.Activator
@@ -17,7 +17,8 @@
org.eclipse.ltk.core.refactoring,
org.junit,
org.eclipse.jdt.ui,
- org.eclipse.search
+ org.eclipse.search,
+ org.eclipse.help
Eclipse-LazyStart: true
Bundle-ClassPath: .,
lib/jaxb-impl-2.0.3.jar,
@@ -40,3 +41,4 @@
lib/swizzle-stream-1.0.1.jar
Main-Class: org.apache.openejb.helper.annotation.cli.Main
Export-Package: org.apache.openejb.helper.annotation
+Bundle-Vendor: %providerName
Added: openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.helper.annotation/about.html
URL: http://svn.apache.org/viewvc/openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.helper.annotation/about.html?rev=640668&view=auto
==============================================================================
--- openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.helper.annotation/about.html (added)
+++ openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.helper.annotation/about.html Mon Mar 24 18:40:47 2008
@@ -0,0 +1,257 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
+<title>About</title>
+</head>
+<body lang="EN-US">
+<h1>About This Content</h1>
+
+<p>March 24, 2008</p>
+ <table border="0" width="100%" cellspacing="4">
+ <tr>
+ <!-- CONTENT -->
+ <td align="left" valign="top" class="content">
+ <h2>
+ Apache License, Version 2.0
+</h2>
+<div class="section-content">
+<p align="center">
+Apache License<br />
+Version 2.0, January 2004<br />
+<a href="http://www.apache.org/licenses/">http://www.apache.org/licenses/</a>
+</p>
+<p>
+TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+</p>
+<p><b><a name="definitions">1. Definitions</a></b>.</p>
+<p>
+ "License" shall mean the terms and conditions for use, reproduction,
+ and distribution as defined by Sections 1 through 9 of this document.
+</p>
+<p>
+ "Licensor" shall mean the copyright owner or entity authorized by
+ the copyright owner that is granting the License.
+</p>
+<p>
+ "Legal Entity" shall mean the union of the acting entity and all
+ other entities that control, are controlled by, or are under common
+ control with that entity. For the purposes of this definition,
+ "control" means (i) the power, direct or indirect, to cause the
+ direction or management of such entity, whether by contract or
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
+ outstanding shares, or (iii) beneficial ownership of such entity.
+</p>
+<p>
+ "You" (or "Your") shall mean an individual or Legal Entity
+ exercising permissions granted by this License.
+</p>
+<p>
+ "Source" form shall mean the preferred form for making modifications,
+ including but not limited to software source code, documentation
+ source, and configuration files.
+</p>
+<p>
+ "Object" form shall mean any form resulting from mechanical
+ transformation or translation of a Source form, including but
+ not limited to compiled object code, generated documentation,
+ and conversions to other media types.
+</p>
+<p>
+ "Work" shall mean the work of authorship, whether in Source or
+ Object form, made available under the License, as indicated by a
+ copyright notice that is included in or attached to the work
+ (an example is provided in the Appendix below).
+</p>
+<p>
+ "Derivative Works" shall mean any work, whether in Source or Object
+ form, that is based on (or derived from) the Work and for which the
+ editorial revisions, annotations, elaborations, or other modifications
+ represent, as a whole, an original work of authorship. For the purposes
+ of this License, Derivative Works shall not include works that remain
+ separable from, or merely link (or bind by name) to the interfaces of,
+ the Work and Derivative Works thereof.
+</p>
+<p>
+ "Contribution" shall mean any work of authorship, including
+ the original version of the Work and any modifications or additions
+ to that Work or Derivative Works thereof, that is intentionally
+ submitted to Licensor for inclusion in the Work by the copyright owner
+ or by an individual or Legal Entity authorized to submit on behalf of
+ the copyright owner. For the purposes of this definition, "submitted"
+ means any form of electronic, verbal, or written communication sent
+ to the Licensor or its representatives, including but not limited to
+ communication on electronic mailing lists, source code control systems,
+ and issue tracking systems that are managed by, or on behalf of, the
+ Licensor for the purpose of discussing and improving the Work, but
+ excluding communication that is conspicuously marked or otherwise
+ designated in writing by the copyright owner as "Not a Contribution."
+</p>
+<p>
+ "Contributor" shall mean Licensor and any individual or Legal Entity
+ on behalf of whom a Contribution has been received by Licensor and
+ subsequently incorporated within the Work.
+</p>
+<p><b><a name="copyright">2. Grant of Copyright License</a></b>.
+Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ copyright license to reproduce, prepare Derivative Works of,
+ publicly display, publicly perform, sublicense, and distribute the
+ Work and such Derivative Works in Source or Object form.
+</p>
+<p><b><a name="patent">3. Grant of Patent License</a></b>.
+Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ (except as stated in this section) patent license to make, have made,
+ use, offer to sell, sell, import, and otherwise transfer the Work,
+ where such license applies only to those patent claims licensable
+ by such Contributor that are necessarily infringed by their
+ Contribution(s) alone or by combination of their Contribution(s)
+ with the Work to which such Contribution(s) was submitted. If You
+ institute patent litigation against any entity (including a
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
+ or a Contribution incorporated within the Work constitutes direct
+ or contributory patent infringement, then any patent licenses
+ granted to You under this License for that Work shall terminate
+ as of the date such litigation is filed.
+</p>
+<p><b><a name="redistribution">4. Redistribution</a></b>.
+You may reproduce and distribute copies of the
+ Work or Derivative Works thereof in any medium, with or without
+ modifications, and in Source or Object form, provided that You
+ meet the following conditions:
+<ol type="a">
+<li>You must give any other recipients of the Work or
+ Derivative Works a copy of this License; and
+<br /> <br /></li>
+
+<li>You must cause any modified files to carry prominent notices
+ stating that You changed the files; and
+<br /> <br /></li>
+
+<li>You must retain, in the Source form of any Derivative Works
+ that You distribute, all copyright, patent, trademark, and
+ attribution notices from the Source form of the Work,
+ excluding those notices that do not pertain to any part of
+ the Derivative Works; and
+<br /> <br /></li>
+
+<li>If the Work includes a "NOTICE" text file as part of its
+ distribution, then any Derivative Works that You distribute must
+ include a readable copy of the attribution notices contained
+ within such NOTICE file, excluding those notices that do not
+ pertain to any part of the Derivative Works, in at least one
+ of the following places: within a NOTICE text file distributed
+ as part of the Derivative Works; within the Source form or
+ documentation, if provided along with the Derivative Works; or,
+ within a display generated by the Derivative Works, if and
+ wherever such third-party notices normally appear. The contents
+ of the NOTICE file are for informational purposes only and
+ do not modify the License. You may add Your own attribution
+ notices within Derivative Works that You distribute, alongside
+ or as an addendum to the NOTICE text from the Work, provided
+ that such additional attribution notices cannot be construed
+ as modifying the License.</li>
+</ol>
+ You may add Your own copyright statement to Your modifications and
+ may provide additional or different license terms and conditions
+ for use, reproduction, or distribution of Your modifications, or
+ for any such Derivative Works as a whole, provided Your use,
+ reproduction, and distribution of the Work otherwise complies with
+ the conditions stated in this License.
+</p>
+<p><b><a name="contributions">5. Submission of Contributions</a></b>.
+Unless You explicitly state otherwise,
+ any Contribution intentionally submitted for inclusion in the Work
+ by You to the Licensor shall be under the terms and conditions of
+ this License, without any additional terms or conditions.
+ Notwithstanding the above, nothing herein shall supersede or modify
+ the terms of any separate license agreement you may have executed
+ with Licensor regarding such Contributions.
+</p>
+<p><b><a name="trademarks">6. Trademarks</a></b>.
+This License does not grant permission to use the trade
+ names, trademarks, service marks, or product names of the Licensor,
+ except as required for reasonable and customary use in describing the
+ origin of the Work and reproducing the content of the NOTICE file.
+</p>
+<p><b><a name="no-warranty">7. Disclaimer of Warranty</a></b>.
+Unless required by applicable law or
+ agreed to in writing, Licensor provides the Work (and each
+ Contributor provides its Contributions) on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ implied, including, without limitation, any warranties or conditions
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+ PARTICULAR PURPOSE. You are solely responsible for determining the
+ appropriateness of using or redistributing the Work and assume any
+ risks associated with Your exercise of permissions under this License.
+</p>
+<p><b><a name="no-liability">8. Limitation of Liability</a></b>.
+In no event and under no legal theory,
+ whether in tort (including negligence), contract, or otherwise,
+ unless required by applicable law (such as deliberate and grossly
+ negligent acts) or agreed to in writing, shall any Contributor be
+ liable to You for damages, including any direct, indirect, special,
+ incidental, or consequential damages of any character arising as a
+ result of this License or out of the use or inability to use the
+ Work (including but not limited to damages for loss of goodwill,
+ work stoppage, computer failure or malfunction, or any and all
+ other commercial damages or losses), even if such Contributor
+ has been advised of the possibility of such damages.
+</p>
+<p><b><a name="additional">9. Accepting Warranty or Additional Liability</a></b>.
+While redistributing
+ the Work or Derivative Works thereof, You may choose to offer,
+ and charge a fee for, acceptance of support, warranty, indemnity,
+ or other liability obligations and/or rights consistent with this
+ License. However, in accepting such obligations, You may act only
+ on Your own behalf and on Your sole responsibility, not on behalf
+ of any other Contributor, and only if You agree to indemnify,
+ defend, and hold each Contributor harmless for any liability
+ incurred by, or claims asserted against, such Contributor by reason
+ of your accepting any such warranty or additional liability.
+</p>
+<p>
+END OF TERMS AND CONDITIONS
+</p>
+</div>
+ <h2>
+ <a name="apply">APPENDIX: How to apply the Apache License to your work</a>
+</h2>
+<div class="section-content">
+<p>
+ To apply the Apache License to your work, attach the following
+ boilerplate notice, with the fields enclosed by brackets "[]"
+ replaced with your own identifying information. (Don't include
+ the brackets!) The text should be enclosed in the appropriate
+ comment syntax for the file format. We also recommend that a
+ file or class name and description of purpose be included on the
+ same "printed page" as the copyright notice for easier
+ identification within third-party archives.
+</p>
+<div class="source"><code>
+ Copyright [yyyy] [name of copyright owner]
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+</code>
+</div>
+</div>
+ </td>
+ </tr>
+ </table>
+
+</body>
+</html>
\ No newline at end of file
Added: openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.helper.annotation/build.properties
URL: http://svn.apache.org/viewvc/openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.helper.annotation/build.properties?rev=640668&view=auto
==============================================================================
--- openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.helper.annotation/build.properties (added)
+++ openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.helper.annotation/build.properties Mon Mar 24 18:40:47 2008
@@ -0,0 +1,10 @@
+bin.includes = LICENSE,\
+ NOTICE,\
+ about.html,\
+ plugin.properties,\
+ plugin.xml,\
+ plugin_de.properties,\
+ target/classes/META-INF/,\
+ target/classes/lib/,\
+ target/classes/org/,\
+ lib/
Modified: openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.helper.annotation/maven-eclipse.xml
URL: http://svn.apache.org/viewvc/openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.helper.annotation/maven-eclipse.xml?rev=640668&r1=640667&r2=640668&view=diff
==============================================================================
--- openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.helper.annotation/maven-eclipse.xml (original)
+++ openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.helper.annotation/maven-eclipse.xml Mon Mar 24 18:40:47 2008
@@ -0,0 +1,11 @@
+<project default="copy-resources">
+ <target name="init"/>
+ <target name="copy-resources" depends="init">
+ <copy todir="target/classes/META-INF" filtering="false">
+ <fileset dir="META-INF" includes="MANIFEST.MF"/>
+ </copy>
+ <copy todir="target/classes/lib" filtering="false">
+ <fileset dir="lib" includes="*.jar"/>
+ </copy>
+ </target>
+</project>
\ No newline at end of file
Added: openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.helper.annotation/plugin.properties
URL: http://svn.apache.org/viewvc/openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.helper.annotation/plugin.properties?rev=640668&view=auto
==============================================================================
--- openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.helper.annotation/plugin.properties (added)
+++ openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.helper.annotation/plugin.properties Mon Mar 24 18:40:47 2008
@@ -0,0 +1,34 @@
+#######################################################################
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+# $Rev: 577442 $ $Date: 2007-09-19 21:43:00 +0100 (Wed, 19 Sep 2007) $
+#
+#######################################################################
+#
+# plugin.properties
+# contains externalized strings for feature.xml
+# "%foo" in feature.xml corresponds to the key "foo" in this file
+# java.io.Properties file (ISO 8859-1 with "\" escapes)
+# This file should be translated.
+#
+#######################################################################
+
+# "pluginName" property - name of the plugin
+pluginName = Apache OpenEJB EJB 3.0 Migration Eclipse Plugin
+
+# "providerName" property - name of the company that provides the feature
+providerName = Apache OpenEJB Project
\ No newline at end of file
Modified: openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.helper.annotation/plugin.xml
URL: http://svn.apache.org/viewvc/openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.helper.annotation/plugin.xml?rev=640668&r1=640667&r2=640668&view=diff
==============================================================================
--- openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.helper.annotation/plugin.xml (original)
+++ openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.helper.annotation/plugin.xml Mon Mar 24 18:40:47 2008
@@ -1,5 +1,21 @@
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.2"?>
+<!--
+ ~ Licensed to the Apache Software Foundation (ASF) under one or more
+ ~ contributor license agreements. See the NOTICE file distributed with
+ ~ this work for additional information regarding copyright ownership.
+ ~ The ASF licenses this file to You under the Apache License, Version 2.0
+ ~ (the "License"); you may not use this file except in compliance with
+ ~ the License. You may obtain a copy of the License at
+ ~
+ ~ http://www.apache.org/licenses/LICENSE-2.0
+ ~
+ ~ Unless required by applicable law or agreed to in writing, software
+ ~ distributed under the License is distributed on an "AS IS" BASIS,
+ ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ ~ See the License for the specific language governing permissions and
+ ~ limitations under the License.
+ -->
<plugin>
<extension
Added: openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.helper.annotation/plugin_de.properties
URL: http://svn.apache.org/viewvc/openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.helper.annotation/plugin_de.properties?rev=640668&view=auto
==============================================================================
--- openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.helper.annotation/plugin_de.properties (added)
+++ openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.helper.annotation/plugin_de.properties Mon Mar 24 18:40:47 2008
@@ -0,0 +1,34 @@
+#######################################################################
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+# $Rev: 577442 $ $Date: 2007-09-19 21:43:00 +0100 (Wed, 19 Sep 2007) $
+#
+#######################################################################
+#
+# plugin.properties
+# contains externalized strings for feature.xml
+# "%foo" in feature.xml corresponds to the key "foo" in this file
+# java.io.Properties file (ISO 8859-1 with "\" escapes)
+# This file should be translated.
+#
+#######################################################################
+
+# "pluginName" property - name of the plugin
+pluginName = Apache OpenEJB EJB 3.0 Migrations-Plugin f\u00fcr Eclipse
+
+# "providerName" property - name of the company that provides the feature
+providerName = Apache OpenEJB Projekt
Modified: openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.helper.annotation/pom.xml
URL: http://svn.apache.org/viewvc/openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.helper.annotation/pom.xml?rev=640668&r1=640667&r2=640668&view=diff
==============================================================================
--- openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.helper.annotation/pom.xml (original)
+++ openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.helper.annotation/pom.xml Mon Mar 24 18:40:47 2008
@@ -1,4 +1,21 @@
-<?xml version="1.0" encoding="UTF-8"?><project>
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ ~ Licensed to the Apache Software Foundation (ASF) under one or more
+ ~ contributor license agreements. See the NOTICE file distributed with
+ ~ this work for additional information regarding copyright ownership.
+ ~ The ASF licenses this file to You under the Apache License, Version 2.0
+ ~ (the "License"); you may not use this file except in compliance with
+ ~ the License. You may obtain a copy of the License at
+ ~
+ ~ http://www.apache.org/licenses/LICENSE-2.0
+ ~
+ ~ Unless required by applicable law or agreed to in writing, software
+ ~ distributed under the License is distributed on an "AS IS" BASIS,
+ ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ ~ See the License for the specific language governing permissions and
+ ~ limitations under the License.
+ -->
+<project>
<parent>
<artifactId>eclipse-plugins-parent</artifactId>
<groupId>org.apache.openejb</groupId>
@@ -15,6 +32,9 @@
<directory>.</directory>
<includes>
<include>plugin.xml</include>
+ <include>about.html</include>
+ <include>plugin.properties</include>
+ <include>plugin_*.properties</include>
</includes>
</resource>
<resource>
Modified: openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.helper.annotation/src/main/java/org/apache/openejb/helper/annotation/Activator.java
URL: http://svn.apache.org/viewvc/openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.helper.annotation/src/main/java/org/apache/openejb/helper/annotation/Activator.java?rev=640668&r1=640667&r2=640668&view=diff
==============================================================================
--- openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.helper.annotation/src/main/java/org/apache/openejb/helper/annotation/Activator.java (original)
+++ openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.helper.annotation/src/main/java/org/apache/openejb/helper/annotation/Activator.java Mon Mar 24 18:40:47 2008
@@ -18,7 +18,6 @@
package org.apache.openejb.helper.annotation;
import org.eclipse.jface.resource.ImageDescriptor;
-import org.eclipse.jface.window.Window;
import org.eclipse.ui.IWorkbenchWindow;
import org.eclipse.ui.plugin.AbstractUIPlugin;
import org.osgi.framework.BundleContext;
@@ -29,7 +28,7 @@
public class Activator extends AbstractUIPlugin {
// The plug-in ID
- public static final String PLUGIN_ID = "org.apache.openejb.helper.annotation";
+ public static final String PLUGIN_ID = "org.apache.openejb.helper.annotation"; //$NON-NLS-1$
// The shared instance
private static Activator plugin;
Modified: openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.helper.annotation/src/main/java/org/apache/openejb/helper/annotation/ConversionException.java
URL: http://svn.apache.org/viewvc/openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.helper.annotation/src/main/java/org/apache/openejb/helper/annotation/ConversionException.java?rev=640668&r1=640667&r2=640668&view=diff
==============================================================================
--- openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.helper.annotation/src/main/java/org/apache/openejb/helper/annotation/ConversionException.java (original)
+++ openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/org.apache.openejb.helper.annotation/src/main/java/org/apache/openejb/helper/annotation/ConversionException.java Mon Mar 24 18:40:47 2008
@@ -22,6 +22,11 @@
*/
public class ConversionException extends Exception {
+ /**
+ *
+ */
+ private static final long serialVersionUID = -4968483527572451177L;
+
public ConversionException() {
}