JBoss Tools SVN: r32516 - workspace/snjeza/jbossas7-examples.
by jbosstools-commits@lists.jboss.org
Author: snjeza
Date: 2011-06-30 19:14:48 -0400 (Thu, 30 Jun 2011)
New Revision: 32516
Added:
workspace/snjeza/jbossas7-examples/helloworld-osgi.zip
workspace/snjeza/jbossas7-examples/helloworld.zip
workspace/snjeza/jbossas7-examples/kitchensink.zip
workspace/snjeza/jbossas7-examples/login.zip
workspace/snjeza/jbossas7-examples/numberguess.zip
Log:
JBIDE-9285 Create quickstart project examples for JBoss AS 7
Added: workspace/snjeza/jbossas7-examples/helloworld-osgi.zip
===================================================================
(Binary files differ)
Property changes on: workspace/snjeza/jbossas7-examples/helloworld-osgi.zip
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: workspace/snjeza/jbossas7-examples/helloworld.zip
===================================================================
(Binary files differ)
Property changes on: workspace/snjeza/jbossas7-examples/helloworld.zip
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: workspace/snjeza/jbossas7-examples/kitchensink.zip
===================================================================
(Binary files differ)
Property changes on: workspace/snjeza/jbossas7-examples/kitchensink.zip
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: workspace/snjeza/jbossas7-examples/login.zip
===================================================================
(Binary files differ)
Property changes on: workspace/snjeza/jbossas7-examples/login.zip
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: workspace/snjeza/jbossas7-examples/numberguess.zip
===================================================================
(Binary files differ)
Property changes on: workspace/snjeza/jbossas7-examples/numberguess.zip
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
13 years, 3 months
JBoss Tools SVN: r32515 - trunk/download.jboss.org/jbosstools/examples.
by jbosstools-commits@lists.jboss.org
Author: snjeza
Date: 2011-06-30 19:14:29 -0400 (Thu, 30 Jun 2011)
New Revision: 32515
Modified:
trunk/download.jboss.org/jbosstools/examples/project-examples-maven-3.3.xml
Log:
JBIDE-9285 Create quickstart project examples for JBoss AS 7
Modified: trunk/download.jboss.org/jbosstools/examples/project-examples-maven-3.3.xml
===================================================================
--- trunk/download.jboss.org/jbosstools/examples/project-examples-maven-3.3.xml 2011-06-30 23:11:18 UTC (rev 32514)
+++ trunk/download.jboss.org/jbosstools/examples/project-examples-maven-3.3.xml 2011-06-30 23:14:29 UTC (rev 32515)
@@ -36,4 +36,151 @@
</mavenArchetype>
</project>
-</projects>
\ No newline at end of file
+ <project>
+ <category>JBoss AS 7 Quickstarts</category>
+ <name>helloworld</name>
+ <included-projects>jboss-as-helloworld</included-projects>
+ <shortDescription>Helloworld Example</shortDescription>
+ <description>
+This example demonstrates the use of CDI 1.0 and Servlet 3 in JBoss AS 7.
+The example can be deployed using Maven from the command line or from Eclipse using JBoss Tools.
+ </description>
+ <size>8192</size>
+ <url>http://anonsvn.jboss.org/repos/jbosstools/workspace/snjeza/jbossas7-examp...</url>
+ <fixes>
+ <fix type="wtpruntime">
+ <property name="allowed-types">org.jboss.ide.eclipse.as.runtime.70</property>
+ <property name="description">This project example requires JBoss AS 7.0</property>
+ </fix>
+ </fixes>
+ <importType>maven</importType>
+ <importTypeDescription>The project example requires the m2eclipse, m2eclipse-wtp and JBoss Maven Project Examples feature.</importTypeDescription>
+ </project>
+
+ <project>
+ <category>JBoss AS 7 Quickstarts</category>
+ <name>helloworld-osgi</name>
+ <included-projects>jboss-as-helloworld-osgi</included-projects>
+ <shortDescription>Helloworld OSGi Example</shortDescription>
+ <description>
+This example demonstrates the use of OSGi in JBoss AS 7.
+The example can be deployed using Maven from the command line, by using the AS 7 web console or by dropping the OSGi bundle in the deployments folder.
+
+To deploy to JBoss AS 7 using JBoss Tools, start JBoss AS 7, right-click the project, select Run As>Maven build..., enter "package jboss-as:deploy" in the Goals field and click the Run button.
+This will build, deploy and start the OSGi bundle.
+You will see a Hello AS7 World!! message appear on the console when this is done.
+ </description>
+ <size>8192</size>
+ <url>http://anonsvn.jboss.org/repos/jbosstools/workspace/snjeza/jbossas7-examp...</url>
+ <fixes>
+ <fix type="wtpruntime">
+ <property name="allowed-types">org.jboss.ide.eclipse.as.runtime.70</property>
+ <property name="description">This project example requires JBoss AS 7.0</property>
+ </fix>
+ </fixes>
+ <importType>maven</importType>
+ <importTypeDescription>The project example requires the m2eclipse, m2eclipse-wtp and JBoss Maven Project Examples feature.</importTypeDescription>
+ </project>
+
+
+ <project>
+ <category>JBoss AS 7 Quickstarts</category>
+ <name>login</name>
+ <included-projects>jboss-as-login</included-projects>
+ <shortDescription>Login Example</shortDescription>
+ <description>
+This example demonstrates the use of CDI 1.0, JPA 2.0, JTA 1.1, EJB 3.1 and JSF 2.0 in JBoss AS 7.
+The example can be deployed using Maven from the command line or from Eclipse using JBoss Tools.
+ </description>
+<size>8192</size>
+ <url>http://anonsvn.jboss.org/repos/jbosstools/workspace/snjeza/jbossas7-examp...</url>
+ <fixes>
+ <fix type="wtpruntime">
+ <property name="allowed-types">org.jboss.ide.eclipse.as.runtime.70</property>
+ <property name="description">This project example requires JBoss AS 7.0</property>
+ </fix>
+ </fixes>
+ <importType>maven</importType>
+ <importTypeDescription>The project example requires the m2eclipse, m2eclipse-wtp and JBoss Maven Project Examples feature.</importTypeDescription>
+ </project>
+
+ <project>
+ <category>JBoss AS 7 Quickstarts</category>
+ <name>numberguess</name>
+ <included-projects>jboss-as-numberguess</included-projects>
+ <shortDescription>Numberguess Example</shortDescription>
+ <description>
+This example demonstrates the use of CDI 1.0 and JSF 2.0 in JBoss AS 7.
+The example can be deployed using Maven from the command line or from Eclipse using JBoss Tools.
+ </description>
+<size>8192</size>
+ <url>http://anonsvn.jboss.org/repos/jbosstools/workspace/snjeza/jbossas7-examp...</url>
+ <fixes>
+ <fix type="wtpruntime">
+ <property name="allowed-types">org.jboss.ide.eclipse.as.runtime.70</property>
+ <property name="description">This project example requires JBoss AS 7.0</property>
+ </fix>
+ </fixes>
+ <importType>maven</importType>
+ <importTypeDescription>The project example requires the m2eclipse, m2eclipse-wtp and JBoss Maven Project Examples feature.</importTypeDescription>
+ </project>
+
+ <project>
+ <category>JBoss AS 7 Quickstarts</category>
+ <name>kitchensink</name>
+ <included-projects>jboss-as-kitchensink</included-projects>
+ <shortDescription>Kitchensink Example</shortDescription>
+ <description>
+This is your project! It's a sample, deployable Maven 3 project to help you get your foot in the door developing with Java EE 6 on JBoss AS 7.
+This project is setup to allow you to create a compliant Java EE 6 application using JSF 2.0, CDI 1.0, EJB 3.1, JPA 2.0 and Bean Validation 1.0.
+It includes a persistence unit and some sample persistence and transaction code to help you get your feet wet with database access in enterprise Java.
+ </description>
+<size>8192</size>
+ <url>http://anonsvn.jboss.org/repos/jbosstools/workspace/snjeza/jbossas7-examp...</url>
+ <fixes>
+ <fix type="wtpruntime">
+ <property name="allowed-types">org.jboss.ide.eclipse.as.runtime.70</property>
+ <property name="description">This project example requires JBoss AS 7.0</property>
+ </fix>
+ </fixes>
+ <importType>maven</importType>
+ <importTypeDescription>The project example requires the m2eclipse, m2eclipse-wtp and JBoss Maven Project Examples feature.</importTypeDescription>
+ </project>
+
+ <project>
+ <category>JBoss AS 7 Quickstarts</category>
+ <name>jboss-javaee6-webapp</name>
+ <included-projects>jboss-javaee6-webapp</included-projects>
+ <shortDescription>Java EE 6 example (Maven archetype)</shortDescription>
+ <description>
+This is your project! It's a sample, deployable Maven 3 project to help you get your foot in the door developing with Java EE 6 on JBoss AS 7.
+This project is setup to allow you to create a compliant Java EE 6 application using JSF 2.0, CDI 1.0, EJB 3.1, JPA 2.0 and Bean Validation 1.0.
+It includes a persistence unit and some sample persistence and transaction code to help you get your feet wet with database access in enterprise Java.
+ </description>
+ <size>8192</size>
+ <url/>
+ <fixes>
+ <fix type="wtpruntime">
+ <property name="allowed-types">org.jboss.ide.eclipse.as.runtime.70</property>
+ <property name="description">This project example requires JBoss AS 7.0</property>
+ </fix>
+ </fixes>
+ <importType>mavenArchetype</importType>
+ <importTypeDescription>The project example requires the m2eclipse-core, m2eclipse-wtp and JBoss Maven Project Examples feature.</importTypeDescription>
+ <mavenArchetype>
+ <archetypeGroupId>org.jboss.spec.archetypes</archetypeGroupId>
+ <archetypeArtifactId>jboss-javaee6-webapp</archetypeArtifactId>
+ <archetypeVersion>7.0.0.CR1</archetypeVersion>
+ <archetypeRepository>http://repository.jboss.org/nexus/content/groups/public/</archetypeRepository>
+ <groupId>org.jboss.tools.examples</groupId>
+ <artifactId>jboss-javaee6-webapp</artifactId>
+ <version>0.0.1-SNAPSHOT</version>
+ <javaPackage>org.jboss.tools.examples</javaPackage>
+ <properties>
+ <property name="name" value="Java EE 6 webapp project"/>
+ </properties>
+ </mavenArchetype>
+ </project>
+
+
+</projects>
13 years, 3 months
JBoss Tools SVN: r32514 - workspace/snjeza.
by jbosstools-commits@lists.jboss.org
Author: snjeza
Date: 2011-06-30 19:11:18 -0400 (Thu, 30 Jun 2011)
New Revision: 32514
Added:
workspace/snjeza/jbossas7-examples/
Log:
Initial import.
13 years, 3 months
JBoss Tools SVN: r32513 - in branches/jbosstools-3.3.0.M2/jsf/tests/org.jboss.tools.jsf.test: projects/SimpleJava and 4 other directories.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2011-06-30 19:07:41 -0400 (Thu, 30 Jun 2011)
New Revision: 32513
Added:
branches/jbosstools-3.3.0.M2/jsf/tests/org.jboss.tools.jsf.test/projects/SimpleJava/
branches/jbosstools-3.3.0.M2/jsf/tests/org.jboss.tools.jsf.test/projects/SimpleJava/.classpath
branches/jbosstools-3.3.0.M2/jsf/tests/org.jboss.tools.jsf.test/projects/SimpleJava/.project
branches/jbosstools-3.3.0.M2/jsf/tests/org.jboss.tools.jsf.test/projects/SimpleJava/.settings/
branches/jbosstools-3.3.0.M2/jsf/tests/org.jboss.tools.jsf.test/projects/SimpleJava/.settings/org.eclipse.jdt.core.prefs
branches/jbosstools-3.3.0.M2/jsf/tests/org.jboss.tools.jsf.test/projects/SimpleJava/.settings/org.eclipse.wst.common.project.facet.core.xml
branches/jbosstools-3.3.0.M2/jsf/tests/org.jboss.tools.jsf.test/projects/SimpleJava/build/
branches/jbosstools-3.3.0.M2/jsf/tests/org.jboss.tools.jsf.test/projects/SimpleJava/build/classes/
branches/jbosstools-3.3.0.M2/jsf/tests/org.jboss.tools.jsf.test/projects/SimpleJava/src/
branches/jbosstools-3.3.0.M2/jsf/tests/org.jboss.tools.jsf.test/src/org/jboss/tools/jsf/test/project/facet/WebFragmentFacetOnExistingProjectTest.java
Modified:
branches/jbosstools-3.3.0.M2/jsf/tests/org.jboss.tools.jsf.test/src/org/jboss/tools/jsf/test/JsfAllTests.java
Log:
JBIDE-9280
https://issues.jboss.org/browse/JBIDE-9280
Added: branches/jbosstools-3.3.0.M2/jsf/tests/org.jboss.tools.jsf.test/projects/SimpleJava/.classpath
===================================================================
--- branches/jbosstools-3.3.0.M2/jsf/tests/org.jboss.tools.jsf.test/projects/SimpleJava/.classpath (rev 0)
+++ branches/jbosstools-3.3.0.M2/jsf/tests/org.jboss.tools.jsf.test/projects/SimpleJava/.classpath 2011-06-30 23:07:41 UTC (rev 32513)
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6">
+ <attributes>
+ <attribute name="owner.project.facets" value="java"/>
+ </attributes>
+ </classpathentry>
+ <classpathentry kind="output" path="build/classes"/>
+</classpath>
Property changes on: branches/jbosstools-3.3.0.M2/jsf/tests/org.jboss.tools.jsf.test/projects/SimpleJava/.classpath
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added: branches/jbosstools-3.3.0.M2/jsf/tests/org.jboss.tools.jsf.test/projects/SimpleJava/.project
===================================================================
--- branches/jbosstools-3.3.0.M2/jsf/tests/org.jboss.tools.jsf.test/projects/SimpleJava/.project (rev 0)
+++ branches/jbosstools-3.3.0.M2/jsf/tests/org.jboss.tools.jsf.test/projects/SimpleJava/.project 2011-06-30 23:07:41 UTC (rev 32513)
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>SimpleJava</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.wst.common.project.facet.core.builder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.wst.common.project.facet.core.nature</nature>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ </natures>
+</projectDescription>
Property changes on: branches/jbosstools-3.3.0.M2/jsf/tests/org.jboss.tools.jsf.test/projects/SimpleJava/.project
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added: branches/jbosstools-3.3.0.M2/jsf/tests/org.jboss.tools.jsf.test/projects/SimpleJava/.settings/org.eclipse.jdt.core.prefs
===================================================================
--- branches/jbosstools-3.3.0.M2/jsf/tests/org.jboss.tools.jsf.test/projects/SimpleJava/.settings/org.eclipse.jdt.core.prefs (rev 0)
+++ branches/jbosstools-3.3.0.M2/jsf/tests/org.jboss.tools.jsf.test/projects/SimpleJava/.settings/org.eclipse.jdt.core.prefs 2011-06-30 23:07:41 UTC (rev 32513)
@@ -0,0 +1,8 @@
+#Thu Jun 30 15:14:46 PDT 2011
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
+org.eclipse.jdt.core.compiler.compliance=1.6
+org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
+org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
+org.eclipse.jdt.core.compiler.source=1.6
Property changes on: branches/jbosstools-3.3.0.M2/jsf/tests/org.jboss.tools.jsf.test/projects/SimpleJava/.settings/org.eclipse.jdt.core.prefs
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added: branches/jbosstools-3.3.0.M2/jsf/tests/org.jboss.tools.jsf.test/projects/SimpleJava/.settings/org.eclipse.wst.common.project.facet.core.xml
===================================================================
--- branches/jbosstools-3.3.0.M2/jsf/tests/org.jboss.tools.jsf.test/projects/SimpleJava/.settings/org.eclipse.wst.common.project.facet.core.xml (rev 0)
+++ branches/jbosstools-3.3.0.M2/jsf/tests/org.jboss.tools.jsf.test/projects/SimpleJava/.settings/org.eclipse.wst.common.project.facet.core.xml 2011-06-30 23:07:41 UTC (rev 32513)
@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<faceted-project>
+ <installed facet="java" version="1.6"/>
+</faceted-project>
Property changes on: branches/jbosstools-3.3.0.M2/jsf/tests/org.jboss.tools.jsf.test/projects/SimpleJava/.settings/org.eclipse.wst.common.project.facet.core.xml
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Modified: branches/jbosstools-3.3.0.M2/jsf/tests/org.jboss.tools.jsf.test/src/org/jboss/tools/jsf/test/JsfAllTests.java
===================================================================
--- branches/jbosstools-3.3.0.M2/jsf/tests/org.jboss.tools.jsf.test/src/org/jboss/tools/jsf/test/JsfAllTests.java 2011-06-30 23:03:29 UTC (rev 32512)
+++ branches/jbosstools-3.3.0.M2/jsf/tests/org.jboss.tools.jsf.test/src/org/jboss/tools/jsf/test/JsfAllTests.java 2011-06-30 23:07:41 UTC (rev 32513)
@@ -26,6 +26,7 @@
import org.jboss.tools.jsf.model.pv.test.JSFPromptingProviderTest;
import org.jboss.tools.jsf.model.pv.test.JsfJbide7975Test;
import org.jboss.tools.jsf.test.project.facet.JSFFacetOnExistingProjectTest;
+import org.jboss.tools.jsf.test.project.facet.WebFragmentFacetOnExistingProjectTest;
import org.jboss.tools.jsf.test.refactoring.ELVariableRefactoringTest;
import org.jboss.tools.jsf.test.refactoring.JSF2RefactoringTest;
import org.jboss.tools.jsf.test.refactoring.MessagePropertyRefactoringTest;
@@ -44,6 +45,7 @@
TestSuite suite = new TestSuite("Test model loading for JSF projects"); //$NON-NLS-1$
suite.addTestSuite(JSFTemplateTest.class);
suite.addTestSuite(JSFFacetOnExistingProjectTest.class);
+ suite.addTestSuite(WebFragmentFacetOnExistingProjectTest.class);
TestSuite old = new TestSuite("Tests are using JSFKickStartOldFormat"); //$NON-NLS-1$
old.addTestSuite(JSFModelTest.class);
old.addTestSuite(ModelFormat_2_0_0_Test.class);
Added: branches/jbosstools-3.3.0.M2/jsf/tests/org.jboss.tools.jsf.test/src/org/jboss/tools/jsf/test/project/facet/WebFragmentFacetOnExistingProjectTest.java
===================================================================
--- branches/jbosstools-3.3.0.M2/jsf/tests/org.jboss.tools.jsf.test/src/org/jboss/tools/jsf/test/project/facet/WebFragmentFacetOnExistingProjectTest.java (rev 0)
+++ branches/jbosstools-3.3.0.M2/jsf/tests/org.jboss.tools.jsf.test/src/org/jboss/tools/jsf/test/project/facet/WebFragmentFacetOnExistingProjectTest.java 2011-06-30 23:07:41 UTC (rev 32513)
@@ -0,0 +1,77 @@
+/*******************************************************************************
+ * Copyright (c) 2011 Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is made available under the terms of the
+ * Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.jsf.test.project.facet;
+
+import junit.framework.TestCase;
+
+import org.eclipse.core.resources.ICommand;
+import org.eclipse.core.resources.IProject;
+import org.eclipse.core.runtime.CoreException;
+import org.eclipse.jst.jsf.core.internal.project.facet.JSFFacetInstallDataModelProvider;
+import org.eclipse.wst.common.frameworks.datamodel.DataModelFactory;
+import org.eclipse.wst.common.frameworks.datamodel.IDataModel;
+import org.eclipse.wst.common.project.facet.core.IFacetedProject;
+import org.eclipse.wst.common.project.facet.core.IProjectFacet;
+import org.eclipse.wst.common.project.facet.core.IProjectFacetVersion;
+import org.eclipse.wst.common.project.facet.core.ProjectFacetsManager;
+import org.eclipse.wst.validation.internal.plugin.ValidationPlugin;
+import org.jboss.tools.jst.web.kb.internal.KbBuilder;
+import org.jboss.tools.test.util.JobUtils;
+import org.jboss.tools.test.util.ResourcesUtils;
+
+/**
+ * @author Alexey Kazakov and Viacheslav Kabanovich
+ */
+public class WebFragmentFacetOnExistingProjectTest extends TestCase {
+
+ IProject project;
+
+ @Override
+ protected void setUp() throws Exception {
+ project = ResourcesUtils.importProject("org.jboss.tools.jsf.test", "projects/SimpleJava");
+ JobUtils.waitForIdle();
+
+ IFacetedProject fproj = ProjectFacetsManager.create(project);
+
+ IProjectFacet jsfFacet = ProjectFacetsManager.getProjectFacet("jst.webfragment");
+ IProjectFacetVersion jsfFacetVersion = jsfFacet.getDefaultVersion();
+
+ fproj.installProjectFacet(jsfFacetVersion, createJSFDataModel(), null);
+ JobUtils.waitForIdle();
+ }
+
+ public void testProjectBuilders() throws CoreException {
+ ICommand[] cs = project.getDescription().getBuildSpec();
+ int validation = -1;
+ int kb = -1;
+ for (int i = 0; i < cs.length; i++) {
+ ICommand c = cs[i];
+ if(ValidationPlugin.VALIDATION_BUILDER_ID.equals(c.getBuilderName())) {
+ validation = i;
+ } else if(KbBuilder.BUILDER_ID.equals(c.getBuilderName())) {
+ kb = i;
+ }
+ }
+ assertTrue(kb >= 0);
+ assertTrue(validation > kb);
+ }
+
+ @Override
+ protected void tearDown() throws Exception {
+ ResourcesUtils.deleteProject(project.getName());
+ JobUtils.waitForIdle();
+ }
+
+ protected IDataModel createJSFDataModel() {
+ IDataModel config = DataModelFactory.createDataModel(new JSFFacetInstallDataModelProvider());
+ return config;
+ }
+}
\ No newline at end of file
Property changes on: branches/jbosstools-3.3.0.M2/jsf/tests/org.jboss.tools.jsf.test/src/org/jboss/tools/jsf/test/project/facet/WebFragmentFacetOnExistingProjectTest.java
___________________________________________________________________
Added: svn:mime-type
+ text/plain
13 years, 3 months
JBoss Tools SVN: r32512 - in trunk/jsf/plugins/org.jboss.tools.jsf: src/org/jboss/tools/jsf/project/facet and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2011-06-30 19:03:29 -0400 (Thu, 30 Jun 2011)
New Revision: 32512
Added:
trunk/jsf/plugins/org.jboss.tools.jsf/src/org/jboss/tools/jsf/project/facet/JSFFacetedProjectListener.java
Removed:
trunk/jsf/plugins/org.jboss.tools.jsf/src/org/jboss/tools/jsf/project/facet/PostInstallJsfFacetDelegate.java
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf/plugin.xml
Log:
JBIDE-9280
https://issues.jboss.org/browse/JBIDE-9280
Modified: trunk/jsf/plugins/org.jboss.tools.jsf/plugin.xml
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf/plugin.xml 2011-06-30 21:59:37 UTC (rev 32511)
+++ trunk/jsf/plugins/org.jboss.tools.jsf/plugin.xml 2011-06-30 23:03:29 UTC (rev 32512)
@@ -386,15 +386,11 @@
class="org.jboss.tools.jsf.jsf2.model.FileCompositeComponentRecognizer"/>
</extension>
<extension
- point="org.eclipse.wst.common.project.facet.core.facets">
- <event-handler
- facet="jst.jsf"
- type="PRE_INSTALL"
- version="[1.1">
- <delegate
- class="org.jboss.tools.jsf.project.facet.PostInstallJsfFacetDelegate">
- </delegate>
- </event-handler>
+ point="org.eclipse.wst.common.project.facet.core.listeners">
+ <listener
+ class="org.jboss.tools.jsf.project.facet.JSFFacetedProjectListener"
+ eventTypes="PRE_INSTALL">
+ </listener>
</extension>
<extension id="xhtml" name="%XHTML_Validator.name"
Added: trunk/jsf/plugins/org.jboss.tools.jsf/src/org/jboss/tools/jsf/project/facet/JSFFacetedProjectListener.java
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf/src/org/jboss/tools/jsf/project/facet/JSFFacetedProjectListener.java (rev 0)
+++ trunk/jsf/plugins/org.jboss.tools.jsf/src/org/jboss/tools/jsf/project/facet/JSFFacetedProjectListener.java 2011-06-30 23:03:29 UTC (rev 32512)
@@ -0,0 +1,54 @@
+/*******************************************************************************
+ * Copyright (c) 2011 Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is made available under the terms of the
+ * Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.jsf.project.facet;
+
+import org.eclipse.core.resources.IProject;
+import org.eclipse.core.runtime.CoreException;
+import org.eclipse.wst.common.project.facet.core.events.IFacetedProjectEvent;
+import org.eclipse.wst.common.project.facet.core.events.IFacetedProjectEvent.Type;
+import org.eclipse.wst.common.project.facet.core.events.IFacetedProjectListener;
+import org.eclipse.wst.common.project.facet.core.events.IProjectFacetActionEvent;
+import org.jboss.tools.common.model.util.EclipseResourceUtil;
+import org.jboss.tools.jsf.JSFModelPlugin;
+import org.jboss.tools.jsf.project.JSFNature;
+import org.jboss.tools.jst.web.WebModelPlugin;
+import org.jboss.tools.jst.web.kb.IKbProject;
+import org.jboss.tools.jst.web.kb.internal.KbBuilder;
+
+/**
+ *
+ * @author eskimo & Viacheslav Kabanovich
+ *
+ */
+public class JSFFacetedProjectListener implements IFacetedProjectListener {
+
+ @Override
+ public void handleEvent(IFacetedProjectEvent event) {
+ if(event.getType() == Type.PRE_INSTALL && event instanceof IProjectFacetActionEvent) {
+ IProject project = event.getProject().getProject();
+ String facetID = ((IProjectFacetActionEvent)event).getProjectFacet().getId();
+ if("jst.webfragment".equals(facetID) || "jst.jsf".equals(facetID)) {
+ try {
+ WebModelPlugin.addNatureToProjectWithValidationSupport(project, KbBuilder.BUILDER_ID, IKbProject.NATURE_ID);
+ } catch (CoreException e) {
+ JSFModelPlugin.getDefault().logError(e);
+ }
+ }
+ if("jst.jsf".equals(facetID)) {
+ try {
+ EclipseResourceUtil.addNatureToProject(project, JSFNature.NATURE_ID);
+ } catch (CoreException e) {
+ JSFModelPlugin.getDefault().logError(e);
+ }
+ }
+ }
+ }
+}
Property changes on: trunk/jsf/plugins/org.jboss.tools.jsf/src/org/jboss/tools/jsf/project/facet/JSFFacetedProjectListener.java
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Deleted: trunk/jsf/plugins/org.jboss.tools.jsf/src/org/jboss/tools/jsf/project/facet/PostInstallJsfFacetDelegate.java
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf/src/org/jboss/tools/jsf/project/facet/PostInstallJsfFacetDelegate.java 2011-06-30 21:59:37 UTC (rev 32511)
+++ trunk/jsf/plugins/org.jboss.tools.jsf/src/org/jboss/tools/jsf/project/facet/PostInstallJsfFacetDelegate.java 2011-06-30 23:03:29 UTC (rev 32512)
@@ -1,30 +0,0 @@
-package org.jboss.tools.jsf.project.facet;
-
-import org.eclipse.core.resources.IProject;
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.IProgressMonitor;
-import org.eclipse.wst.common.project.facet.core.IDelegate;
-import org.eclipse.wst.common.project.facet.core.IProjectFacetVersion;
-import org.jboss.tools.common.model.util.EclipseResourceUtil;
-import org.jboss.tools.jsf.project.JSFNature;
-import org.jboss.tools.jst.web.WebModelPlugin;
-import org.jboss.tools.jst.web.kb.IKbProject;
-import org.jboss.tools.jst.web.kb.internal.KbBuilder;
-
-/**
- *
- * @author eskimo
- *
- */
-public class PostInstallJsfFacetDelegate implements IDelegate {
-
- /* (non-Javadoc)
- * @see org.eclipse.wst.common.project.facet.core.IDelegate#execute(org.eclipse.core.resources.IProject, org.eclipse.wst.common.project.facet.core.IProjectFacetVersion, java.lang.Object, org.eclipse.core.runtime.IProgressMonitor)
- */
- public void execute(IProject project, IProjectFacetVersion fv,
- Object config, IProgressMonitor monitor) throws CoreException {
- WebModelPlugin.addNatureToProjectWithValidationSupport(project, KbBuilder.BUILDER_ID, IKbProject.NATURE_ID);
- EclipseResourceUtil.addNatureToProject(project, JSFNature.NATURE_ID);
- }
-
-}
13 years, 3 months
JBoss Tools SVN: r32511 - trunk/cdi/features/org.jboss.tools.cdi.seam.feature.
by jbosstools-commits@lists.jboss.org
Author: akazakov
Date: 2011-06-30 17:59:37 -0400 (Thu, 30 Jun 2011)
New Revision: 32511
Modified:
trunk/cdi/features/org.jboss.tools.cdi.seam.feature/pom.xml
Log:
https://issues.jboss.org/browse/JBIDE-9087
Modified: trunk/cdi/features/org.jboss.tools.cdi.seam.feature/pom.xml
===================================================================
--- trunk/cdi/features/org.jboss.tools.cdi.seam.feature/pom.xml 2011-06-30 21:52:48 UTC (rev 32510)
+++ trunk/cdi/features/org.jboss.tools.cdi.seam.feature/pom.xml 2011-06-30 21:59:37 UTC (rev 32511)
@@ -8,6 +8,6 @@
</parent>
<groupId>org.jboss.tools.cdi.features</groupId>
<artifactId>org.jboss.tools.cdi.seam.feature</artifactId>
- <version>1.0.0-SNAPSHOT</version>
+ <version>1.2.0-SNAPSHOT</version>
<packaging>eclipse-feature</packaging>
</project>
13 years, 3 months
JBoss Tools SVN: r32510 - in trunk/cdi: plugins and 1 other directories.
by jbosstools-commits@lists.jboss.org
Author: akazakov
Date: 2011-06-30 17:52:48 -0400 (Thu, 30 Jun 2011)
New Revision: 32510
Modified:
trunk/cdi/features/org.jboss.tools.cdi.seam.feature/feature.xml
trunk/cdi/plugins/pom.xml
trunk/cdi/tests/pom.xml
Log:
https://issues.jboss.org/browse/JBIDE-9253
Modified: trunk/cdi/features/org.jboss.tools.cdi.seam.feature/feature.xml
===================================================================
--- trunk/cdi/features/org.jboss.tools.cdi.seam.feature/feature.xml 2011-06-30 21:35:43 UTC (rev 32509)
+++ trunk/cdi/features/org.jboss.tools.cdi.seam.feature/feature.xml 2011-06-30 21:52:48 UTC (rev 32510)
@@ -2,7 +2,7 @@
<feature
id="org.jboss.tools.cdi.seam.feature"
label="%featureName"
- version="1.0.0.qualifier"
+ version="1.2.0.qualifier"
provider-name="%featureProvider">
<description>
@@ -22,6 +22,13 @@
</license>
<plugin
+ id="org.jboss.tools.cdi.seam.core"
+ download-size="0"
+ install-size="0"
+ version="0.0.0"
+ unpack="false"/>
+
+ <plugin
id="org.jboss.tools.cdi.seam.solder.core"
download-size="0"
install-size="0"
Modified: trunk/cdi/plugins/pom.xml
===================================================================
--- trunk/cdi/plugins/pom.xml 2011-06-30 21:35:43 UTC (rev 32509)
+++ trunk/cdi/plugins/pom.xml 2011-06-30 21:52:48 UTC (rev 32510)
@@ -17,6 +17,7 @@
<module>org.jboss.tools.cdi.ui</module>
<module>org.jboss.tools.cdi.xml</module>
<module>org.jboss.tools.cdi.xml.ui</module>
+ <module>org.jboss.tools.cdi.seam.core</module>
<module>org.jboss.tools.cdi.seam.solder.core</module>
<module>org.jboss.tools.cdi.seam.config.core</module>
<module>org.jboss.tools.cdi.seam.config.ui</module>
Modified: trunk/cdi/tests/pom.xml
===================================================================
--- trunk/cdi/tests/pom.xml 2011-06-30 21:35:43 UTC (rev 32509)
+++ trunk/cdi/tests/pom.xml 2011-06-30 21:52:48 UTC (rev 32510)
@@ -15,6 +15,7 @@
<module>org.jboss.tools.cdi.core.test</module>
<module>org.jboss.tools.cdi.text.ext.test</module>
<module>org.jboss.tools.cdi.ui.test</module>
+ <module>org.jboss.tools.cdi.seam.core.test</module>
<module>org.jboss.tools.cdi.seam.solder.core.test</module>
<module>org.jboss.tools.cdi.seam.config.core.test</module>
<module>org.jboss.tools.cdi.seam.config.ui.test</module>
13 years, 3 months
JBoss Tools SVN: r32509 - trunk/as/plugins/org.jboss.ide.eclipse.as.core.
by jbosstools-commits@lists.jboss.org
Author: dgolovin
Date: 2011-06-30 17:35:43 -0400 (Thu, 30 Jun 2011)
New Revision: 32509
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.core/.classpath
Log:
Class path is updated to match Execution environment declared in plug-in's manifest
Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.core/.classpath
===================================================================
--- trunk/as/plugins/org.jboss.ide.eclipse.as.core/.classpath 2011-06-30 18:51:24 UTC (rev 32508)
+++ trunk/as/plugins/org.jboss.ide.eclipse.as.core/.classpath 2011-06-30 21:35:43 UTC (rev 32509)
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
- <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
<classpathentry kind="src" path="jbosscore"/>
<classpathentry exported="true" kind="lib" path="dom4j-1.6.1.jar"/>
13 years, 3 months
JBoss Tools SVN: r32508 - trunk/cdi/tests/org.jboss.tools.cdi.core.test/src/org/jboss/tools/cdi/core/test/extension.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2011-06-30 14:51:24 -0400 (Thu, 30 Jun 2011)
New Revision: 32508
Modified:
trunk/cdi/tests/org.jboss.tools.cdi.core.test/src/org/jboss/tools/cdi/core/test/extension/ExtensionManagerTest.java
Log:
JBIDE-9087
https://issues.jboss.org/browse/JBIDE-9087
Modified: trunk/cdi/tests/org.jboss.tools.cdi.core.test/src/org/jboss/tools/cdi/core/test/extension/ExtensionManagerTest.java
===================================================================
--- trunk/cdi/tests/org.jboss.tools.cdi.core.test/src/org/jboss/tools/cdi/core/test/extension/ExtensionManagerTest.java 2011-06-30 18:49:52 UTC (rev 32507)
+++ trunk/cdi/tests/org.jboss.tools.cdi.core.test/src/org/jboss/tools/cdi/core/test/extension/ExtensionManagerTest.java 2011-06-30 18:51:24 UTC (rev 32508)
@@ -25,18 +25,21 @@
public class ExtensionManagerTest extends TestCase {
public void testExtensionManager() throws Exception {
+ String runtimeClassName = "org.jboss.tools.cdi.core.fake.FakeExtension";
CDIExtensionManager m = new CDIExtensionManager();
Set<String> set = new HashSet<String>();
m.setRuntimes("path1", set);
m.pathRemoved("path1");
- set.add("org.jboss.tools.cdi.core.fake.FakeExtension");
+ set.add(runtimeClassName);
m.setRuntimes("path1", set);
+ assertTrue(m.isCDIExtensionAvailable(runtimeClassName));
m.pathRemoved("path1");
+ assertFalse(m.isCDIExtensionAvailable(runtimeClassName));
+ set.add("abc");
m.setRuntimes("path1", set);
m.pathRemoved("path1");
- set.add("abc");
set.clear();
set.add("abc");
13 years, 3 months
JBoss Tools SVN: r32507 - in trunk/cdi: tests/org.jboss.tools.cdi.seam.core.test/.settings and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: akazakov
Date: 2011-06-30 14:49:52 -0400 (Thu, 30 Jun 2011)
New Revision: 32507
Removed:
trunk/cdi/plugins/org.jboss.tools.cdi.seam.core/.settings/org.eclipse.jdt.core.prefs
trunk/cdi/tests/org.jboss.tools.cdi.seam.core.test/.settings/org.eclipse.jdt.core.prefs
Log:
https://issues.jboss.org/browse/JBIDE-9087
Deleted: trunk/cdi/plugins/org.jboss.tools.cdi.seam.core/.settings/org.eclipse.jdt.core.prefs
===================================================================
--- trunk/cdi/plugins/org.jboss.tools.cdi.seam.core/.settings/org.eclipse.jdt.core.prefs 2011-06-30 18:49:01 UTC (rev 32506)
+++ trunk/cdi/plugins/org.jboss.tools.cdi.seam.core/.settings/org.eclipse.jdt.core.prefs 2011-06-30 18:49:52 UTC (rev 32507)
@@ -1,8 +0,0 @@
-#Thu Jun 30 11:07:31 PDT 2011
-eclipse.preferences.version=1
-org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
-org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
-org.eclipse.jdt.core.compiler.compliance=1.6
-org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
-org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
-org.eclipse.jdt.core.compiler.source=1.6
Deleted: trunk/cdi/tests/org.jboss.tools.cdi.seam.core.test/.settings/org.eclipse.jdt.core.prefs
===================================================================
--- trunk/cdi/tests/org.jboss.tools.cdi.seam.core.test/.settings/org.eclipse.jdt.core.prefs 2011-06-30 18:49:01 UTC (rev 32506)
+++ trunk/cdi/tests/org.jboss.tools.cdi.seam.core.test/.settings/org.eclipse.jdt.core.prefs 2011-06-30 18:49:52 UTC (rev 32507)
@@ -1,8 +0,0 @@
-#Thu Jun 30 11:38:44 PDT 2011
-eclipse.preferences.version=1
-org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
-org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
-org.eclipse.jdt.core.compiler.compliance=1.6
-org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
-org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
-org.eclipse.jdt.core.compiler.source=1.6
13 years, 3 months