JBoss Tools SVN: r21643 - branches/modular_build.
by jbosstools-commits@lists.jboss.org
Author: max.andersen(a)jboss.com
Date: 2010-04-23 12:48:54 -0400 (Fri, 23 Apr 2010)
New Revision: 21643
Modified:
branches/modular_build/
Log:
init branch with svnmerge.py info
Property changes on: branches/modular_build
___________________________________________________________________
Name: svnmerge-integrated
- /branches/ganymede:1-7797 /branches/ganymede/trunk:1-8005 /branches/jbosstools-2.1.x:1-7998,8009-8012,8078-8079
+ /trunk:1-21058 /branches/ganymede:1-7797 /branches/ganymede/trunk:1-8005 /branches/jbosstools-2.1.x:1-7998,8009-8012,8078-8079
14 years, 8 months
JBoss Tools SVN: r21642 - branches/modular_build.
by jbosstools-commits@lists.jboss.org
Author: nickboldt
Date: 2010-04-23 11:43:47 -0400 (Fri, 23 Apr 2010)
New Revision: 21642
Modified:
branches/modular_build/build.xml
Log:
allow build to be completely bootstrapped from a single file, build.xml; fetch sources if missing and CACHE THEM in common sttic dir
Modified: branches/modular_build/build.xml
===================================================================
--- branches/modular_build/build.xml 2010-04-23 15:42:33 UTC (rev 21641)
+++ branches/modular_build/build.xml 2010-04-23 15:43:47 UTC (rev 21642)
@@ -15,6 +15,9 @@
maven"
/>
+ <!-- svn root, including trunk or branch path -->
+ <property name="svn.root" value="http://anonsvn.jboss.org/repos/jbosstools/branches/modular_build" />
+
<!-- default maven version -->
<property name="maven.version" value="3.0-alpha-7" />
<!-- Configuration Ends -->
@@ -30,7 +33,7 @@
cd /home/nboldt/workspace36/jbosstools-modular_build; ant -DCOMPONENTS=tests,common,flow,jbpm
-->
- <target name="run" depends="init, genpoms, install" />
+ <target name="run" depends="init, get.sources, genpoms, install" />
<!-- override for local build -->
<condition property="isInHudson" value="true">
@@ -64,9 +67,30 @@
<delete dir="${java.io.tmpdir}/ant-contrib-1.0b2-bin.zip_" includeemptydirs="true" quiet="true" />
</target>
+ <target name="get.svnant" unless="svnant.jar.exists">
+ <property name="SVNANT_MIRROR" value="http://www.tigris.org/files/documents/906/46267" />
+ <!-- ant <get> does not work due to redirection; on Windows just download this file manually -->
+ <exec executable="wget" dir="${COMMON_TOOLS}">
+ <arg line="${SVNANT_MIRROR}/svnant-1.3.0.zip --no-clobber" />
+ </exec>
+ <touch file="${COMMON_TOOLS}/svnant-1.3.0.zip" />
+ <mkdir dir="${java.io.tmpdir}/svnant-1.3.0.zip_" />
+ <unzip src="${COMMON_TOOLS}/svnant-1.3.0.zip" dest="${java.io.tmpdir}/svnant-1.3.0.zip_" overwrite="true" />
+ <copy todir="${COMMON_TOOLS}" failonerror="true">
+ <fileset dir="${java.io.tmpdir}/svnant-1.3.0.zip_/svnant-1.3.0/lib/" includes="*.jar" />
+ </copy>
+ <delete dir="${java.io.tmpdir}/svnant-1.3.0.zip_" includeemptydirs="true" quiet="true" />
+ </target>
+
<target name="init" depends="local">
<property name="WORKINGDIR" value="${basedir}" />
<!-- https://jira.jboss.org/jira/browse/JBQA-3313 Use static, shared space outside workspace, instead of working directly in the workspace -->
+ <condition property="WORKINGDIR" value="/home/hudson/static_build_env/jbds/tools/sources" else="${basedir}">
+ <available file="/home/hudson/static_build_env/jbds" type="dir" />
+ </condition>
+ <mkdir dir="${WORKINGDIR}" />
+ <echo level="info">WORKINGDIR = ${WORKINGDIR}</echo>
+
<condition property="COMMON_TOOLS"
value="/home/hudson/static_build_env/jbds/tools"
else="${WORKINGDIR}/../tools"
@@ -74,7 +98,7 @@
<available file="/home/hudson/static_build_env/jbds" type="dir" />
</condition>
<mkdir dir="${COMMON_TOOLS}" />
- <echo>COMMON_TOOLS = ${COMMON_TOOLS}</echo>
+ <echo level="info">COMMON_TOOLS = ${COMMON_TOOLS}</echo>
<available file="${COMMON_TOOLS}/ant-contrib.jar" type="file" property="ant-contrib.jar.exists" />
<antcall target="get.ant-contrib" />
@@ -84,6 +108,16 @@
</classpath>
</taskdef>
+ <available file="${COMMON_TOOLS}/svnant.jar" type="file" property="svnant.jar.exists" />
+ <antcall target="get.svnant" />
+ <taskdef resource="org/tigris/subversion/svnant/svnantlib.xml">
+ <classpath>
+ <pathelement location="${COMMON_TOOLS}/svnant.jar" />
+ <pathelement location="${COMMON_TOOLS}/svnkit.jar" />
+ <pathelement location="${COMMON_TOOLS}/svnClientAdapter.jar" />
+ </classpath>
+ </taskdef>
+
<property name="MAVEN_MIRROR" value="http://mirror.csclub.uwaterloo.ca/apache/maven/binaries" />
<get usetimestamp="true"
dest="${COMMON_TOOLS}/apache-maven-${maven.version}-bin.tar.gz"
@@ -97,11 +131,94 @@
<chmod perm="755" file="${COMMON_TOOLS}/apache-maven-${maven.version}/bin/mvn" />
</target>
+ <target name="get.sources" description="if sources not already on disk, fetch them">
+ <!-- = = = = = = = = = = = = = = = = =
+ COMPONENT: component to fetch or update
+ op: up (update) or co (checkout)
+ = = = = = = = = = = = = = = = = = -->
+ <macrodef name="svn.fetch">
+ <attribute name="COMPONENT" />
+ <attribute name="op" />
+ <sequential>
+ <!-- check out or update -->
+ <if>
+ <equals arg1="@{op}" arg2="up" />
+ <then>
+ <svn javahl="false" svnkit="true">
+ <update dir="@{COMPONENT}" />
+ </svn>
+ </then>
+ <else>
+ <echo>Fetch sources from ${svn.root}/@{COMPONENT} into ${WORKINGDIR}/@{COMPONENT}</echo>
+ <svn javahl="false" svnkit="true">
+ <checkout url="${svn.root}/@{COMPONENT}" destpath="${WORKINGDIR}/@{COMPONENT}" />
+ </svn>
+ </else>
+ </if>
+
+ <!-- Store svn info so we can compare it later and thus not need to update or checkout every time -->
+ <svn javahl="false" svnkit="true">
+ <info target="@{COMPONENT}" propprefix="svn.info.@{COMPONENT}" />
+ </svn>
+ <echo file="svn.info-(a){COMPONENT}.txt">svn.info.(a){COMPONENT}.rev = ${svn.info.(a){COMPONENT}.rev}
+</echo>
+ </sequential>
+ </macrodef>
+
+ <!-- check for each component dir in ${WORKINGDIR}; if not found, fetch -->
+ <for param="COMPONENT" list="${COMPONENTS}" delimiter=",
+ ">
+ <sequential>
+ <if>
+ <not>
+ <available file="${WORKINGDIR}/@{COMPONENT}" type="dir" />
+ </not>
+ <then>
+ <svn.fetch component="@{COMPONENT}" op="co" />
+ </then>
+ <else>
+ <if>
+ <available file="svn.info-(a){COMPONENT}.txt" type="file" />
+ <then>
+ <property file="svn.info-(a){COMPONENT}.txt" />
+ <!-- check svn info; if new version found, svn up -->
+ <svn javahl="false" svnkit="true">
+ <info target="@{COMPONENT}" propprefix="svn.info.(a){COMPONENT}.check" />
+ </svn>
+ <if>
+ <not>
+ <equals arg1="${svn.info.(a){COMPONENT}.rev}"
+ arg2="${svn.info.(a){COMPONENT}.check.rev}"
+ />
+ </not>
+ <then>
+ <svn.fetch component="@{COMPONENT}" op="up" />
+ </then>
+ </if>
+ </then>
+ <else>
+ <svn.fetch component="@{COMPONENT}" op="up" />
+ </else>
+ </if>
+ </else>
+ </if>
+ </sequential>
+ </for>
+
+ <!-- also get files required to bootstrap the build -->
+ <for param="BOOTSTRAP" list="parent-pom.xml, genpom.xml, build.xml" delimiter=",
+ ">
+ <sequential>
+ <get src="${svn.root}/@{BOOTSTRAP}" dest="${WORKINGDIR}/@{BOOTSTRAP}" usetimestamp="true" />
+ </sequential>
+ </for>
+ </target>
+
<target name="genpoms">
<for param="COMPONENT" list="${COMPONENTS}" delimiter=",
">
<sequential>
- <!-- TODO: check if poms exist already; if not, generate; if so, use existing -->
+ <!-- If poms already exist, DO NOT OVERWRITE unless overwrite.existing.pom.xml=true -->
<ant antfile="genpom.xml" target="run">
<property name="COMPONENT" value="@{COMPONENT}" />
</ant>
@@ -238,5 +355,29 @@
</deploy>
-->
</target>
+
+ <!-- ************************************ TESTS ************************************ -->
+
+ <target name="test.get.sources"
+ depends="init"
+ description="manual test to verify get.sources works to fetch, then update the tests component"
+ >
+ <var name="COMPONENTS" unset="true" />
+ <var name="COMPONENTS" value="tests" />
+ <delete dir="tests" includeemptydirs="true" />
+ <echo>Full checkout:</echo>
+ <antcall target="get.sources" />
+ <echo>----------------------------------</echo>
+
+ <delete file="svn.info-tests.txt" />
+ <echo>Full update:</echo>
+ <antcall target="get.sources" />
+ <echo>----------------------------------</echo>
+
+ <echo>Check info, but do not update:</echo>
+ <antcall target="get.sources" />
+ <echo>----------------------------------</echo>
+
+ </target>
+
</project>
-
14 years, 8 months
JBoss Tools SVN: r21641 - branches/modular_build.
by jbosstools-commits@lists.jboss.org
Author: nickboldt
Date: 2010-04-23 11:42:33 -0400 (Fri, 23 Apr 2010)
New Revision: 21641
Modified:
branches/modular_build/genpom.xml
Log:
use instead of 0.0.0 for update site pom version; exclude **/releng/** from pomgen
Modified: branches/modular_build/genpom.xml
===================================================================
--- branches/modular_build/genpom.xml 2010-04-23 14:53:04 UTC (rev 21640)
+++ branches/modular_build/genpom.xml 2010-04-23 15:42:33 UTC (rev 21641)
@@ -5,7 +5,7 @@
<property name="COMPONENT" value="trunk" />
<property name="pomVersion" value="0.0.1-SNAPSHOT" />
<property name="dirsToExclude"
- value="**/*.sdk.*, **/doc*, **/download.jboss.org, **/sampleprojects/**, **/util/**, **/test, **/builders, **/contrib, **/releng/**, ."
+ value="**/*.sdk.*, **/doc*, **/releng/**, **/download.jboss.org, **/sampleprojects/**, **/util/**, **/test, **/builders, **/contrib, **/releng/**, ."
/>
<property name="overwrite.existing.pom.xml" value="false" />
<!-- Configuration Ends -->
@@ -158,12 +158,11 @@
<property name="dir" value="@{dir}" />
</antcallback>
<if>
- <!-- TODO: calculate id and version for an update site so just set them to defaults -->
<equals arg1="${artifactType}" arg2="eclipse-update-site" />
<then>
<var name="artifactId" unset="true" />
<basename property="artifactId" file="@{dir}" />
- <var name="artifactVersion" value="0.0.0" />
+ <var name="artifactVersion" value="${pomVersion}" />
</then>
<else>
<var name="artifactId" unset="true" />
14 years, 8 months
JBoss Tools SVN: r21640 - trunk/maven/docs/maven_reference_guide/en-US.
by jbosstools-commits@lists.jboss.org
Author: smukhina
Date: 2010-04-23 10:53:04 -0400 (Fri, 23 Apr 2010)
New Revision: 21640
Modified:
trunk/maven/docs/maven_reference_guide/en-US/tasks.xml
Log:
TOOLSDOC-24
added Existing Maven Projects Import for Portlet projects
Modified: trunk/maven/docs/maven_reference_guide/en-US/tasks.xml
===================================================================
--- trunk/maven/docs/maven_reference_guide/en-US/tasks.xml 2010-04-23 14:39:32 UTC (rev 21639)
+++ trunk/maven/docs/maven_reference_guide/en-US/tasks.xml 2010-04-23 14:53:04 UTC (rev 21640)
@@ -10,13 +10,13 @@
<keyword>Seam</keyword>
</keywordset>
</chapterinfo>
- <title>Tasks</title>
+ <title>JBoss Maven Integration Tasks</title>
<para>This chapter will provide you with the information on how to create mavenized projects and
- import already existing maven project with JBoss Maven Tool.</para>
+ import already existing maven project with <property>JBoss Maven Tool</property>.</para>
<section id="create_mavenized_project">
<title>Creating Maven ready Seam project</title>
- <para>Maven Integration makes the Seam Wizard capable of creating Maven ready projects to
- let Maven get the libraries instead of using the Seam runtime.</para>
+ <para><property>Maven Integration</property> makes the <property>Seam Wizard</property> capable of creating <property>Maven</property> ready projects to
+ let <property>Maven</property> get the libraries instead of using the <property>Seam</property> runtime.</para>
<para>To create a mavenized Seam project you should perform the following steps:</para>
<itemizedlist>
<listitem>
@@ -52,10 +52,10 @@
</listitem>
<listitem>
<para>On the <property>JBoss M2 capabilities</property> page you'll be prompted
- to add the following maven properties: groupId, artifactId, version, packaging,
- name and description. Here it's possible to set a maven version of Seam and
- also decide whether to remove WTP classpath containers (where the path starts
- with org.eclipse.jst). </para>
+ to add the following maven properties: <property>groupId</property>, <property>artifactId</property>, <property>version</property>, <property>packaging</property>,
+ <property>name</property> and <property>description</property>. Here it's possible to set a <property>Maven</property> version of <property>Seam</property> and
+ also decide whether to remove <property>WTP</property> classpath containers (where the path starts
+ with <property>org.eclipse.jst</property>). </para>
<figure>
<title>Adjusting JBoss M2 Capabilities</title>
<mediaobject>
@@ -67,10 +67,10 @@
</figure>
</listitem>
<listitem>
- <para> On the <property>JSF Capabilities</property> page you can choose Maven as
- libraries provider. This is possible when you use Maven JSF 1.2 Libraries as
- type of JSF Implementing Library. Also it gives you capability to edit
- Dependencies and Exclusions for the mavenized Seam project directly from the
+ <para> On the <property>JSF Capabilities</property> page you can choose <property>Maven</property> as
+ libraries provider. This is possible when you use <property>Maven JSF 1.2 Libraries</property> as
+ type of <property>JSF Implementing Library</property>. Also it gives you capability to edit
+ <property>Dependencies</property> and <property>Exclusions</property> for the mavenized <property>Seam</property> project directly from the
wizard. </para>
<figure>
<title>Using JSF Implementation libraries provided by Maven</title>
@@ -83,7 +83,7 @@
</figure>
</listitem>
<listitem>
- <para>On the <property>Seam Facet</property> page configure the Seam Facet settings
+ <para>On the <property>Seam Facet</property> page configure the <property>Seam Facet</property> settings
and click <emphasis>
<property>Finish</property>:</emphasis></para>
<figure>
@@ -96,8 +96,8 @@
</figure>
</listitem>
</itemizedlist>
- <para>The organized Seam project contains five projects with the Maven nature, builder,
- Maven classpath and the <emphasis>
+ <para>The organized <property>Seam</property> project contains five projects with the <property>Maven</property> nature, builder,
+ <property>Maven</property> classpath and the <emphasis>
<property>pom.xml</property></emphasis> files added: projectname, projectname-ear,
projectname-ejb, projectname-parent and projectname-test.</para>
<figure>
@@ -115,8 +115,8 @@
<para>Select in main <property>Eclipse</property> menu <emphasis><property>File > New >
Other</property></emphasis>. Then click <emphasis><property>Web > Dynamic Web Project</property></emphasis>. The <property>New Dynamic
Web Project</property> wizard appears. In this wizard you should specify <property>Project name</property>, <property>Target
- Runtime</property> and <property>Dynamic Web Module</property>. More about creating Web project with Portlets you can
- find <ulink url="http://download.jboss.org/jbosstools/nightly-docs/en/jboss_portal_tools_r...">here</ulink>. </para>
+ Runtime</property> and <property>Dynamic Web Module</property>. More about creating <property>Web</property> project with <property>Portlets</property> you can
+ find in <ulink url="http://download.jboss.org/jbosstools/nightly-docs/en/jboss_portal_tools_r...">JBoss Portlet Tools User Guide</ulink>. </para>
<figure>
<title>New Dynamic Web Project wizard</title>
<mediaobject>
@@ -326,7 +326,7 @@
<section id="archetypes_links">
<title>Relevant Resources Links</title>
<para>You can find screencast from <property>Snjezana Peco</property> on <ulink url="http://screencast.com/t/OGMxMmFk">http://screencast.com/t/OGMxMmFk</ulink> . </para>
- <para>General information about <property>Maven Archetypes</property> may be found <ulink url="http://maven.apache.org/guides/introduction/introduction-to-archetypes.html">here</ulink> and details about <property>Portlets Archetypes</property> are located <ulink url="http://www.jboss.org/files/portletbridge/docs/1.0.0.CR2/en/html_single/in...">here</ulink>.
+ <para>General information about <property>Maven Archetypes</property> may be found on <ulink url="http://maven.apache.org/guides/introduction/introduction-to-archetypes.html">Introduction to Archetypes page</ulink> and details about <property>Portlets Archetypes</property> are located on <ulink url="http://www.jboss.org/files/portletbridge/docs/1.0.0.CR2/en/html_single/in...">Maven Portlet Archetypes page</ulink>.
</para>
</section>
@@ -338,7 +338,7 @@
<section id="maven_project_import">
<title>Existing Maven Projects Import</title>
- <section id="import_maven_project">
+ <section id="import_seam_project">
<title>Seam Projects Import</title>
<para>Maven Integration includes the Seam Maven configurator which is called when importing
a project, changing <emphasis>
@@ -363,19 +363,35 @@
<para>other required facets (Web Module, Java, JSF, etc.)</para>
</listitem>
</itemizedlist>
- <para>The Maven Integration Tool will try to define Seam Runtime for the project. If it find that the version from pom.xml matches a version of a Seam runtime, a default runtime for the Seam facet exists or there is a non-default runtime matching the Seam facet then runtime will be set. Otherwise no any Seam runtime will be set and you need manually set it up.
+ <para>The Maven Integration Tool will try to define <property>Seam Runtime</property> for the project. If it find that the version from <property>pom.xml</property> matches a version of a <property>Seam Runtime</property>, a default runtime for the <property>Seam </property>facet exists or there is a non-default runtime matching the <property>Seam</property> facet then the runtime will be set. Otherwise no any <property>Seam</property> runtime will be set and you need manually set it up.
</para>
- <para>Seam configurator recognizes the Seam artifacts in the following way: the view folder
- is a web content folder from the WAR project, the source folder is the first Eclipse
+ <para>The <property>Seam</property> configurator recognizes <property>Seam</property> artifacts in the following way: the view folder
+ is a web content folder from the <property>WAR</property> project, the source folder is the first <property>Eclipse</property>
source folder. If there is a folder containing "hot" in the name, it will be
chosen as the action source folder. Package is the first package that has children or
doesn't have any subpackage. </para>
- <para>Configuring the Seam when importing a Maven project as well as a Seam Runtime, Seam
+ <para>Configuring the <property>Seam</property> when importing a <property>Maven</property> project as well as <property>Seam Runtime</property>, <property>Seam</property>
artifacts and some facets could be suspended in the <link linkend="preferencespage">JBoss Maven Integration preferences</link>
(<emphasis>
<property>Window > Preferences > JBoss Tools > JBoss Maven
Integration</property></emphasis>).</para>
</section>
+ <section>
+ <title>Portlet Projects Import</title>
+ <para>The <property>Maven Integration Tool</property> contains <property>Portlet Maven</property> configurator, which is called when you import a <property>Maven Portlet</property> project, call <emphasis><property>Maven > Update Project Configuration</property></emphasis> in <property>Project Context</property> menu or change a <property>pom.xml</property> file. This configurator sets up <property>Project Facets</property> picking up information from <property>pom.xml</property> in following way:
+ </para>
+ <itemizedlist>
+ <listitem><para>If the <property>pom.xml</property> file has a <property>portlet-api</property> dependency, the <property>JBoss Core Portlet</property> facet will be added to <property>Project Facets</property>.
+ </para></listitem>
+ <listitem><para>If the <property>pom.xml</property> file contains <property>portletbridge</property> dependencies, the <property>JBoss JSF Portlet</property> facet appends to <property>Project Facets</property>.
+ </para></listitem>
+ <listitem><para>If the project dependencies include <property>Seam</property>, <property>JBoss Core Portlet</property> and <property>JBoss JSF Portlet</property> facet, the <property>JBoss Seam Portlet</property> facet will be added to <property>Project Facets</property>. Also the <property>Seam Configurator</property> will be called to configure <property>Seam</property> settings.
+ </para></listitem>
+ </itemizedlist>
+ <para>Also you can change settings for <property>Portlet Maven</property>configurator on <link linkend="preferencespage">JBoss Maven Integration preference page </link>(<emphasis><property>Window > Preferences > JBoss Tools > JBoss Maven Integration</property></emphasis> ).
+ </para>
+ </section>
+
</section>
</chapter>
14 years, 8 months
JBoss Tools SVN: r21639 - in trunk/maven/docs/maven_reference_guide/en-US: images and 1 other directories.
by jbosstools-commits@lists.jboss.org
Author: smukhina
Date: 2010-04-23 10:39:32 -0400 (Fri, 23 Apr 2010)
New Revision: 21639
Added:
trunk/maven/docs/maven_reference_guide/en-US/images/maven_library_providers/
trunk/maven/docs/maven_reference_guide/en-US/images/maven_library_providers/hibernateLibraryProvider.png
trunk/maven/docs/maven_reference_guide/en-US/images/maven_library_providers/jsfLibraryProviders.png
trunk/maven/docs/maven_reference_guide/en-US/images/maven_library_providers/portletLibraryProvider.png
trunk/maven/docs/maven_reference_guide/en-US/images/maven_library_providers/portletbridgeLibraryProvider.png
Modified:
trunk/maven/docs/maven_reference_guide/en-US/references.xml
Log:
TOOLSDOC-40 - Description to library providers is added
Added: trunk/maven/docs/maven_reference_guide/en-US/images/maven_library_providers/hibernateLibraryProvider.png
===================================================================
(Binary files differ)
Property changes on: trunk/maven/docs/maven_reference_guide/en-US/images/maven_library_providers/hibernateLibraryProvider.png
___________________________________________________________________
Name: svn:executable
+ *
Name: svn:mime-type
+ application/octet-stream
Added: trunk/maven/docs/maven_reference_guide/en-US/images/maven_library_providers/jsfLibraryProviders.png
===================================================================
(Binary files differ)
Property changes on: trunk/maven/docs/maven_reference_guide/en-US/images/maven_library_providers/jsfLibraryProviders.png
___________________________________________________________________
Name: svn:executable
+ *
Name: svn:mime-type
+ application/octet-stream
Added: trunk/maven/docs/maven_reference_guide/en-US/images/maven_library_providers/portletLibraryProvider.png
===================================================================
(Binary files differ)
Property changes on: trunk/maven/docs/maven_reference_guide/en-US/images/maven_library_providers/portletLibraryProvider.png
___________________________________________________________________
Name: svn:executable
+ *
Name: svn:mime-type
+ application/octet-stream
Added: trunk/maven/docs/maven_reference_guide/en-US/images/maven_library_providers/portletbridgeLibraryProvider.png
===================================================================
(Binary files differ)
Property changes on: trunk/maven/docs/maven_reference_guide/en-US/images/maven_library_providers/portletbridgeLibraryProvider.png
___________________________________________________________________
Name: svn:executable
+ *
Name: svn:mime-type
+ application/octet-stream
Modified: trunk/maven/docs/maven_reference_guide/en-US/references.xml
===================================================================
--- trunk/maven/docs/maven_reference_guide/en-US/references.xml 2010-04-23 13:25:40 UTC (rev 21638)
+++ trunk/maven/docs/maven_reference_guide/en-US/references.xml 2010-04-23 14:39:32 UTC (rev 21639)
@@ -1,9 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<chapter id="referencies">
<title>References</title>
- <section id="mavenintegrationfacets">
- <title>Jboss Maven Integration facet</title>
- <para><property>Jboss Maven Integration</property> facet is a <property>Project Facet</property> which add <property>Maven</property> capabilities to the target project. This facet adds a <property>Maven</property> nature, builder and classpath container. Also <property>Maven Integration</property> facet can detect <property>EJB</property>, <property>WAR</property> or <property>EAR</property> facet and add corresponding maven plugins for them. Also <property>Maven Integration</property> facet provides the library providers. More about <property>Maven Integration</property> library providers you can read here.
+ <section id="mavenintegrationfacet">
+ <title>JBoss Maven Integration Facet</title>
+ <para><property>JBoss Maven Integration</property> facet is a <property>Project Facet</property> which adds <property>Maven</property> capabilities to the target project. This facet adds a <property>Maven</property> nature, builder and classpath container. Also <property>Maven Integration</property> facet can detect <property>EJB</property>, <property>WAR</property> or <property>EAR</property> facet and add corresponding maven plugins for them. Also <property>Maven Integration</property> facet provides the library providers. More about <property>Maven Integration</property> library providers you can read in the <link linkend="libraryproviders">Maven Library Providers chapter</link>.
<figure>
<title>JBoss Maven Integration facet</title>
<mediaobject>
@@ -19,10 +19,10 @@
<section id="preferencespage">
<title>JBoss Maven Integration preference page</title>
- <para>To adjust <property>Maven</property> project import setting for <property>Jboss Tools</property> projects you need open <property>Preferences</property> dialog by clicking <emphasis><property>Window > Preferences</property></emphasis> and select <emphasis><property>JBoss Tools >Jboss Maven Integration</property></emphasis>. This page provides configuration for <property>Seam</property>, <property>JSF</property> and <property>Portlet</property> projects import.
+ <para>To adjust <property>Maven</property> project import settings for <property>JBoss Tools</property> projects you need to open <property>Preferences</property> dialog by clicking <emphasis><property>Window > Preferences</property></emphasis> and select <emphasis><property>JBoss Tools >JBoss Maven Integration</property></emphasis>. This page provides configuration for <property>Seam</property>, <property>JSF</property> and <property>Portlet</property> projects import.
</para>
<figure>
- <title>JBoss Maven Integration preference page</title>
+ <title>JBoss Maven Integration Preference Page</title>
<mediaobject>
<imageobject>
<imagedata fileref="images/references/JBossMavenIntegrationPreferencePage.png"/>
@@ -30,7 +30,7 @@
</mediaobject>
</figure>
- <para>On the Jboss Maven Integration preferences page the following preferences are available:
+ <para>On the JBoss Maven Integration preferences page the following preferences are available:
</para>
<table>
<title>JBoss Maven Integration Preferences</title>
@@ -50,7 +50,7 @@
<tbody>
<row>
<entry><para>Configure Seam when importing Maven projects </para></entry>
- <entry><para>If on,the Maven Integration Tool starts to check Seam dependencies and switch on the Seam Configurator for existing Maven projects import.</para>
+ <entry><para>If on, the Maven Integration Tool starts to check Seam dependencies and switch on the Seam Configurator for existing Maven projects import.</para>
</entry>
<entry><para>On</para></entry>
</row>
@@ -60,7 +60,7 @@
<entry><para>On</para></entry>
</row>
<row>
- <entry><para>Configure Seam Artifacts(view folder, model source folder and package...)</para>
+ <entry><para>Configure Seam Artifacts (view folder, model source folder and package...)</para>
</entry>
<entry><para>If the option is checked, the Seam configurator will start to recognize Seam Artifacts during importing Seam Maven project.
@@ -109,7 +109,7 @@
</table>
</section>
- <section>
+ <section id="archetypes">
<title>Maven Archetypes compatible with JBoss Tools</title>
<para>Also <property>JBoss Maven Integration Tool</property> contains <property>Maven Archetypes</property> adapted to <property>JBoss Tools</property>. You can <link linkend="maven_archetype">use a provided archetype to get a ready to work project</link> and deploy the generated <property>WAR</property> to the <property>JBoss server</property>.
</para>
@@ -167,7 +167,243 @@
</table>
</section>
+ <section id="libraryproviders">
+ <title>Maven Library Providers </title>
+ <para>When selecting a <property>Maven Integration</property> facet on the <property>Project Facets</property> page <property>Maven Library</property> providers appears.</para>
+ <para><property>JBoss Maven Integration Tool</property> provides <property>JSF</property>, <property>Seam</property>, <property>Hibernate</property> and <property>Portlets Libraries</property>. These libraries are taken from <property>Maven Repositories</property> provided by <property>JBoss Maven Integration Tool</property> and will be added as dependencies to the <property>pom.xml</property>.
+ </para>
+ <section id="mavenjsflibraries">
+ <title>Maven JSF Libraries </title>
+ <para>This provider is available when <property>JBoss Maven Integration</property> and <property>JavaServer Faces</property> facets are selected. </para>
+ <figure>
+ <title>Maven JSF Library Provider</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/maven_library_providers/jsfLibraryProviders.png"/>
+ </imageobject>
+
+ </mediaobject>
+ </figure>
+ <para>The following libraries can be used: </para>
+ <table>
+ <title>Maven JSF Libraries </title>
+ <tgroup cols="2">
+ <colspec colnum="1" align="left" colwidth="2*"/>
+ <colspec colnum="2" colwidth="4*"/>
+ <thead>
+ <row>
+ <entry>Type </entry>
+ <entry>Dependencies </entry>
+
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry><para>Maven JSF 1.1 Libraries</para>
+ </entry>
+ <entry>
+ <itemizedlist>
+ <listitem><para>javax.faces:jsf-api:1.1_02</para></listitem>
+ <listitem><para>javax.faces:jsf-impl:1.1_02</para></listitem>
+ </itemizedlist>
+
+ </entry>
+ </row>
+ <row>
+ <entry>
+ <para>Maven JSF 1.2 Libraries</para>
+ </entry>
+ <entry>
+ <itemizedlist>
+ <listitem><para>javax.faces:jsf-api:1.2-b19</para></listitem>
+ <listitem><para>javax.faces:jsf-impl:1.2-b19</para> </listitem>
+ </itemizedlist>
+ </entry>
+
+ </row>
+
+ </tbody>
+ </tgroup>
+
+ </table>
+
+ </section>
+ <section id="mavenhibernatelibraries">
+ <title>Maven Hibernate Libraries </title>
+ <para>This provider appears when <property>JBoss Maven Integration</property> facet and <property>Java Persistence</property> are selected. </para>
+ <figure>
+ <title>Maven Hibernate Library Provider</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/maven_library_providers/hibernateLibraryProvider.png"/>
+ </imageobject>
+
+ </mediaobject>
+ </figure>
+ <para>The following libraries can be used: </para>
+ <table>
+ <title>Maven Hibernate Libraries </title>
+ <tgroup cols="2">
+ <colspec colnum="1" align="left" colwidth="2*"/>
+ <colspec colnum="2" colwidth="4*"/>
+ <thead>
+ <row>
+ <entry>Type </entry>
+ <entry>Dependencies </entry>
+
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry><para>Hibernate 3.3.2 Libraries </para>
+ </entry>
+ <entry>
+ <itemizedlist>
+ <listitem><para>org.hibernate:hibernate-core:3.3.2.GA
+ </para></listitem>
+ <listitem><para>org.hibernate:hibernate-annotations:3.4.0.GA
+ </para></listitem>
+ <listitem><para>org.hibernate:hibernate-entitymanager:3.4.0.GA
+ </para></listitem>
+ <listitem><para>org.hibernate:hibernate-validator:3.1.0.GA
+ </para></listitem>
+ </itemizedlist>
+
+ </entry>
+ </row>
+
+ </tbody>
+ </tgroup>
+
+ </table>
+ </section>
+ <section id="mavencoreportletslibraries">
+ <title>Maven Core Portlets Libraries </title>
+ <para>You can use <property>Maven Portlet 1.0/2.0 Libraries</property> provider when <property>JBoss Maven Integration</property> facet is selected simultaneously with <property>JBoss Core Portlet</property> facet on the <property>Project Facets</property> page. </para>
+ <figure>
+ <title>Maven Portlets Library Provider</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/maven_library_providers/portletLibraryProvider.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <para>The following libraries can be used:</para>
+ <table>
+ <title>Maven Core Portlets Libraries </title>
+ <tgroup cols="2">
+ <colspec colnum="1" align="left" colwidth="2*"/>
+ <colspec colnum="2" colwidth="4*"/>
+ <thead>
+ <row>
+ <entry>Type </entry>
+ <entry>Dependencies </entry>
+
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry><para>Maven Portlet 1.0 Libraries</para>
+ </entry>
+ <entry>
+ <itemizedlist>
+ <listitem><para>javax.portlet:portlet-api:1.0
+
+ </para></listitem>
+
+ </itemizedlist>
+
+ </entry>
+ </row>
+ <row>
+ <entry><para>Maven Portlet 2.0 Libraries </para></entry>
+ <entry>
+ <itemizedlist>
+ <listitem><para>javax.portlet:portlet-api:1.0 </para></listitem>
+ </itemizedlist>
+ </entry>
+ </row>
+
+ </tbody>
+ </tgroup>
+
+ </table>
+ </section>
+ <section id="mavenportletbridgelibraries">
+ <title>Maven Portletbridge Libraries </title>
+ <para>The <property>Maven Portletbridge Library</property> provider appears when you select <property>JBoss Maven Integration</property> and <property>JBoss JSF Portlet</property> facets.
+ </para>
+ <figure>
+ <title>Maven Portletbridge Library Provider</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/maven_library_providers/portletbridgeLibraryProvider.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <para>The following libraries can be used:</para>
+ <table>
+ <title>Maven Portletbridge Libraries </title>
+ <tgroup cols="2">
+ <colspec colnum="1" align="left" colwidth="2*"/>
+ <colspec colnum="2" colwidth="4*"/>
+ <thead>
+ <row>
+ <entry>Type </entry>
+ <entry>Dependencies </entry>
+
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry><para>Maven Portletbridge 2.0.0 ALPHA Libraries </para>
+ </entry>
+ <entry>
+ <itemizedlist>
+ <listitem><para>org.jboss.portletbridge:portletbridge-api:2.0.0.ALPHA
+ </para>
+ </listitem>
+ <listitem><para>org.jboss.portletbridge:portletbridge-impl:2.0.0.ALPHA
+ </para></listitem>
+
+ </itemizedlist>
+
+ </entry>
+ </row>
+ <row>
+ <entry><para>Maven Portletbridge 2.0.0 ALPHA Libraries with Dependencies
+ </para></entry>
+ <entry>
+ <itemizedlist>
+ <listitem><para>javax.portlet:portlet-api:1.0</para> </listitem>
+ <listitem><para>org.jboss.portletbridge:portletbridge-api:2.0.0.ALPHA</para></listitem>
+ <listitem><para>org.jboss.portletbridge:portletbridge-impl:2.0.0.ALPHA</para></listitem>
+ <listitem><para>org.richfaces.ui:richfaces-ui:3.3.1.GA</para></listitem>
+ <listitem><para>org.richfaces.framework:richfaces-api:3.3.1.GA</para></listitem>
+ <listitem><para>org.richfaces.framework:richfaces-impl:3.3.1.GA</para></listitem>
+ <listitem><para>com.sun.facelets:jsf-facelets:1.1.15.B1</para></listitem>
+ </itemizedlist>
+
+ </entry>
+ </row>
+
+ </tbody>
+ </tgroup>
+
+ </table>
+ </section>
+
+
+
+
+ </section>
+ <section>
+ <title>See Also </title>
+ <para>On <ulink url="http://community.jboss.org/wiki/PortletFacetLibraries">PortletFacetLibraries JBoss Tools Wiki article</ulink> you can find some extra information about <property>Portlets Library Providers</property>. </para>
+ </section>
+
+
</chapter>
\ No newline at end of file
14 years, 8 months
JBoss Tools SVN: r21638 - branches/jbosstools-3.1.x/esb/plugins/org.jboss.tools.esb.core/resources/meta.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2010-04-23 09:25:40 -0400 (Fri, 23 Apr 2010)
New Revision: 21638
Modified:
branches/jbosstools-3.1.x/esb/plugins/org.jboss.tools.esb.core/resources/meta/esb-actions.meta
Log:
https://jira.jboss.org/jira/browse/JBIDE-6201
Modified: branches/jbosstools-3.1.x/esb/plugins/org.jboss.tools.esb.core/resources/meta/esb-actions.meta
===================================================================
--- branches/jbosstools-3.1.x/esb/plugins/org.jboss.tools.esb.core/resources/meta/esb-actions.meta 2010-04-23 13:21:49 UTC (rev 21637)
+++ branches/jbosstools-3.1.x/esb/plugins/org.jboss.tools.esb.core/resources/meta/esb-actions.meta 2010-04-23 13:25:40 UTC (rev 21638)
@@ -192,8 +192,9 @@
<Constraint loader="ListString">
<value/>
<value name="NewProcessInstanceCommand"/>
- <value name="StartProcessCommand"/>
+ <value name="StartProcessInstanceCommand"/>
<value name="CancelProcessInstanceCommand"/>
+ <value name="GetProcessInstanceVariablesCommand"/>
</Constraint>
<Editor name="ListString"/>
</XModelAttribute>
14 years, 8 months
JBoss Tools SVN: r21637 - trunk/esb/plugins/org.jboss.tools.esb.core/resources/meta.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2010-04-23 09:21:49 -0400 (Fri, 23 Apr 2010)
New Revision: 21637
Modified:
trunk/esb/plugins/org.jboss.tools.esb.core/resources/meta/esb-actions.meta
Log:
https://jira.jboss.org/jira/browse/JBIDE-6201
Modified: trunk/esb/plugins/org.jboss.tools.esb.core/resources/meta/esb-actions.meta
===================================================================
--- trunk/esb/plugins/org.jboss.tools.esb.core/resources/meta/esb-actions.meta 2010-04-23 13:08:45 UTC (rev 21636)
+++ trunk/esb/plugins/org.jboss.tools.esb.core/resources/meta/esb-actions.meta 2010-04-23 13:21:49 UTC (rev 21637)
@@ -192,8 +192,9 @@
<Constraint loader="ListString">
<value/>
<value name="NewProcessInstanceCommand"/>
- <value name="StartProcessCommand"/>
+ <value name="StartProcessInstanceCommand"/>
<value name="CancelProcessInstanceCommand"/>
+ <value name="GetProcessInstanceVariablesCommand"/>
</Constraint>
<Editor name="ListString"/>
</XModelAttribute>
14 years, 8 months
JBoss Tools SVN: r21636 - in trunk/esb/plugins/org.jboss.tools.esb.validator: src/org/jboss/tools/esb/validator and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2010-04-23 09:08:45 -0400 (Fri, 23 Apr 2010)
New Revision: 21636
Added:
trunk/esb/plugins/org.jboss.tools.esb.validator/.settings/org.eclipse.jdt.core.prefs
Modified:
trunk/esb/plugins/org.jboss.tools.esb.validator/src/org/jboss/tools/esb/validator/ESBCoreValidator.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-6085
Added: trunk/esb/plugins/org.jboss.tools.esb.validator/.settings/org.eclipse.jdt.core.prefs
===================================================================
--- trunk/esb/plugins/org.jboss.tools.esb.validator/.settings/org.eclipse.jdt.core.prefs (rev 0)
+++ trunk/esb/plugins/org.jboss.tools.esb.validator/.settings/org.eclipse.jdt.core.prefs 2010-04-23 13:08:45 UTC (rev 21636)
@@ -0,0 +1,9 @@
+#Wed Feb 17 16:00:33 GMT+03:00 2010
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
+org.eclipse.jdt.core.compiler.compliance=1.5
+org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
+org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
+org.eclipse.jdt.core.compiler.problem.nonExternalizedStringLiteral=warning
+org.eclipse.jdt.core.compiler.source=1.5
Property changes on: trunk/esb/plugins/org.jboss.tools.esb.validator/.settings/org.eclipse.jdt.core.prefs
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Modified: trunk/esb/plugins/org.jboss.tools.esb.validator/src/org/jboss/tools/esb/validator/ESBCoreValidator.java
===================================================================
--- trunk/esb/plugins/org.jboss.tools.esb.validator/src/org/jboss/tools/esb/validator/ESBCoreValidator.java 2010-04-23 12:58:22 UTC (rev 21635)
+++ trunk/esb/plugins/org.jboss.tools.esb.validator/src/org/jboss/tools/esb/validator/ESBCoreValidator.java 2010-04-23 13:08:45 UTC (rev 21636)
@@ -34,8 +34,12 @@
import org.jboss.tools.jst.web.model.project.ext.store.XMLValueInfo;
public class ESBCoreValidator extends ESBValidationErrorManager implements IValidator {
- public static final String ID = "org.jboss.tools.esb.validator.ESBCoreValidator";
+ public static final String ID = "org.jboss.tools.esb.validator.ESBCoreValidator"; //$NON-NLS-1$
+ static String XML_EXT = ".xml"; //$NON-NLS-1$
+ static String ATTR_PATH = "path"; //$NON-NLS-1$
+ static String ATTR_ATTRIBUTE = "attribute"; //$NON-NLS-1$
+
String projectName;
Map<IProject, IValidationContext> contexts = new HashMap<IProject, IValidationContext>();
@@ -92,7 +96,7 @@
for (IFile file: changedFiles) {
String name = file.getName();
- if(!name.endsWith(".xml")) continue;
+ if(!name.endsWith(XML_EXT)) continue;
XModelObject o = EclipseResourceUtil.createObjectForResource(file);
if(o != null && o.getModelEntity().getName().startsWith(ESBConstants.ENT_ESB_FILE)) {
validateESBConfigFile(o, file);
@@ -122,7 +126,7 @@
}
if(esbContentFolder != null) {
- IFolder esbContent = project.getFolder(new Path(esbContentFolder + "/META-INF"));
+ IFolder esbContent = project.getFolder(new Path(esbContentFolder + "/META-INF")); //$NON-NLS-1$
if(esbContent != null && esbContent.exists()) {
IResource[] rs = null;
try {
@@ -134,7 +138,7 @@
if(r instanceof IFile) {
IFile file = (IFile)r;
String name = file.getName();
- if(!name.endsWith(".xml")) continue;
+ if(!name.endsWith(XML_EXT)) continue;
XModelObject o = EclipseResourceUtil.createObjectForResource(file);
if(o != null && o.getModelEntity().getName().startsWith(ESBConstants.ENT_ESB_FILE)) {
validateESBConfigFile(o, file);
@@ -149,12 +153,12 @@
void validateChannelIDRefs(XModelObject object, IFile file) {
- XModelObject servicesFolder = object.getChildByPath("Services");
+ XModelObject servicesFolder = object.getChildByPath("Services"); //$NON-NLS-1$
if(servicesFolder == null) return;
Map<String, String> ids = getAllChannelRefIDs(object);
XModelObject[] services = servicesFolder.getChildren();
for (XModelObject service: services) {
- XModelObject listenersFolder = service.getChildByPath("Listeners");
+ XModelObject listenersFolder = service.getChildByPath("Listeners"); //$NON-NLS-1$
XModelObject[] listeners = listenersFolder.getChildren();
for (XModelObject listener: listeners) {
String channelIDRef = listener.getAttributeValue(ESBConstants.ATTR_BUS_ID_REF);
@@ -167,8 +171,8 @@
IMarker marker = addError(ESBValidatorMessages.LISTENER_REFERENCES_NON_EXISTENT_CHANNEL,
ESBPreferences.LISTENER_REFERENCES_NON_EXISTENT_CHANNEL, getSourceReference(listener, ESBConstants.ATTR_BUS_ID_REF), file);
if(marker != null) try {
- marker.setAttribute("path", listener.getPath());
- marker.setAttribute("attribute", ESBConstants.ATTR_BUS_ID_REF);
+ marker.setAttribute(ATTR_PATH, listener.getPath());
+ marker.setAttribute(ATTR_ATTRIBUTE, ESBConstants.ATTR_BUS_ID_REF);
} catch (CoreException e) {
e.printStackTrace();
}
@@ -178,8 +182,8 @@
IMarker marker = addError(ESBValidatorMessages.LISTENER_REFERENCES_INCOMPATIBLE_CHANNEL,
ESBPreferences.LISTENER_REFERENCES_INCOMPATIBLE_CHANNEL, getSourceReference(listener, ESBConstants.ATTR_BUS_ID_REF), file);
if(marker != null) try {
- marker.setAttribute("path", listener.getPath());
- marker.setAttribute("attribute", ESBConstants.ATTR_BUS_ID_REF);
+ marker.setAttribute(ATTR_PATH, listener.getPath());
+ marker.setAttribute(ATTR_ATTRIBUTE, ESBConstants.ATTR_BUS_ID_REF);
} catch (CoreException e) {
e.printStackTrace();
}
@@ -190,20 +194,20 @@
}
private String getBusEntityPrefix(String listenerEntity) {
if(listenerEntity == null) return null;
- if(listenerEntity.startsWith("ESBListener")) {
+ if(listenerEntity.startsWith("ESBListener")) { //$NON-NLS-1$
return null;
}
- if(listenerEntity.startsWith("ESBJCAGateway")) {
- return "ESBJMSBus";
+ if(listenerEntity.startsWith("ESBJCAGateway")) { //$NON-NLS-1$
+ return "ESBJMSBus"; //$NON-NLS-1$
}
- int i = listenerEntity.indexOf("Listener");
+ int i = listenerEntity.indexOf("Listener"); //$NON-NLS-1$
if(i < 0) return null;
- return listenerEntity.substring(0, i) + "Bus";
+ return listenerEntity.substring(0, i) + "Bus"; //$NON-NLS-1$
}
//id - bus entity
private Map<String, String> getAllChannelRefIDs(XModelObject object) {
Map<String, String> result = new HashMap<String, String>();
- XModelObject[] ps = object.getChildByPath("Providers").getChildren();
+ XModelObject[] ps = object.getChildByPath("Providers").getChildren(); //$NON-NLS-1$
for (int i = 0; i < ps.length; i++) {
XModelObject[] cs = ps[i].getChildren();
for (int j = 0; j < cs.length; j++) {
14 years, 8 months
JBoss Tools SVN: r21635 - in trunk/esb/tests/org.jboss.tools.esb.validator.test: .settings and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2010-04-23 08:58:22 -0400 (Fri, 23 Apr 2010)
New Revision: 21635
Added:
trunk/esb/tests/org.jboss.tools.esb.validator.test/.settings/
trunk/esb/tests/org.jboss.tools.esb.validator.test/.settings/org.eclipse.jdt.core.prefs
Log:
https://jira.jboss.org/jira/browse/JBIDE-6085
Added: trunk/esb/tests/org.jboss.tools.esb.validator.test/.settings/org.eclipse.jdt.core.prefs
===================================================================
--- trunk/esb/tests/org.jboss.tools.esb.validator.test/.settings/org.eclipse.jdt.core.prefs (rev 0)
+++ trunk/esb/tests/org.jboss.tools.esb.validator.test/.settings/org.eclipse.jdt.core.prefs 2010-04-23 12:58:22 UTC (rev 21635)
@@ -0,0 +1,9 @@
+#Mon Sep 14 23:36:44 MSD 2009
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
+org.eclipse.jdt.core.compiler.compliance=1.5
+org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
+org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
+org.eclipse.jdt.core.compiler.problem.nonExternalizedStringLiteral=warning
+org.eclipse.jdt.core.compiler.source=1.5
Property changes on: trunk/esb/tests/org.jboss.tools.esb.validator.test/.settings/org.eclipse.jdt.core.prefs
___________________________________________________________________
Name: svn:mime-type
+ text/plain
14 years, 8 months
JBoss Tools SVN: r21634 - in trunk/esb/tests/org.jboss.tools.esb.validator.test: META-INF and 13 other directories.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2010-04-23 08:53:33 -0400 (Fri, 23 Apr 2010)
New Revision: 21634
Added:
trunk/esb/tests/org.jboss.tools.esb.validator.test/.classpath
trunk/esb/tests/org.jboss.tools.esb.validator.test/.project
trunk/esb/tests/org.jboss.tools.esb.validator.test/META-INF/
trunk/esb/tests/org.jboss.tools.esb.validator.test/META-INF/MANIFEST.MF
trunk/esb/tests/org.jboss.tools.esb.validator.test/build.properties
trunk/esb/tests/org.jboss.tools.esb.validator.test/projects/
trunk/esb/tests/org.jboss.tools.esb.validator.test/projects/esbTest/
trunk/esb/tests/org.jboss.tools.esb.validator.test/projects/esbTest/.classpath
trunk/esb/tests/org.jboss.tools.esb.validator.test/projects/esbTest/.project
trunk/esb/tests/org.jboss.tools.esb.validator.test/projects/esbTest/.settings/
trunk/esb/tests/org.jboss.tools.esb.validator.test/projects/esbTest/.settings/org.eclipse.jdt.core.prefs
trunk/esb/tests/org.jboss.tools.esb.validator.test/projects/esbTest/.settings/org.eclipse.wst.common.component
trunk/esb/tests/org.jboss.tools.esb.validator.test/projects/esbTest/.settings/org.eclipse.wst.common.project.facet.core.xml
trunk/esb/tests/org.jboss.tools.esb.validator.test/projects/esbTest/.settings/org.jboss.tools.esb.project.core.prefs
trunk/esb/tests/org.jboss.tools.esb.validator.test/projects/esbTest/build/
trunk/esb/tests/org.jboss.tools.esb.validator.test/projects/esbTest/build/classes/
trunk/esb/tests/org.jboss.tools.esb.validator.test/projects/esbTest/esbcontent/
trunk/esb/tests/org.jboss.tools.esb.validator.test/projects/esbTest/esbcontent/META-INF/
trunk/esb/tests/org.jboss.tools.esb.validator.test/projects/esbTest/esbcontent/META-INF/jboss-esb-01.xml
trunk/esb/tests/org.jboss.tools.esb.validator.test/projects/esbTest/esbcontent/META-INF/jboss-esb.xml
trunk/esb/tests/org.jboss.tools.esb.validator.test/projects/esbTest/esbcontent/lib/
trunk/esb/tests/org.jboss.tools.esb.validator.test/projects/esbTest/src/
trunk/esb/tests/org.jboss.tools.esb.validator.test/src/
trunk/esb/tests/org.jboss.tools.esb.validator.test/src/org/
trunk/esb/tests/org.jboss.tools.esb.validator.test/src/org/jboss/
trunk/esb/tests/org.jboss.tools.esb.validator.test/src/org/jboss/tools/
trunk/esb/tests/org.jboss.tools.esb.validator.test/src/org/jboss/tools/esb/
trunk/esb/tests/org.jboss.tools.esb.validator.test/src/org/jboss/tools/esb/validator/
trunk/esb/tests/org.jboss.tools.esb.validator.test/src/org/jboss/tools/esb/validator/test/
trunk/esb/tests/org.jboss.tools.esb.validator.test/src/org/jboss/tools/esb/validator/test/ESBTest.java
trunk/esb/tests/org.jboss.tools.esb.validator.test/src/org/jboss/tools/esb/validator/test/ESBValidatorAllTests.java
trunk/esb/tests/org.jboss.tools.esb.validator.test/src/org/jboss/tools/esb/validator/test/ESBValidatorTestSetup.java
trunk/esb/tests/org.jboss.tools.esb.validator.test/src/org/jboss/tools/esb/validator/test/ESBValidatorTestSuite.java
trunk/esb/tests/org.jboss.tools.esb.validator.test/src/org/jboss/tools/esb/validator/test/ValidationTest.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-6085
Share project "org.jboss.tools.esb.validator.test" into "https://svn.jboss.org/repos/jbosstools"
Added: trunk/esb/tests/org.jboss.tools.esb.validator.test/.classpath
===================================================================
--- trunk/esb/tests/org.jboss.tools.esb.validator.test/.classpath (rev 0)
+++ trunk/esb/tests/org.jboss.tools.esb.validator.test/.classpath 2010-04-23 12:53:33 UTC (rev 21634)
@@ -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/J2SE-1.5"/>
+ <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="output" path="bin"/>
+</classpath>
Property changes on: trunk/esb/tests/org.jboss.tools.esb.validator.test/.classpath
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/esb/tests/org.jboss.tools.esb.validator.test/.project
===================================================================
--- trunk/esb/tests/org.jboss.tools.esb.validator.test/.project (rev 0)
+++ trunk/esb/tests/org.jboss.tools.esb.validator.test/.project 2010-04-23 12:53:33 UTC (rev 21634)
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.jboss.tools.esb.validator.test</name>
+ <comment></comment>
+ <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/esb/tests/org.jboss.tools.esb.validator.test/.project
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/esb/tests/org.jboss.tools.esb.validator.test/META-INF/MANIFEST.MF
===================================================================
--- trunk/esb/tests/org.jboss.tools.esb.validator.test/META-INF/MANIFEST.MF (rev 0)
+++ trunk/esb/tests/org.jboss.tools.esb.validator.test/META-INF/MANIFEST.MF 2010-04-23 12:53:33 UTC (rev 21634)
@@ -0,0 +1,21 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: Contexts and Dependency Injection Test
+Bundle-SymbolicName: org.jboss.tools.esb.validator.test
+Bundle-Version: 1.0.0
+Bundle-Vendor: JBoss by Red Hat
+Bundle-RequiredExecutionEnvironment: J2SE-1.5
+Require-Bundle: org.jboss.tools.esb.core,
+ org.jboss.tools.esb.project.core,
+ org.jboss.tools.esb.validator,
+ org.jboss.tools.tests,
+ org.eclipse.core.runtime,
+ org.eclipse.core.resources,
+ org.junit,
+ org.jboss.tools.common,
+ org.eclipse.ui,
+ org.eclipse.jdt.core,
+ org.jboss.tools.common.model.ui,
+ org.eclipse.ltk.core.refactoring;bundle-version="3.5.0"
+Export-Package: org.jboss.tools.esb.validator.test
+Bundle-ClassPath: esb-validator-test.jar
Property changes on: trunk/esb/tests/org.jboss.tools.esb.validator.test/META-INF/MANIFEST.MF
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/esb/tests/org.jboss.tools.esb.validator.test/build.properties
===================================================================
--- trunk/esb/tests/org.jboss.tools.esb.validator.test/build.properties (rev 0)
+++ trunk/esb/tests/org.jboss.tools.esb.validator.test/build.properties 2010-04-23 12:53:33 UTC (rev 21634)
@@ -0,0 +1,6 @@
+source.. = src/
+output.esb-validator-test.jar = bin/
+bin.includes = META-INF/,\
+ esb-validator-test.jar,\
+ projects/
+source.esb-validator-test.jar = src/
Property changes on: trunk/esb/tests/org.jboss.tools.esb.validator.test/build.properties
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/esb/tests/org.jboss.tools.esb.validator.test/projects/esbTest/.classpath
===================================================================
--- trunk/esb/tests/org.jboss.tools.esb.validator.test/projects/esbTest/.classpath (rev 0)
+++ trunk/esb/tests/org.jboss.tools.esb.validator.test/projects/esbTest/.classpath 2010-04-23 12:53:33 UTC (rev 21634)
@@ -0,0 +1,16 @@
+<?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/jre1.6.0_04">
+ <attributes>
+ <attribute name="owner.project.facets" value="jst.java"/>
+ </attributes>
+ </classpathentry>
+ <classpathentry kind="con" path="org.jboss.esb.runtime.classpath/server.supplied/JBoss 4.2 Runtime"/>
+ <classpathentry kind="con" path="org.eclipse.jst.server.core.container/org.jboss.ide.eclipse.as.core.server.runtime.runtimeTarget/JBoss 4.2 Runtime">
+ <attributes>
+ <attribute name="owner.project.facets" value="jst.jboss.esb"/>
+ </attributes>
+ </classpathentry>
+ <classpathentry kind="output" path="build/classes"/>
+</classpath>
Property changes on: trunk/esb/tests/org.jboss.tools.esb.validator.test/projects/esbTest/.classpath
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/esb/tests/org.jboss.tools.esb.validator.test/projects/esbTest/.project
===================================================================
--- trunk/esb/tests/org.jboss.tools.esb.validator.test/projects/esbTest/.project (rev 0)
+++ trunk/esb/tests/org.jboss.tools.esb.validator.test/projects/esbTest/.project 2010-04-23 12:53:33 UTC (rev 21634)
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>esbTest</name>
+ <comment></comment>
+ <projects>
+ <project>esbTest</project>
+ </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>
+ <buildCommand>
+ <name>org.eclipse.wst.validation.validationbuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.jem.workbench.JavaEMFNature</nature>
+ <nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>
+ <nature>org.eclipse.wst.common.project.facet.core.nature</nature>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ </natures>
+</projectDescription>
Property changes on: trunk/esb/tests/org.jboss.tools.esb.validator.test/projects/esbTest/.project
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/esb/tests/org.jboss.tools.esb.validator.test/projects/esbTest/.settings/org.eclipse.jdt.core.prefs
===================================================================
--- trunk/esb/tests/org.jboss.tools.esb.validator.test/projects/esbTest/.settings/org.eclipse.jdt.core.prefs (rev 0)
+++ trunk/esb/tests/org.jboss.tools.esb.validator.test/projects/esbTest/.settings/org.eclipse.jdt.core.prefs 2010-04-23 12:53:33 UTC (rev 21634)
@@ -0,0 +1,7 @@
+#Fri Apr 23 14:26:32 MSD 2010
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
+org.eclipse.jdt.core.compiler.compliance=1.5
+org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
+org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
+org.eclipse.jdt.core.compiler.source=1.5
Property changes on: trunk/esb/tests/org.jboss.tools.esb.validator.test/projects/esbTest/.settings/org.eclipse.jdt.core.prefs
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/esb/tests/org.jboss.tools.esb.validator.test/projects/esbTest/.settings/org.eclipse.wst.common.component
===================================================================
--- trunk/esb/tests/org.jboss.tools.esb.validator.test/projects/esbTest/.settings/org.eclipse.wst.common.component (rev 0)
+++ trunk/esb/tests/org.jboss.tools.esb.validator.test/projects/esbTest/.settings/org.eclipse.wst.common.component 2010-04-23 12:53:33 UTC (rev 21634)
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project-modules id="moduleCoreId" project-version="1.5.0">
+<wb-module deploy-name="esbTest">
+<wb-resource deploy-path="/" source-path="/esbcontent"/>
+<dependent-module deploy-path="/" handle="module:/org.jboss.ide.eclipse.as.wtp.core.vcf.outputFolders/">
+<dependency-type>consumes</dependency-type>
+</dependent-module>
+<property name="java-output-path" value="build/classes"/>
+</wb-module>
+</project-modules>
Added: trunk/esb/tests/org.jboss.tools.esb.validator.test/projects/esbTest/.settings/org.eclipse.wst.common.project.facet.core.xml
===================================================================
--- trunk/esb/tests/org.jboss.tools.esb.validator.test/projects/esbTest/.settings/org.eclipse.wst.common.project.facet.core.xml (rev 0)
+++ trunk/esb/tests/org.jboss.tools.esb.validator.test/projects/esbTest/.settings/org.eclipse.wst.common.project.facet.core.xml 2010-04-23 12:53:33 UTC (rev 21634)
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<faceted-project>
+ <runtime name="JBoss 4.2 Runtime"/>
+ <fixed facet="jst.java"/>
+ <fixed facet="jst.jboss.esb"/>
+ <installed facet="jst.java" version="5.0"/>
+ <installed facet="jst.jboss.esb" version="4.7"/>
+</faceted-project>
Property changes on: trunk/esb/tests/org.jboss.tools.esb.validator.test/projects/esbTest/.settings/org.eclipse.wst.common.project.facet.core.xml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/esb/tests/org.jboss.tools.esb.validator.test/projects/esbTest/.settings/org.jboss.tools.esb.project.core.prefs
===================================================================
--- trunk/esb/tests/org.jboss.tools.esb.validator.test/projects/esbTest/.settings/org.jboss.tools.esb.project.core.prefs (rev 0)
+++ trunk/esb/tests/org.jboss.tools.esb.validator.test/projects/esbTest/.settings/org.jboss.tools.esb.project.core.prefs 2010-04-23 12:53:33 UTC (rev 21634)
@@ -0,0 +1,3 @@
+#Fri Apr 23 14:26:32 MSD 2010
+eclipse.preferences.version=1
+jboss.esb.project.project.version=2.0
Property changes on: trunk/esb/tests/org.jboss.tools.esb.validator.test/projects/esbTest/.settings/org.jboss.tools.esb.project.core.prefs
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/esb/tests/org.jboss.tools.esb.validator.test/projects/esbTest/esbcontent/META-INF/jboss-esb-01.xml
===================================================================
--- trunk/esb/tests/org.jboss.tools.esb.validator.test/projects/esbTest/esbcontent/META-INF/jboss-esb-01.xml (rev 0)
+++ trunk/esb/tests/org.jboss.tools.esb.validator.test/projects/esbTest/esbcontent/META-INF/jboss-esb-01.xml 2010-04-23 12:53:33 UTC (rev 21634)
@@ -0,0 +1,17 @@
+<?xml version="1.0"?>
+<jbossesb parameterReloadSecs="5"
+ xmlns="http://anonsvn.labs.jboss.com/labs/jbossesb/trunk/product/etc/schemas/xml..."
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://anonsvn.labs.jboss.com/labs/jbossesb/trunk/product/etc/schemas/xml... http://anonsvn.jboss.org/repos/labs/labs/jbossesb/trunk/product/etc/schem...">
+ <providers>
+ <fs-provider name="fsProvider">
+ <fs-bus busid="fsChannel"/>
+ </fs-provider>
+ </providers>
+ <services>
+ <service category="c1" description="d1" name="s1">
+ <listeners>
+ <ftp-listener busidref="fsChannel" name="ftpListener"/>
+ </listeners>
+ </service>
+ </services>
+</jbossesb>
Property changes on: trunk/esb/tests/org.jboss.tools.esb.validator.test/projects/esbTest/esbcontent/META-INF/jboss-esb-01.xml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/esb/tests/org.jboss.tools.esb.validator.test/projects/esbTest/esbcontent/META-INF/jboss-esb.xml
===================================================================
--- trunk/esb/tests/org.jboss.tools.esb.validator.test/projects/esbTest/esbcontent/META-INF/jboss-esb.xml (rev 0)
+++ trunk/esb/tests/org.jboss.tools.esb.validator.test/projects/esbTest/esbcontent/META-INF/jboss-esb.xml 2010-04-23 12:53:33 UTC (rev 21634)
@@ -0,0 +1,20 @@
+<?xml version="1.0"?>
+<jbossesb parameterReloadSecs="5"
+ xmlns="http://anonsvn.labs.jboss.com/labs/jbossesb/trunk/product/etc/schemas/xml..."
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://anonsvn.labs.jboss.com/labs/jbossesb/trunk/product/etc/schemas/xml... http://anonsvn.jboss.org/repos/labs/labs/jbossesb/trunk/product/etc/schem...">
+ <providers>
+ <fs-provider name="fsProvider">
+ <fs-bus busid="fsChannel"/>
+ </fs-provider>
+ <fs-provider name="ftpProvider">
+ <fs-bus busid="ftpChannel"/>
+ </fs-provider>
+ </providers>
+ <services>
+ <service category="c1" description="d1" name="s1">
+ <listeners>
+ <ftp-listener busidref="ftpChannel" name="ftpListener"/>
+ </listeners>
+ </service>
+ </services>
+</jbossesb>
Property changes on: trunk/esb/tests/org.jboss.tools.esb.validator.test/projects/esbTest/esbcontent/META-INF/jboss-esb.xml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/esb/tests/org.jboss.tools.esb.validator.test/src/org/jboss/tools/esb/validator/test/ESBTest.java
===================================================================
--- trunk/esb/tests/org.jboss.tools.esb.validator.test/src/org/jboss/tools/esb/validator/test/ESBTest.java (rev 0)
+++ trunk/esb/tests/org.jboss.tools.esb.validator.test/src/org/jboss/tools/esb/validator/test/ESBTest.java 2010-04-23 12:53:33 UTC (rev 21634)
@@ -0,0 +1,91 @@
+package org.jboss.tools.esb.validator.test;
+
+import java.util.Set;
+
+import junit.framework.TestCase;
+
+import org.eclipse.core.resources.IProject;
+import org.eclipse.core.resources.IResource;
+import org.eclipse.core.resources.IncrementalProjectBuilder;
+import org.eclipse.core.resources.ResourcesPlugin;
+import org.eclipse.core.runtime.CoreException;
+import org.eclipse.core.runtime.NullProgressMonitor;
+import org.eclipse.core.runtime.Platform;
+import org.jboss.tools.common.text.ITextSourceReference;
+import org.jboss.tools.esb.core.facet.IJBossESBFacetDataModelProperties;
+import org.jboss.tools.test.util.JobUtils;
+import org.jboss.tools.test.util.ResourcesUtils;
+import org.osgi.framework.Bundle;
+
+public class ESBTest extends TestCase {
+ protected static String PLUGIN_ID = "org.jboss.tools.esb.validator.test";
+ protected static String PROJECT_NAME = "esbTest";
+ protected static String PROJECT_PATH = "/projects/esbTest";
+
+ protected static String WEB_CONTENT_SUFFIX = "/esbcontent";
+
+ protected IProject project;
+
+ public ESBTest() {
+ project = getTestProject();
+ }
+
+ public IProject getTestProject() {
+ if(project==null) {
+ try {
+ project = findTestProject();
+ if(project==null || !project.exists()) {
+ project = importPreparedProject("/");
+ }
+ } catch (Exception e) {
+ e.printStackTrace();
+ fail("Can't import ESB test project: " + e.getMessage());
+ }
+ }
+ return project;
+ }
+
+ public static IProject findTestProject() {
+ return ResourcesPlugin.getWorkspace().getRoot().getProject(PROJECT_NAME);
+ }
+
+ public static IProject importPreparedProject(String packPath) throws Exception {
+ Bundle b = Platform.getBundle(PLUGIN_ID);
+ boolean saveAutoBuild = ResourcesUtils.setBuildAutomatically(false);
+ IProject project = ResourcesPlugin.getWorkspace().getRoot().getProject(PROJECT_NAME);
+ if(project==null || !project.exists()) {
+ project = ResourcesUtils.importProject(b, PROJECT_PATH);
+ }
+ try {
+ project.setPersistentProperty(IJBossESBFacetDataModelProperties.QNAME_ESB_CONTENT_FOLDER, "esbcontent");
+ } catch (CoreException e) {
+ e.printStackTrace();
+ }
+ project.build(IncrementalProjectBuilder.FULL_BUILD, new NullProgressMonitor());
+ ResourcesUtils.setBuildAutomatically(saveAutoBuild);
+ return project;
+ }
+
+
+ public static void assertLocationEquals(Set<? extends ITextSourceReference> references, int startPosition, int length) {
+ for (ITextSourceReference reference : references) {
+ if(reference.getStartPosition()==startPosition) {
+ assertLocationEquals(reference, startPosition, length);
+ return;
+ }
+ }
+ StringBuffer message = new StringBuffer("Location [start positopn=").append(startPosition).append(", lengt=").append(length).append("] has not been found among ");
+ for (ITextSourceReference reference : references) {
+ message.append("[").append(reference.getStartPosition()).append(", ").append(reference.getLength()).append("] ");
+ }
+ fail(message.toString());
+ }
+
+ public static void assertLocationEquals(ITextSourceReference reference, int startPosition, int length) {
+ assertEquals("Wrong start position", startPosition, reference.getStartPosition());
+ assertEquals("Wrong length", length, reference.getLength());
+ }
+
+ public static void cleanProject(String _resourcePath) throws Exception {
+ }
+}
\ No newline at end of file
Property changes on: trunk/esb/tests/org.jboss.tools.esb.validator.test/src/org/jboss/tools/esb/validator/test/ESBTest.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/esb/tests/org.jboss.tools.esb.validator.test/src/org/jboss/tools/esb/validator/test/ESBValidatorAllTests.java
===================================================================
--- trunk/esb/tests/org.jboss.tools.esb.validator.test/src/org/jboss/tools/esb/validator/test/ESBValidatorAllTests.java (rev 0)
+++ trunk/esb/tests/org.jboss.tools.esb.validator.test/src/org/jboss/tools/esb/validator/test/ESBValidatorAllTests.java 2010-04-23 12:53:33 UTC (rev 21634)
@@ -0,0 +1,54 @@
+/*******************************************************************************
+ * Copyright (c) 2009 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.esb.validator.test;
+
+import junit.extensions.TestSetup;
+import junit.framework.Test;
+import junit.framework.TestSuite;
+
+import org.eclipse.jdt.internal.core.JavaModelManager;
+import org.jboss.tools.tests.AbstractPluginsLoadTest;
+
+/**
+ * @author Viacheslav Kabanovich
+ */
+public class ESBValidatorAllTests {
+
+ public static Test suite() {
+ TestSuite suite = new TestSuite("ESB Validator Tests");
+ suite.addTest(new ESBValidatorTestSetup(ESBValidatorTestSuite.suite()));
+
+ return new DisableJavaIndexingSetup(suite);
+ }
+
+// public class ESBPluginsLoadTest extends AbstractPluginsLoadTest {
+// public void testBundlesAreLoadedForSeamFeature(){
+// testBundlesAreLoadedFor("org.jboss.tools.cdi.feature");
+// }
+// }
+
+ public static class DisableJavaIndexingSetup extends TestSetup {
+
+ public DisableJavaIndexingSetup(Test test) {
+ super(test);
+ }
+
+ @Override
+ protected void setUp() throws Exception {
+ JavaModelManager.getIndexManager().disable();
+ }
+
+ @Override
+ protected void tearDown() throws Exception {
+ JavaModelManager.getIndexManager().enable();
+ }
+ }
+}
\ No newline at end of file
Property changes on: trunk/esb/tests/org.jboss.tools.esb.validator.test/src/org/jboss/tools/esb/validator/test/ESBValidatorAllTests.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/esb/tests/org.jboss.tools.esb.validator.test/src/org/jboss/tools/esb/validator/test/ESBValidatorTestSetup.java
===================================================================
--- trunk/esb/tests/org.jboss.tools.esb.validator.test/src/org/jboss/tools/esb/validator/test/ESBValidatorTestSetup.java (rev 0)
+++ trunk/esb/tests/org.jboss.tools.esb.validator.test/src/org/jboss/tools/esb/validator/test/ESBValidatorTestSetup.java 2010-04-23 12:53:33 UTC (rev 21634)
@@ -0,0 +1,44 @@
+/*******************************************************************************
+ * Copyright (c) 2010 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.esb.validator.test;
+
+import junit.extensions.TestSetup;
+import junit.framework.Test;
+
+import org.eclipse.core.resources.IProject;
+import org.jboss.tools.test.util.JobUtils;
+import org.jboss.tools.test.util.ResourcesUtils;
+
+/**
+ * @author Viacheslav Kabanovich
+ */
+public class ESBValidatorTestSetup extends TestSetup {
+
+ protected IProject project;
+
+ public ESBValidatorTestSetup(Test test) {
+ super(test);
+ }
+
+ @Override
+ protected void setUp() throws Exception {
+ project = ESBTest.findTestProject();
+ }
+
+ @Override
+ protected void tearDown() throws Exception {
+ boolean saveAutoBuild = ResourcesUtils.setBuildAutomatically(false);
+ JobUtils.waitForIdle();
+ project.delete(true, true, null);
+ JobUtils.waitForIdle();
+ ResourcesUtils.setBuildAutomatically(saveAutoBuild);
+ }
+}
\ No newline at end of file
Property changes on: trunk/esb/tests/org.jboss.tools.esb.validator.test/src/org/jboss/tools/esb/validator/test/ESBValidatorTestSetup.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/esb/tests/org.jboss.tools.esb.validator.test/src/org/jboss/tools/esb/validator/test/ESBValidatorTestSuite.java
===================================================================
--- trunk/esb/tests/org.jboss.tools.esb.validator.test/src/org/jboss/tools/esb/validator/test/ESBValidatorTestSuite.java (rev 0)
+++ trunk/esb/tests/org.jboss.tools.esb.validator.test/src/org/jboss/tools/esb/validator/test/ESBValidatorTestSuite.java 2010-04-23 12:53:33 UTC (rev 21634)
@@ -0,0 +1,26 @@
+/*******************************************************************************
+ * Copyright (c) 2010 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.esb.validator.test;
+
+import junit.framework.Test;
+import junit.framework.TestSuite;
+
+/**
+ * @author Viacheslav Kabanovich
+ */
+public class ESBValidatorTestSuite extends TestSuite {
+
+ public static Test suite() {
+ TestSuite suite = new TestSuite("ESB Validator Tests");
+ suite.addTestSuite(ValidationTest.class);
+ return suite;
+ }
+}
\ No newline at end of file
Property changes on: trunk/esb/tests/org.jboss.tools.esb.validator.test/src/org/jboss/tools/esb/validator/test/ESBValidatorTestSuite.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/esb/tests/org.jboss.tools.esb.validator.test/src/org/jboss/tools/esb/validator/test/ValidationTest.java
===================================================================
--- trunk/esb/tests/org.jboss.tools.esb.validator.test/src/org/jboss/tools/esb/validator/test/ValidationTest.java (rev 0)
+++ trunk/esb/tests/org.jboss.tools.esb.validator.test/src/org/jboss/tools/esb/validator/test/ValidationTest.java 2010-04-23 12:53:33 UTC (rev 21634)
@@ -0,0 +1,55 @@
+/*******************************************************************************
+ * Copyright (c) 2010 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.esb.validator.test;
+
+import org.eclipse.core.resources.IFile;
+import org.eclipse.core.resources.IResource;
+import org.jboss.tools.esb.validator.ESBValidatorMessages;
+import org.jboss.tools.tests.AbstractResourceMarkerTest;
+
+/**
+ * @author Viacheslav Kabanovich
+ */
+public class ValidationTest extends ESBTest {
+
+ public void test0() throws Exception {
+ try {
+ Thread.sleep(2000);
+ } catch (InterruptedException e) {
+
+ }
+ }
+ /**
+ * FTP Listener cannot reference FS Channel.
+ *
+ * @throws Exception
+ */
+ public void testIncompatibleChannelReference() throws Exception {
+ IFile file = project.getFile("esbcontent/META-INF/jboss-esb-01.xml");
+ AbstractResourceMarkerTest.assertMarkerIsCreated(file, AbstractResourceMarkerTest.MARKER_TYPE, ESBValidatorMessages.LISTENER_REFERENCES_INCOMPATIBLE_CHANNEL, 13);
+ int markerNumbers = getMarkersNumber(file);
+ assertEquals("jboss-esb-01.xml should have one error marker.", markerNumbers, 1);
+ }
+
+ /**
+ *
+ * @throws Exception
+ */
+// public void testMultipleDisposeParameters() throws Exception {
+// IFile file = project.getFile("JavaSource/org/jboss/jsr299/tck/tests/implementation/disposal/method/definition/broken/multiParams/SpiderProducer_Broken.java");
+// AbstractResourceMarkerTest.assertMarkerIsCreated(file, AbstractResourceMarkerTest.MARKER_TYPE, ESBValidatorMessages.MULTIPLE_DISPOSING_PARAMETERS, 30, 30);
+// }
+
+ public static int getMarkersNumber(IResource resource) {
+ return AbstractResourceMarkerTest.getMarkersNumberByGroupName(resource, null);
+ }
+
+}
\ No newline at end of file
Property changes on: trunk/esb/tests/org.jboss.tools.esb.validator.test/src/org/jboss/tools/esb/validator/test/ValidationTest.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
14 years, 8 months