JBoss Tools SVN: r37802 - in trunk/cdi/tests: org.jboss.tools.cdi.ui.test/src/org/jboss/tools/cdi/ui/test/marker and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: dazarov
Date: 2012-01-12 14:14:51 -0500 (Thu, 12 Jan 2012)
New Revision: 37802
Added:
trunk/cdi/tests/org.jboss.tools.cdi.core.test/resources/tck/tests/jbt/quickfixes/Arder.java
trunk/cdi/tests/org.jboss.tools.cdi.core.test/resources/tck/tests/jbt/quickfixes/NamedInjectionBroken.java
trunk/cdi/tests/org.jboss.tools.cdi.core.test/resources/tck/tests/jbt/quickfixes/Order.java
Modified:
trunk/cdi/tests/org.jboss.tools.cdi.ui.test/src/org/jboss/tools/cdi/ui/test/marker/CDIMarkerResolutionTest.java
Log:
Quick fix for "Injection point other than injected field must not declare a @Named annotation that does not specify the value member [JSR-299 ?\194?\1673.11]" error marker https://issues.jboss.org/browse/JBIDE-7638
Added: trunk/cdi/tests/org.jboss.tools.cdi.core.test/resources/tck/tests/jbt/quickfixes/Arder.java
===================================================================
--- trunk/cdi/tests/org.jboss.tools.cdi.core.test/resources/tck/tests/jbt/quickfixes/Arder.java (rev 0)
+++ trunk/cdi/tests/org.jboss.tools.cdi.core.test/resources/tck/tests/jbt/quickfixes/Arder.java 2012-01-12 19:14:51 UTC (rev 37802)
@@ -0,0 +1,8 @@
+package org.jboss.jsr299.tck.tests.jbt.quickfixes;
+
+import javax.inject.Named;
+
+@Named("arder2")
+public class Arder extends Order {
+
+}
Property changes on: trunk/cdi/tests/org.jboss.tools.cdi.core.test/resources/tck/tests/jbt/quickfixes/Arder.java
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added: trunk/cdi/tests/org.jboss.tools.cdi.core.test/resources/tck/tests/jbt/quickfixes/NamedInjectionBroken.java
===================================================================
--- trunk/cdi/tests/org.jboss.tools.cdi.core.test/resources/tck/tests/jbt/quickfixes/NamedInjectionBroken.java (rev 0)
+++ trunk/cdi/tests/org.jboss.tools.cdi.core.test/resources/tck/tests/jbt/quickfixes/NamedInjectionBroken.java 2012-01-12 19:14:51 UTC (rev 37802)
@@ -0,0 +1,24 @@
+package org.jboss.jsr299.tck.tests.jbt.quickfixes;
+
+import javax.inject.Inject;
+import javax.inject.Named;
+
+public class NamedInjectionBroken {
+
+ @Named @Inject Order order;
+
+ @Named("e")
+ @Inject
+ NamedInjectionBroken(Order order) {
+ // DO nothing
+ }
+
+ @Inject public void init(@Named Order order) {
+ // DO nothing
+ }
+
+ @Named("injectTestFooName") @Inject
+ public void foo(Order order) {
+ // DO nothing
+ }
+}
\ No newline at end of file
Property changes on: trunk/cdi/tests/org.jboss.tools.cdi.core.test/resources/tck/tests/jbt/quickfixes/NamedInjectionBroken.java
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added: trunk/cdi/tests/org.jboss.tools.cdi.core.test/resources/tck/tests/jbt/quickfixes/Order.java
===================================================================
--- trunk/cdi/tests/org.jboss.tools.cdi.core.test/resources/tck/tests/jbt/quickfixes/Order.java (rev 0)
+++ trunk/cdi/tests/org.jboss.tools.cdi.core.test/resources/tck/tests/jbt/quickfixes/Order.java 2012-01-12 19:14:51 UTC (rev 37802)
@@ -0,0 +1,8 @@
+package org.jboss.jsr299.tck.tests.jbt.quickfixes;
+
+import javax.inject.Named;
+
+@Named("order1")
+public class Order {
+
+}
\ No newline at end of file
Property changes on: trunk/cdi/tests/org.jboss.tools.cdi.core.test/resources/tck/tests/jbt/quickfixes/Order.java
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Modified: trunk/cdi/tests/org.jboss.tools.cdi.ui.test/src/org/jboss/tools/cdi/ui/test/marker/CDIMarkerResolutionTest.java
===================================================================
--- trunk/cdi/tests/org.jboss.tools.cdi.ui.test/src/org/jboss/tools/cdi/ui/test/marker/CDIMarkerResolutionTest.java 2012-01-12 19:04:41 UTC (rev 37801)
+++ trunk/cdi/tests/org.jboss.tools.cdi.ui.test/src/org/jboss/tools/cdi/ui/test/marker/CDIMarkerResolutionTest.java 2012-01-12 19:14:51 UTC (rev 37802)
@@ -19,12 +19,9 @@
import org.eclipse.core.resources.IResource;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.NullProgressMonitor;
-import org.eclipse.ltk.core.refactoring.Change;
import org.eclipse.ltk.core.refactoring.CompositeChange;
import org.eclipse.ltk.core.refactoring.RefactoringStatus;
-import org.eclipse.ltk.core.refactoring.TextFileChange;
import org.eclipse.ltk.core.refactoring.participants.RefactoringProcessor;
-import org.eclipse.text.edits.MultiTextEdit;
import org.eclipse.ui.IMarkerResolution;
import org.eclipse.ui.ide.IDE;
import org.jboss.tools.cdi.core.test.tck.TCKTest;
@@ -32,6 +29,7 @@
import org.jboss.tools.cdi.internal.core.validation.CDIValidationErrorManager;
import org.jboss.tools.cdi.ui.marker.AddAnnotationMarkerResolution;
import org.jboss.tools.cdi.ui.marker.AddLocalBeanMarkerResolution;
+import org.jboss.tools.cdi.ui.marker.AddNameMarkerResolution;
import org.jboss.tools.cdi.ui.marker.AddRetentionAnnotationMarkerResolution;
import org.jboss.tools.cdi.ui.marker.AddSerializableInterfaceMarkerResolution;
import org.jboss.tools.cdi.ui.marker.AddTargetAnnotationMarkerResolution;
@@ -45,9 +43,7 @@
import org.jboss.tools.cdi.ui.marker.MakeMethodPublicMarkerResolution;
import org.jboss.tools.cdi.ui.marker.TestableResolutionWithDialog;
import org.jboss.tools.cdi.ui.marker.TestableResolutionWithRefactoringProcessor;
-import org.jboss.tools.common.base.test.AbstractRefactorTest.TestChangeStructure;
import org.jboss.tools.common.base.test.validation.TestUtil;
-import org.jboss.tools.common.refactoring.BaseFileChange;
import org.jboss.tools.common.ui.marker.AddSuppressWarningsMarkerResolution;
import org.jboss.tools.common.ui.marker.ConfigureProblemSeverityMarkerResolution;
import org.jboss.tools.common.util.FileUtil;
@@ -1019,4 +1015,15 @@
CDIValidationErrorManager.UNKNOWN_INTERCEPTOR_CLASS_NAME_ID,
CreateCDIElementMarkerResolution.class);
}
+
+ public void testAddNameResolution() throws CoreException{
+ checkResolution(tckProject,
+ new String[]{
+ "JavaSource/org/jboss/jsr299/tck/tests/jbt/quickfixes/NamedInjectionBroken.java"
+ },
+ CDICoreValidator.PROBLEM_TYPE,
+ CDIValidationErrorManager.MESSAGE_ID_ATTRIBUTE_NAME,
+ CDIValidationErrorManager.PARAM_INJECTION_DECLARES_EMPTY_NAME_ID,
+ AddNameMarkerResolution.class);
+ }
}
\ No newline at end of file
12 years, 12 months
JBoss Tools SVN: r37801 - trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/META-INF.
by jbosstools-commits@lists.jboss.org
Author: adietish
Date: 2012-01-12 14:04:41 -0500 (Thu, 12 Jan 2012)
New Revision: 37801
Modified:
trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/META-INF/MANIFEST.MF
Log:
[JBIDE-10479] implemented class (and tests) to handle openshift profile in poms
Modified: trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/META-INF/MANIFEST.MF
===================================================================
--- trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/META-INF/MANIFEST.MF 2012-01-12 19:04:21 UTC (rev 37800)
+++ trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/META-INF/MANIFEST.MF 2012-01-12 19:04:41 UTC (rev 37801)
@@ -44,4 +44,13 @@
org.jboss.tools.common.ui.preferencevalue,
org.jboss.tools.common.ui.ssh
Bundle-Vendor: %Bundle-Vendor.0
+Export-Package: org.jboss.tools.openshift.express.internal.core.behaviour;x-friends:="org.jboss.tools.openshift.express.test",
+ org.jboss.tools.openshift.express.internal.ui;x-friends:="org.jboss.tools.openshift.express.test",
+ org.jboss.tools.openshift.express.internal.ui.behaviour;x-friends:="org.jboss.tools.openshift.express.test",
+ org.jboss.tools.openshift.express.internal.ui.console;x-friends:="org.jboss.tools.openshift.express.test",
+ org.jboss.tools.openshift.express.internal.ui.messages;x-friends:="org.jboss.tools.openshift.express.test",
+ org.jboss.tools.openshift.express.internal.ui.utils;x-friends:="org.jboss.tools.openshift.express.test",
+ org.jboss.tools.openshift.express.internal.ui.wizard;x-friends:="org.jboss.tools.openshift.express.test",
+ org.jboss.tools.openshift.express.internal.ui.wizard.appimport;x-friends:="org.jboss.tools.openshift.express.test",
+ org.jboss.tools.openshift.express.internal.ui.wizard.appimport.project;x-friends:="org.jboss.tools.openshift.express.test"
12 years, 12 months
JBoss Tools SVN: r37800 - in trunk/openshift: plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/appimport and 1 other directories.
by jbosstools-commits@lists.jboss.org
Author: adietish
Date: 2012-01-12 14:04:21 -0500 (Thu, 12 Jan 2012)
New Revision: 37800
Added:
trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/appimport/OpenShiftProfile.java
trunk/openshift/tests/org.jboss.tools.openshift.express.test/src/org/jboss/tools/openshift/express/test/OpenShiftProfileTests.java
trunk/openshift/tests/org.jboss.tools.openshift.express.test/src/org/jboss/tools/openshift/express/test/OpenShiftTestSuite.java
Modified:
trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/utils/FileUtils.java
Log:
[JBIDE-10479] implemented class (and tests) to handle openshift profile in poms
Modified: trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/utils/FileUtils.java
===================================================================
--- trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/utils/FileUtils.java 2012-01-12 18:57:07 UTC (rev 37799)
+++ trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/utils/FileUtils.java 2012-01-12 19:04:21 UTC (rev 37800)
@@ -14,10 +14,12 @@
import java.io.BufferedOutputStream;
import java.io.File;
import java.io.FileInputStream;
+import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
+import java.io.PrintWriter;
import org.eclipse.core.runtime.Assert;
@@ -148,10 +150,15 @@
Assert.isLegal(source != null);
Assert.isLegal(destination != null);
- InputStream in = null;
writeTo(new BufferedInputStream(new FileInputStream(source)), destination);
}
+ public static final void writeTo(String content, File destination) throws FileNotFoundException {
+ PrintWriter writer = new PrintWriter(destination);
+ writer.flush();
+ writer.close();
+ }
+
private static final void writeTo(InputStream in, File destination) throws IOException {
Assert.isLegal(in != null);
Assert.isLegal(destination != null);
Added: trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/appimport/OpenShiftProfile.java
===================================================================
--- trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/appimport/OpenShiftProfile.java (rev 0)
+++ trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/appimport/OpenShiftProfile.java 2012-01-12 19:04:21 UTC (rev 37800)
@@ -0,0 +1,301 @@
+/*******************************************************************************
+ * 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.openshift.express.internal.ui.wizard.appimport;
+
+import java.io.ByteArrayInputStream;
+import java.io.FileNotFoundException;
+import java.io.FileOutputStream;
+import java.io.IOException;
+import java.io.InputStream;
+import java.io.OutputStreamWriter;
+import java.io.UnsupportedEncodingException;
+import java.text.MessageFormat;
+
+import javax.xml.parsers.DocumentBuilder;
+import javax.xml.parsers.DocumentBuilderFactory;
+import javax.xml.parsers.ParserConfigurationException;
+import javax.xml.transform.OutputKeys;
+import javax.xml.transform.Result;
+import javax.xml.transform.Transformer;
+import javax.xml.transform.TransformerConfigurationException;
+import javax.xml.transform.TransformerException;
+import javax.xml.transform.TransformerFactory;
+import javax.xml.transform.dom.DOMSource;
+import javax.xml.transform.stream.StreamResult;
+
+import org.eclipse.core.resources.IFile;
+import org.eclipse.core.runtime.CoreException;
+import org.eclipse.core.runtime.IStatus;
+import org.eclipse.core.runtime.Status;
+import org.eclipse.osgi.util.NLS;
+import org.w3c.dom.Document;
+import org.w3c.dom.Element;
+import org.w3c.dom.Node;
+import org.w3c.dom.NodeList;
+import org.xml.sax.SAXException;
+
+/**
+ * @author André Dietisheim
+ */
+public class OpenShiftProfile {
+
+ private static final String ID_OPENSHIFT = "openshift";
+ private static final String ELEMENT_PROJECT = "project";
+ private static final String ELEMENT_PROFILES = "profiles";
+ private static final String ELEMENT_PROFILE = "profile";
+ private static final String ELEMENT_ID = "id";
+
+ private static final String OPENSHIFT_PROFILE =
+ "<profile>\n"
+ + "<!-- When built in OpenShift the 'openshift' profile will be used when invoking mvn. -->\n"
+ + "<!-- Use this profile for any OpenShift specific customization your app will need. -->\n"
+ + "<!-- By default that is to put the resulting archive into the 'deployments' folder. -->\n"
+ + "<!-- http://maven.apache.org/guides/mini/guide-building-for-different-environm... -->\n"
+ + "<id>openshift</id>\n"
+ + "<build>\n"
+ + " <finalName>{0}</finalName>\n"
+ + " <plugins>\n"
+ + " <plugin>\n"
+ + " <artifactId>maven-war-plugin</artifactId>\n"
+ + " <version>2.1.1</version>\n"
+ + " <configuration>\n"
+ + " <outputDirectory>deployments</outputDirectory>\n"
+ + " <warName>ROOT</warName>\n"
+ + " </configuration>\n"
+ + " </plugin>\n"
+ + " </plugins>\n"
+ + " </build>\n"
+ + "</profile>\n";
+
+ private IFile pomFile;
+ private String pluginId;
+ private Document document;
+
+ /**
+ * Creates an openshift profile that will allow you to deal with the
+ * openshift profile in a given pom.
+ *
+ * @param pomFile
+ * @param pluginId
+ */
+ public OpenShiftProfile(IFile pomFile, String pluginId) {
+ this.pomFile = pomFile;
+ this.pluginId = pluginId;
+ }
+
+ /**
+ * Checks the pom (that was given at constructin time) for presence of the
+ * OpenShift profile. Returns <code>true</code> if this pom has the
+ * OpenShift profile, <code>false</code> otherwise.
+ *
+ * @return <code>true</code> if the pom has the openshift profile.
+ * @throws CoreException
+ */
+ public boolean existsInPom() throws CoreException {
+ if (!exists(pomFile)) {
+ return false;
+ }
+
+ Element openShiftProfileElement = getOpenShiftProfileElement(getDocument());
+ return openShiftProfileElement != null;
+ }
+
+ /**
+ * Adds the openshift profile to the pom this is instance is bound to.
+ * Returns <code>true</code> if it was added, <code>false</code> otherwise.
+ *
+ * @return true if the profile was added to the pom this instance is bound
+ * to.
+ * @throws CoreException
+ */
+ public boolean addToPom(String finalName) throws CoreException {
+ try {
+ if (existsInPom()) {
+ return false;
+ }
+ Document document = getDocument();
+ Element profilesElement = getOrCreateProfilesElement(document);
+ Node profileNode = document.importNode(createOpenShiftProfileElement(finalName), true);
+ profilesElement.appendChild(profileNode);
+ return true;
+ } catch (SAXException e) {
+ throw new CoreException(createStatus(e));
+ } catch (IOException e) {
+ throw new CoreException(createStatus(e));
+ } catch (ParserConfigurationException e) {
+ throw new CoreException(createStatus(e));
+ }
+ }
+
+ private Element createOpenShiftProfileElement(String finalName) throws ParserConfigurationException, SAXException, IOException {
+ DocumentBuilder documentBuilder = DocumentBuilderFactory.newInstance().newDocumentBuilder();
+ String openShiftProfile = MessageFormat.format(OPENSHIFT_PROFILE, finalName);
+ Document document = documentBuilder.parse(new ByteArrayInputStream(openShiftProfile.getBytes()));
+ return document.getDocumentElement();
+ }
+
+ private Element getOrCreateProfilesElement(Document document) throws CoreException {
+ Element profilesElement = getProfilesElement(document);
+ if (profilesElement == null) {
+ profilesElement = createProfilesElement(document);
+ }
+ return profilesElement;
+ }
+
+ private Element createProfilesElement(Document document) throws CoreException {
+ Element profilesElement;
+ profilesElement = document.createElement(ELEMENT_PROFILES);
+ Element projectElement = getProjectElement(document);
+ if (projectElement == null) {
+ throw new CoreException(
+ createStatus(NLS.bind("Could not find <project> tag in pom {0}", pomFile.toString())));
+ }
+ projectElement.appendChild(profilesElement);
+ return profilesElement;
+ }
+
+ private boolean exists(IFile file) {
+ return file != null
+ && file.exists();
+ }
+
+ private Element getProfilesElement(Document document) {
+ return getFirstElement(ELEMENT_PROFILES, document);
+ }
+
+ private Element getProjectElement(Document document) {
+ return getFirstElement(ELEMENT_PROJECT, document);
+ }
+
+ private Element getOpenShiftProfileElement(Document document) {
+ return getOpenShiftProfileElement(getProfilesElement(document));
+ }
+
+ private Element getOpenShiftProfileElement(Element element) {
+ Element openshiftProfile = getFirstElementByMatcher(ELEMENT_PROFILE, new IMatcher() {
+
+ @Override
+ public boolean isMatch(Element element) {
+ if (element == null) {
+ return false;
+ }
+
+ Element idElement = getFirstElement(ELEMENT_ID, element);
+ if (idElement == null) {
+ return false;
+ }
+ if (idElement.hasChildNodes()) {
+ return ID_OPENSHIFT.equals(idElement.getFirstChild().getTextContent());
+ }
+ return false;
+ }
+ }, element);
+ return openshiftProfile;
+ }
+
+ private Element getFirstElement(String elementName, Document document) {
+ NodeList elements = document.getElementsByTagName(elementName);
+ if (elements != null
+ && elements.getLength() > 0) {
+ return (Element) elements.item(0);
+ }
+ return null;
+ }
+
+ protected Element getFirstElement(String elementName, Element element) {
+ NodeList children = element.getElementsByTagName(elementName);
+ if (children == null
+ || children.getLength() == 0) {
+ return null;
+ }
+ return (Element) children.item(0);
+ }
+
+ protected Element getFirstElementByMatcher(String elementName, IMatcher matcher, Element element) {
+ if (element == null) {
+ return null;
+ }
+
+ NodeList children = element.getElementsByTagName(elementName);
+ if (children == null
+ || children.getLength() == 0) {
+ return null;
+ }
+ for (int i = 0; i < children.getLength(); i++) {
+ Element child = (Element) children.item(i);
+ if (matcher.isMatch(child)) {
+ return child;
+ }
+ }
+ return null;
+ }
+
+ private Document getDocument() throws CoreException {
+ return getDocument(pomFile);
+ }
+
+ private Document getDocument(IFile file) throws CoreException {
+ return getDocument(file.getContents());
+ }
+
+ private Document getDocument(InputStream inputStream) throws CoreException {
+ try {
+ if (document == null) {
+ DocumentBuilder documentBuilder = DocumentBuilderFactory.newInstance().newDocumentBuilder();
+ this.document = documentBuilder.parse(inputStream);
+ }
+ return document;
+ } catch (ParserConfigurationException e) {
+ throw new CoreException(createStatus(e));
+ } catch (SAXException e) {
+ throw new CoreException(createStatus(e));
+ } catch (IOException e) {
+ throw new CoreException(createStatus(e));
+ }
+ }
+
+ private interface IMatcher {
+ public boolean isMatch(Element element);
+ }
+
+ private IStatus createStatus(Throwable e) {
+ return new Status(IStatus.ERROR, pluginId, e.getMessage(), e);
+ }
+
+ private IStatus createStatus(String message) {
+ return new Status(IStatus.ERROR, pluginId, message);
+ }
+
+ public void savePom() throws CoreException {
+ try {
+ TransformerFactory transformerFactory = TransformerFactory.newInstance();
+ transformerFactory.setAttribute("indent-number", new Integer(4));
+
+ Transformer transformer = transformerFactory.newTransformer();
+ transformer.setOutputProperty(OutputKeys.METHOD, "xml");
+ transformer.setOutputProperty(OutputKeys.INDENT, "yes");
+ transformer.setOutputProperty(OutputKeys.ENCODING, "UTF-8");
+
+ Result out =
+ new StreamResult(
+ new OutputStreamWriter(new FileOutputStream(pomFile.getLocation().toString()), "UTF-8"));
+ transformer.transform(new DOMSource(getDocument()), out);
+ } catch (TransformerConfigurationException e) {
+ throw new CoreException(createStatus(e));
+ } catch (UnsupportedEncodingException e) {
+ throw new CoreException(createStatus(e));
+ } catch (TransformerException e) {
+ throw new CoreException(createStatus(e));
+ } catch (FileNotFoundException e) {
+ throw new CoreException(createStatus(e));
+ }
+ }
+}
Property changes on: trunk/openshift/plugins/org.jboss.tools.openshift.express.ui/src/org/jboss/tools/openshift/express/internal/ui/wizard/appimport/OpenShiftProfile.java
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added: trunk/openshift/tests/org.jboss.tools.openshift.express.test/src/org/jboss/tools/openshift/express/test/OpenShiftProfileTests.java
===================================================================
--- trunk/openshift/tests/org.jboss.tools.openshift.express.test/src/org/jboss/tools/openshift/express/test/OpenShiftProfileTests.java (rev 0)
+++ trunk/openshift/tests/org.jboss.tools.openshift.express.test/src/org/jboss/tools/openshift/express/test/OpenShiftProfileTests.java 2012-01-12 19:04:21 UTC (rev 37800)
@@ -0,0 +1,189 @@
+/*******************************************************************************
+ * 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.openshift.express.test;
+
+import static org.junit.Assert.assertFalse;
+import static org.junit.Assert.assertTrue;
+
+import java.io.ByteArrayInputStream;
+
+import org.eclipse.core.resources.IFile;
+import org.eclipse.core.resources.IProject;
+import org.eclipse.core.resources.IResource;
+import org.eclipse.core.resources.IWorkspaceRunnable;
+import org.eclipse.core.resources.ResourcesPlugin;
+import org.eclipse.core.runtime.CoreException;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.core.runtime.NullProgressMonitor;
+import org.jboss.tools.openshift.express.internal.ui.wizard.appimport.OpenShiftProfile;
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+
+/**
+ * @author Andre Dietisheim
+ */
+public class OpenShiftProfileTests {
+
+ private static final String PLUGIN_ID = "org.jboss.tools.openshift.express.test";
+
+ private static final String POM_FILENAME = "pom.xml";
+
+ private static final String POM_WITHOUT_OPENSHIFT =
+ "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
+ + "<project xmlns=\"http://maven.apache.org/POM/4.0.0\" "
+ + "xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" "
+ + "xsi:schemaLocation=\"http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd\">\n"
+ + " <modelVersion>4.0.0</modelVersion>\n"
+ + " <groupId>org.jboss.tools.openshift.tests</groupId>\n"
+ + " <artifactId>org.jboss.tools.openshift.express.test</artifactId>\n"
+ + " <packaging>eclipse-test-plugin</packaging>\n"
+ + "</project>\n";
+
+ private static final String OPENSHIFT_PROFILE =
+ "<!-- When built in OpenShift the 'openshift' profile will be used when invoking mvn. -->\n"
+ + "<!-- Use this profile for any OpenShift specific customization your app will need. -->\n"
+ + "<!-- By default that is to put the resulting archive into the 'deployments' folder. -->\n"
+ + "<!-- http://maven.apache.org/guides/mini/guide-building-for-different-environm... -->\n"
+ + "<id>openshift</id>\n"
+ + "<build>\n"
+ + " <finalName>as22</finalName>\n"
+ + " <plugins>\n"
+ + " <plugin>\n"
+ + " <artifactId>maven-war-plugin</artifactId>\n"
+ + " <version>2.1.1</version>\n"
+ + " <configuration>\n"
+ + " <outputDirectory>deployments</outputDirectory>\n"
+ + " <warName>ROOT</warName>\n"
+ + " </configuration>\n"
+ + " </plugin>\n"
+ + " </plugins>\n"
+ + "</build>\n";
+
+ private static final String POM_WITH_OPENSHIFT =
+ "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
+ + "<project xmlns=\"http://maven.apache.org/POM/4.0.0\" "
+ + "xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" "
+ + "xsi:schemaLocation=\"http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd\">\n"
+ + " <modelVersion>4.0.0</modelVersion>\n"
+ + " <groupId>org.jboss.tools.openshift.tests</groupId>\n"
+ + " <artifactId>org.jboss.tools.openshift.express.test</artifactId>\n"
+ + " <packaging>eclipse-test-plugin</packaging>\n"
+ + " <profiles>\n"
+ + " <profile>\n"
+
+ + OPENSHIFT_PROFILE
+
+ + " </profile>\n"
+ + " </profiles>\n"
+ + "</project>\n";
+
+ private IProject nonOpenShiftProject;
+ private IFile pomWithoutOpenShiftProfile;
+ private IProject openShiftProject;
+ private IFile pomWithOpenShiftProfile;
+
+ @Before
+ public void setUp() throws CoreException {
+ this.openShiftProject = createTmpProject();
+ this.pomWithOpenShiftProfile = createPomFile(POM_WITH_OPENSHIFT, openShiftProject);
+ this.nonOpenShiftProject = createTmpProject();
+ this.pomWithoutOpenShiftProfile = createPomFile(POM_WITHOUT_OPENSHIFT, nonOpenShiftProject);
+ }
+
+ @After
+ public void tearDown() throws CoreException {
+ deleteProject(openShiftProject);
+ deleteProject(nonOpenShiftProject);
+ }
+
+ private void deleteProject(final IProject project) throws CoreException {
+ if (project == null
+ || !project.isAccessible()) {
+ return;
+ }
+ project.getWorkspace().run(new IWorkspaceRunnable() {
+
+ @Override
+ public void run(IProgressMonitor monitor) throws CoreException {
+ project.close(null);
+ project.delete(true, null);
+ }
+ }, null);
+ }
+
+ @Test
+ public void canDetectOpenShiftProfileNotPresent() throws CoreException {
+ OpenShiftProfile profile = new OpenShiftProfile(pomWithoutOpenShiftProfile, PLUGIN_ID);
+ assertFalse(profile.existsInPom());
+ }
+
+ @Test
+ public void canDetectOpenShiftProfilePresent() throws CoreException {
+ OpenShiftProfile profile = new OpenShiftProfile(pomWithOpenShiftProfile, PLUGIN_ID);
+ assertTrue(profile.existsInPom());
+ }
+
+ @Test
+ public void canAddOpenShiftProfile() throws CoreException {
+ OpenShiftProfile profile = new OpenShiftProfile(pomWithoutOpenShiftProfile, PLUGIN_ID);
+ boolean added = profile.addToPom(nonOpenShiftProject.getName());
+ assertTrue(added);
+ }
+
+ @Test
+ public void pomHasOpenShiftProfileAfterAdd() throws CoreException {
+ OpenShiftProfile profile = new OpenShiftProfile(pomWithoutOpenShiftProfile, PLUGIN_ID);
+ profile.addToPom(nonOpenShiftProject.getName());
+ profile.savePom();
+ profile = new OpenShiftProfile(pomWithoutOpenShiftProfile, PLUGIN_ID);
+ assertTrue(profile.existsInPom());
+ }
+
+ @Test
+ public void doesNotAddOpenShiftProfileIfAlreadyPresent() throws CoreException {
+ OpenShiftProfile profile = new OpenShiftProfile(pomWithOpenShiftProfile, PLUGIN_ID);
+ boolean added = profile.addToPom(openShiftProject.getName());
+ assertFalse(added);
+ }
+
+ private IFile createPomFile(final String content, final IProject project) throws CoreException {
+ final IFile pomFile = project.getFile(POM_FILENAME);
+ IWorkspaceRunnable runnable = new IWorkspaceRunnable() {
+
+ @Override
+ public void run(IProgressMonitor monitor) throws CoreException {
+ pomFile.create(
+ new ByteArrayInputStream(content.getBytes())
+ , true
+ , new NullProgressMonitor());
+ pomFile.refreshLocal(IResource.DEPTH_INFINITE, new NullProgressMonitor());
+ }
+ };
+ project.getWorkspace().run(runnable, new NullProgressMonitor());
+ return pomFile;
+ }
+
+ private IProject createTmpProject() throws CoreException {
+ String name = String.valueOf(System.currentTimeMillis());
+ final IProject project = ResourcesPlugin.getWorkspace().getRoot().getProject(name);
+ IWorkspaceRunnable runnable = new IWorkspaceRunnable() {
+
+ @Override
+ public void run(IProgressMonitor monitor) throws CoreException {
+ project.create(new NullProgressMonitor());
+ project.open(new NullProgressMonitor());
+ }
+ };
+ project.getWorkspace().run(runnable, new NullProgressMonitor());
+ return project;
+ }
+}
Property changes on: trunk/openshift/tests/org.jboss.tools.openshift.express.test/src/org/jboss/tools/openshift/express/test/OpenShiftProfileTests.java
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added: trunk/openshift/tests/org.jboss.tools.openshift.express.test/src/org/jboss/tools/openshift/express/test/OpenShiftTestSuite.java
===================================================================
--- trunk/openshift/tests/org.jboss.tools.openshift.express.test/src/org/jboss/tools/openshift/express/test/OpenShiftTestSuite.java (rev 0)
+++ trunk/openshift/tests/org.jboss.tools.openshift.express.test/src/org/jboss/tools/openshift/express/test/OpenShiftTestSuite.java 2012-01-12 19:04:21 UTC (rev 37800)
@@ -0,0 +1,25 @@
+/*******************************************************************************
+ * 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.openshift.express.test;
+
+import org.junit.runner.RunWith;
+import org.junit.runners.Suite;
+import org.junit.runners.Suite.SuiteClasses;
+
+(a)RunWith(Suite.class)
+@SuiteClasses({
+ OpenShiftProfileTests.class
+})
+/**
+ * @author Andre Dietisheim
+ */
+public class OpenShiftTestSuite {
+}
Property changes on: trunk/openshift/tests/org.jboss.tools.openshift.express.test/src/org/jboss/tools/openshift/express/test/OpenShiftTestSuite.java
___________________________________________________________________
Added: svn:mime-type
+ text/plain
12 years, 12 months
JBoss Tools SVN: r37799 - trunk/openshift/features.
by jbosstools-commits@lists.jboss.org
Author: adietish
Date: 2012-01-12 13:57:07 -0500 (Thu, 12 Jan 2012)
New Revision: 37799
Removed:
trunk/openshift/features/org.jboss.tools.openshift.test.feature/
Log:
[JBIDE-10622] removed old feature (the one that misses "express")
12 years, 12 months
JBoss Tools SVN: r37798 - trunk/openshift/features/org.jboss.tools.openshift.express.test.feature.
by jbosstools-commits@lists.jboss.org
Author: adietish
Date: 2012-01-12 13:53:14 -0500 (Thu, 12 Jan 2012)
New Revision: 37798
Added:
trunk/openshift/features/org.jboss.tools.openshift.express.test.feature/.project
trunk/openshift/features/org.jboss.tools.openshift.express.test.feature/build.properties
trunk/openshift/features/org.jboss.tools.openshift.express.test.feature/feature.properties
trunk/openshift/features/org.jboss.tools.openshift.express.test.feature/feature.xml
trunk/openshift/features/org.jboss.tools.openshift.express.test.feature/license.html
trunk/openshift/features/org.jboss.tools.openshift.express.test.feature/pom.xml
Log:
[JBIDE-10622] initial commit, created new feature
Added: trunk/openshift/features/org.jboss.tools.openshift.express.test.feature/.project
===================================================================
--- trunk/openshift/features/org.jboss.tools.openshift.express.test.feature/.project (rev 0)
+++ trunk/openshift/features/org.jboss.tools.openshift.express.test.feature/.project 2012-01-12 18:53:14 UTC (rev 37798)
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.jboss.tools.openshift.express.test.feature</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.pde.FeatureBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.pde.FeatureNature</nature>
+ </natures>
+</projectDescription>
Property changes on: trunk/openshift/features/org.jboss.tools.openshift.express.test.feature/.project
___________________________________________________________________
Added: svn:executable
+ *
Added: svn:mime-type
+ text/plain
Added: trunk/openshift/features/org.jboss.tools.openshift.express.test.feature/build.properties
===================================================================
--- trunk/openshift/features/org.jboss.tools.openshift.express.test.feature/build.properties (rev 0)
+++ trunk/openshift/features/org.jboss.tools.openshift.express.test.feature/build.properties 2012-01-12 18:53:14 UTC (rev 37798)
@@ -0,0 +1,9 @@
+bin.includes = feature.xml,\
+ feature.properties,\
+ build.properties,\
+ license.html
+src.includes = build.properties,\
+ feature.properties,\
+ feature.xml,\
+ license.html,\
+ pom.xml
Property changes on: trunk/openshift/features/org.jboss.tools.openshift.express.test.feature/build.properties
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added: trunk/openshift/features/org.jboss.tools.openshift.express.test.feature/feature.properties
===================================================================
--- trunk/openshift/features/org.jboss.tools.openshift.express.test.feature/feature.properties (rev 0)
+++ trunk/openshift/features/org.jboss.tools.openshift.express.test.feature/feature.properties 2012-01-12 18:53:14 UTC (rev 37798)
@@ -0,0 +1,51 @@
+###############################################################################
+# Copyright (c) 2010-2011 Red Hat, Inc. and others.
+# All rights reserved. This program and the accompanying materials
+# are 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:
+# JBoss by Red Hat - Initial implementation.
+##############################################################################
+# feature.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.
+
+# "featureName" property - name of the feature
+featureName=JBoss OpenShift Express Tools Test
+
+# "providerName" property - name of the company that provides the feature
+providerName=JBoss by Red Hat
+
+# "description" property - description of the feature
+description=Tests for Tooling to deal with OpenShift Express. It will allow you to sign into your OpenShift Express account, create a domain and manage applications. It will furthermore allow you to setup an Eclipse WTP server adapter that would be able to publish projects to the OpenShift Express PaaS platform..
+
+# "copyright" property - text of the "Feature Update Copyright"
+copyright=Copyright (c) 2008-2011 Red Hat, Inc. and others.\n\
+All rights reserved. This program and the accompanying materials\n\
+are made available under the terms of the Eclipse Public License v1.0\n\
+which accompanies this distribution, and is available at\n\
+http\://www.eclipse.org/legal/epl-v10.html\n\n\
+Contributors\:\n\
+JBoss by Red Hat - Initial implementation.
+ ############### end of copyright property ####################################
+
+# "licenseURL" property - URL of the "Feature License"
+# do not translate value - just change to point to a locale-specific HTML page
+licenseURL=license.html
+
+# START NON-TRANSLATABLE
+# "license" property - text of the "Feature Update License"
+# should be plain text version of license agreement pointed to be "licenseURL"
+license=Red Hat, Inc. licenses these features and plugins to you under \
+certain open source licenses (or aggregations of such licenses), which \
+in a particular case may include the Eclipse Public License, the GNU \
+Lesser General Public License, and/or certain other open source \
+licenses. For precise licensing details, consult the corresponding \
+source code, or contact Red Hat Legal Affairs, 1801 Varsity Drive, \
+Raleigh NC 27606 USA.
+# END NON-TRANSLATABLE
+########### end of license property ##########################################
Property changes on: trunk/openshift/features/org.jboss.tools.openshift.express.test.feature/feature.properties
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added: trunk/openshift/features/org.jboss.tools.openshift.express.test.feature/feature.xml
===================================================================
--- trunk/openshift/features/org.jboss.tools.openshift.express.test.feature/feature.xml (rev 0)
+++ trunk/openshift/features/org.jboss.tools.openshift.express.test.feature/feature.xml 2012-01-12 18:53:14 UTC (rev 37798)
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<feature id="org.jboss.tools.openshift.test.feature" label="%featureName" version="2.3.0.qualifier" provider-name="%providerName">
+
+ <description url="%descriptionURL">
+ %description
+ </description>
+
+ <copyright>
+ %copyright
+ </copyright>
+
+ <license url="%licenseURL">
+ %license
+ </license>
+
+ <plugin id="org.jboss.tools.openshift.egit.test" download-size="0" install-size="0" version="0.0.0" unpack="false" />
+ <plugin id="org.jboss.tools.openshift.express.test" download-size="0" install-size="0" version="0.0.0" unpack="false" />
+</feature>
Property changes on: trunk/openshift/features/org.jboss.tools.openshift.express.test.feature/feature.xml
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added: trunk/openshift/features/org.jboss.tools.openshift.express.test.feature/license.html
===================================================================
--- trunk/openshift/features/org.jboss.tools.openshift.express.test.feature/license.html (rev 0)
+++ trunk/openshift/features/org.jboss.tools.openshift.express.test.feature/license.html 2012-01-12 18:53:14 UTC (rev 37798)
@@ -0,0 +1,14 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
+<html>
+
+<body>
+<p>Red Hat, Inc. licenses these features and plugins to you under
+certain open source licenses (or aggregations of such licenses), which
+in a particular case may include the Eclipse Public License, the GNU
+Lesser General Public License, and/or certain other open source
+licenses. For precise licensing details, consult the corresponding
+source code, or contact Red Hat Legal Affairs, 1801 Varsity Drive,
+Raleigh NC 27606 USA.
+</p>
+</body>
+</html>
\ No newline at end of file
Property changes on: trunk/openshift/features/org.jboss.tools.openshift.express.test.feature/license.html
___________________________________________________________________
Added: svn:executable
+ *
Added: svn:mime-type
+ text/plain
Added: trunk/openshift/features/org.jboss.tools.openshift.express.test.feature/pom.xml
===================================================================
--- trunk/openshift/features/org.jboss.tools.openshift.express.test.feature/pom.xml (rev 0)
+++ trunk/openshift/features/org.jboss.tools.openshift.express.test.feature/pom.xml 2012-01-12 18:53:14 UTC (rev 37798)
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <parent>
+ <groupId>org.jboss.tools.openshift</groupId>
+ <artifactId>features</artifactId>
+ <version>2.3.0-SNAPSHOT</version>
+ </parent>
+ <groupId>org.jboss.tools.openshift.features</groupId>
+ <artifactId>org.jboss.tools.openshift.express.test.feature</artifactId>
+ <packaging>eclipse-feature</packaging>
+</project>
Property changes on: trunk/openshift/features/org.jboss.tools.openshift.express.test.feature/pom.xml
___________________________________________________________________
Added: svn:mime-type
+ text/plain
12 years, 12 months
JBoss Tools SVN: r37797 - trunk/openshift/features.
by jbosstools-commits@lists.jboss.org
Author: adietish
Date: 2012-01-12 13:52:52 -0500 (Thu, 12 Jan 2012)
New Revision: 37797
Added:
trunk/openshift/features/org.jboss.tools.openshift.express.test.feature/
Log:
[JBIDE-10622] initial commit, created new feature
12 years, 12 months
JBoss Tools SVN: r37796 - in trunk/openshift/tests/org.jboss.tools.openshift.express.test: .settings and 7 other directories.
by jbosstools-commits@lists.jboss.org
Author: adietish
Date: 2012-01-12 13:48:36 -0500 (Thu, 12 Jan 2012)
New Revision: 37796
Added:
trunk/openshift/tests/org.jboss.tools.openshift.express.test/.classpath
trunk/openshift/tests/org.jboss.tools.openshift.express.test/.project
trunk/openshift/tests/org.jboss.tools.openshift.express.test/.settings/
trunk/openshift/tests/org.jboss.tools.openshift.express.test/.settings/org.eclipse.jdt.core.prefs
trunk/openshift/tests/org.jboss.tools.openshift.express.test/.settings/org.eclipse.m2e.core.prefs
trunk/openshift/tests/org.jboss.tools.openshift.express.test/META-INF/
trunk/openshift/tests/org.jboss.tools.openshift.express.test/META-INF/MANIFEST.MF
trunk/openshift/tests/org.jboss.tools.openshift.express.test/build.properties
trunk/openshift/tests/org.jboss.tools.openshift.express.test/pom.xml
trunk/openshift/tests/org.jboss.tools.openshift.express.test/src/
trunk/openshift/tests/org.jboss.tools.openshift.express.test/src/org/
trunk/openshift/tests/org.jboss.tools.openshift.express.test/src/org/jboss/
trunk/openshift/tests/org.jboss.tools.openshift.express.test/src/org/jboss/tools/
trunk/openshift/tests/org.jboss.tools.openshift.express.test/src/org/jboss/tools/openshift/
trunk/openshift/tests/org.jboss.tools.openshift.express.test/src/org/jboss/tools/openshift/express/
trunk/openshift/tests/org.jboss.tools.openshift.express.test/src/org/jboss/tools/openshift/express/test/
Log:
[JBIDE-10613] inital commit
Added: trunk/openshift/tests/org.jboss.tools.openshift.express.test/.classpath
===================================================================
--- trunk/openshift/tests/org.jboss.tools.openshift.express.test/.classpath (rev 0)
+++ trunk/openshift/tests/org.jboss.tools.openshift.express.test/.classpath 2012-01-12 18:48:36 UTC (rev 37796)
@@ -0,0 +1,7 @@
+<?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/JavaSE-1.6"/>
+ <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="output" path="bin"/>
+</classpath>
\ No newline at end of file
Property changes on: trunk/openshift/tests/org.jboss.tools.openshift.express.test/.classpath
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added: trunk/openshift/tests/org.jboss.tools.openshift.express.test/.project
===================================================================
--- trunk/openshift/tests/org.jboss.tools.openshift.express.test/.project (rev 0)
+++ trunk/openshift/tests/org.jboss.tools.openshift.express.test/.project 2012-01-12 18:48:36 UTC (rev 37796)
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.jboss.tools.openshift.express.test</name>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.ManifestBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.SchemaBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.pde.PluginNature</nature>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ </natures>
+</projectDescription>
Property changes on: trunk/openshift/tests/org.jboss.tools.openshift.express.test/.project
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added: trunk/openshift/tests/org.jboss.tools.openshift.express.test/.settings/org.eclipse.jdt.core.prefs
===================================================================
--- trunk/openshift/tests/org.jboss.tools.openshift.express.test/.settings/org.eclipse.jdt.core.prefs (rev 0)
+++ trunk/openshift/tests/org.jboss.tools.openshift.express.test/.settings/org.eclipse.jdt.core.prefs 2012-01-12 18:48:36 UTC (rev 37796)
@@ -0,0 +1,8 @@
+#Tue Aug 16 13:32:00 CEST 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: trunk/openshift/tests/org.jboss.tools.openshift.express.test/.settings/org.eclipse.jdt.core.prefs
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added: trunk/openshift/tests/org.jboss.tools.openshift.express.test/.settings/org.eclipse.m2e.core.prefs
===================================================================
--- trunk/openshift/tests/org.jboss.tools.openshift.express.test/.settings/org.eclipse.m2e.core.prefs (rev 0)
+++ trunk/openshift/tests/org.jboss.tools.openshift.express.test/.settings/org.eclipse.m2e.core.prefs 2012-01-12 18:48:36 UTC (rev 37796)
@@ -0,0 +1,5 @@
+#Wed Jan 11 15:30:47 CET 2012
+activeProfiles=
+eclipse.preferences.version=1
+resolveWorkspaceProjects=true
+version=1
Property changes on: trunk/openshift/tests/org.jboss.tools.openshift.express.test/.settings/org.eclipse.m2e.core.prefs
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added: trunk/openshift/tests/org.jboss.tools.openshift.express.test/META-INF/MANIFEST.MF
===================================================================
--- trunk/openshift/tests/org.jboss.tools.openshift.express.test/META-INF/MANIFEST.MF (rev 0)
+++ trunk/openshift/tests/org.jboss.tools.openshift.express.test/META-INF/MANIFEST.MF 2012-01-12 18:48:36 UTC (rev 37796)
@@ -0,0 +1,12 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: OpenShift Test
+Bundle-SymbolicName: org.jboss.tools.openshift.express.test
+Bundle-Version: 2.3.0.qualifier
+Bundle-Vendor: JBoss by Red Hat
+Require-Bundle: org.jboss.tools.openshift.express.ui;bundle-version="2.3.0",
+ org.eclipse.core.runtime,
+ org.eclipse.core.resources;bundle-version="[3.7.100,4.0.0)",
+ org.eclipse.core.filesystem;bundle-version="1.3.100",
+ org.junit;bundle-version="[4.8.2,5.0.0)"
+Bundle-RequiredExecutionEnvironment: JavaSE-1.6
Property changes on: trunk/openshift/tests/org.jboss.tools.openshift.express.test/META-INF/MANIFEST.MF
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added: trunk/openshift/tests/org.jboss.tools.openshift.express.test/build.properties
===================================================================
--- trunk/openshift/tests/org.jboss.tools.openshift.express.test/build.properties (rev 0)
+++ trunk/openshift/tests/org.jboss.tools.openshift.express.test/build.properties 2012-01-12 18:48:36 UTC (rev 37796)
@@ -0,0 +1,6 @@
+source.. = src/
+output.. = bin/
+bin.includes = META-INF/,\
+ .
+src.includes = pom.xml,\
+ build.properties
Property changes on: trunk/openshift/tests/org.jboss.tools.openshift.express.test/build.properties
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added: trunk/openshift/tests/org.jboss.tools.openshift.express.test/pom.xml
===================================================================
--- trunk/openshift/tests/org.jboss.tools.openshift.express.test/pom.xml (rev 0)
+++ trunk/openshift/tests/org.jboss.tools.openshift.express.test/pom.xml 2012-01-12 18:48:36 UTC (rev 37796)
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <parent>
+ <groupId>org.jboss.tools.openshift</groupId>
+ <artifactId>tests</artifactId>
+ <version>2.3.0-SNAPSHOT</version>
+ </parent>
+ <groupId>org.jboss.tools.openshift.tests</groupId>
+ <artifactId>org.jboss.tools.openshift.express.test</artifactId>
+ <!-- TODO: if this plugin gets actual tests (rather than framework plugins on which other tests depend)
+ then change this to packaging=eclipse-test-plugin to make Tycho RUN the tests rather than just
+ compiling sources -->
+ <packaging>eclipse-test-plugin</packaging>
+</project>
Property changes on: trunk/openshift/tests/org.jboss.tools.openshift.express.test/pom.xml
___________________________________________________________________
Added: svn:mime-type
+ text/plain
12 years, 12 months
JBoss Tools SVN: r37795 - trunk/openshift/tests.
by jbosstools-commits@lists.jboss.org
Author: adietish
Date: 2012-01-12 13:47:49 -0500 (Thu, 12 Jan 2012)
New Revision: 37795
Added:
trunk/openshift/tests/org.jboss.tools.openshift.express.test/
Log:
[JBIDE-10613] inital commit
12 years, 12 months
JBoss Tools SVN: r37794 - trunk/openshift/tests.
by jbosstools-commits@lists.jboss.org
Author: adietish
Date: 2012-01-12 13:45:52 -0500 (Thu, 12 Jan 2012)
New Revision: 37794
Removed:
trunk/openshift/tests/org.jboss.tools.openshift.express.test/
Log:
[JBIDE-10613] inital commit
12 years, 12 months