JBoss Tools SVN: r27862 - trunk/documentation/guides/JBDS_Release_Notes/en-US.
by jbosstools-commits@lists.jboss.org
Author: mcaspers
Date: 2011-01-03 22:52:41 -0500 (Mon, 03 Jan 2011)
New Revision: 27862
Modified:
trunk/documentation/guides/JBDS_Release_Notes/en-US/Fixed_Issues.xml
Log:
Moved some JBIDEs to correct locations.
Modified: trunk/documentation/guides/JBDS_Release_Notes/en-US/Fixed_Issues.xml
===================================================================
--- trunk/documentation/guides/JBDS_Release_Notes/en-US/Fixed_Issues.xml 2011-01-04 03:41:44 UTC (rev 27861)
+++ trunk/documentation/guides/JBDS_Release_Notes/en-US/Fixed_Issues.xml 2011-01-04 03:52:41 UTC (rev 27862)
@@ -22,7 +22,24 @@
<formalpara>
<title>Contexts and Dependency Injection (CDI)</title>
<para>
- <itemizedlist>
+ <itemizedlist>
+ <listitem>
+ <para>
+ <ulink url="https://issues.jboss.org/browse/JBIDE-7875">JBIDE-7875</ulink>: It is recommended that developers create an Annotation Literal class for every qualifier in their public API. However, writing these classes by hand can be time consuming. To address this the new <guilabel>Annotation Literal Type</guilabel> wizard provides a streamlined way to create these classes. This wizard can be accessed by selecting <menuchoice>
+ <guimenuitem>File</guimenuitem>
+ <guimenuitem>New</guimenuitem>
+ <guimenuitem>Other</guimenuitem>
+ <guimenuitem>CDI (Context and Dependency Injection)</guimenuitem>
+ <guimenuitem>Annotation Literal Type</guimenuitem>
+ </menuchoice>.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <ulink url="https://jira.jboss.org/browse/JBIDE-7674">JBIDE-7674</ulink>: If a non-static field of a session bean class is annotated <property>@Produces</property>, <productname>CDI Tools</productname> detects the problem and treats it as a definition error in accordance with <ulink url="http://docs.jboss.org/cdi/spec/1.0/html/implementation.html#d0e2226">JSR-299 §3.4.2</ulink>. If this situation is encountered, a new <guilabel>Quick Fix</guilabel> has been implemented that provides a way to make such a field <code>static</code>.
+ </para>
+ </listitem>
+
<listitem>
<para>
<ulink url="https://issues.jboss.org/browse/JBIDE-7802">JBIDE-7802</ulink>: Previously CDI related wizards (such as <guilabel>Injection Scoped Bean</guilabel>) could not be found in the <guilabel>New</guilabel> wizard by searching for the keyword "CDI". This issue has been resolved, resulting in CDI related wizards being listed against the search keyword "CDI".
@@ -492,6 +509,11 @@
<itemizedlist>
<listitem>
<para>
+ <ulink url="https://jira.jboss.org/browse/JBIDE-7771">JBIDE-7771</ulink>: In previous versions the HQL <guilabel>Query Parameters</guilabel> view showed only the first entry from a list of parameter values. To view the full list of parameters the ellipsis button in the <guilabel>Value</guilabel> field had to be clicked to display the <guilabel>Parameter Values</guilabel> dialog. The new <guilabel>Query Parameters</guilabel> view shows all parameters separated by the pipe (|) character when the <guilabel>Value</guilabel> field is not being edited, and reverts back to showing only the first parameter when the <guilabel>Value</guilabel> field is being edited.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
<ulink url="https://issues.jboss.org/browse/JBIDE-7990">JBIDE-7990</ulink>: The <guilabel>Properties</guilabel> View was empty when a <guilabel>Configuration</guilabel> node was selected in the <guilabel>Hibernate Configurations</guilabel> View. The properties defined in the XML configuration file were expected to be shown in the <guilabel>Properties</guilabel> View.
</para>
<para>
@@ -1001,24 +1023,8 @@
<title>Visual Page Editor</title>
<para>
<itemizedlist>
- <listitem>
- <para>
- <ulink url="https://issues.jboss.org/browse/JBIDE-7875">JBIDE-7875</ulink>: It is recommended that developers create an Annotation Literal class for every qualifier in their public API. However, writing these classes by hand can be time consuming. To address this the new <guilabel>Annotation Literal Type</guilabel> wizard provides a streamlined way to create these classes.
- </para>
- </listitem>
-
- <listitem>
- <para>
- <ulink url="https://jira.jboss.org/browse/JBIDE-7674">JBIDE-7674</ulink>: If a non-static field of a session bean class is annotated <property>@Produces</property>, <productname>CDI Tools</productname> detects the problem and treats it as a definition error in accordance with <ulink url="http://docs.jboss.org/cdi/spec/1.0/html/implementation.html#d0e2226">JSR-299 §3.4.2</ulink>. If this situation is encountered, a new <guilabel>Quick Fix</guilabel> has been implemented that provides a way to make such a field <code>static</code>.
- </para>
- </listitem>
<listitem>
<para>
- <ulink url="https://jira.jboss.org/browse/JBIDE-7771">JBIDE-7771</ulink>: In previous versions the HQL <guilabel>Query Parameters</guilabel> view showed only the first entry from a list of parameter values. To view the full list of parameters the ellipsis button in the <guilabel>Value</guilabel> field had to be clicked to display the <guilabel>Parameter Values</guilabel> dialog. The new <guilabel>Query Parameters</guilabel> view shows all parameters separated by the pipe (|) character when the <guilabel>Value</guilabel> field is not being edited, and reverts back to showing only the first parameter when the <guilabel>Value</guilabel> field is being edited.
- </para>
- </listitem>
- <listitem>
- <para>
<ulink url="http://jira.jboss.com/jira/browse/JBIDE-7434">JBIDE-7434</ulink>: Templates with support for RichFaces 4.0 have been added to the Visual Page Editor.
</para>
</listitem>
13 years, 4 months
JBoss Tools SVN: r27861 - trunk/documentation/guides/JBDS_Release_Notes.
by jbosstools-commits@lists.jboss.org
Author: mcaspers
Date: 2011-01-03 22:41:44 -0500 (Mon, 03 Jan 2011)
New Revision: 27861
Added:
trunk/documentation/guides/JBDS_Release_Notes/exceptions.txt
Log:
Added exceptions.txt file to allow tracking of JBIDEs
Added: trunk/documentation/guides/JBDS_Release_Notes/exceptions.txt
===================================================================
--- trunk/documentation/guides/JBDS_Release_Notes/exceptions.txt (rev 0)
+++ trunk/documentation/guides/JBDS_Release_Notes/exceptions.txt 2011-01-04 03:41:44 UTC (rev 27861)
@@ -0,0 +1,33 @@
+JBIDE-6640 -> not in buglist but should be included in Release Notes
+
+Documented but without 'new_and_noteworthy' tag:
+
+NOTFOUND_JBIDE-6640
+
+Documented only for JBT release notes (comments in JBDS):
+
+NOTFOUND_JBIDE-7554
+NOTFOUND_JBIDE-7569
+NOTFOUND_JBIDE-7774
+NOTFOUND_JBIDE-7911
+NOTFOUND_JBIDE-7435
+NOTFOUND_JBIDE-7144
+NOTFOUND_JBIDE-7142
+NOTFOUND_JBIDE-7082
+NOTFOUND_JBIDE-7041
+NOTFOUND_JBIDE-7034
+NOTFOUND_JBIDE-6837
+NOTFOUND_JBIDE-6836
+NOTFOUND_JBIDE-6695
+NOTFOUND_JBIDE-6576
+NOTFOUND_JBIDE-6487
+NOTFOUND_JBIDE-6412
+NOTFOUND_JBIDE-6376
+NOTFOUND_JBIDE-6293
+NOTFOUND_JBIDE-5960
+
+Has 'new_and_noteworthy' tag but not documented as it is a sub-task of a JIRA already in the Release Notes:
+
+NOTFOUND_JBIDE-6575
+
+Still to be documented:
13 years, 4 months
JBoss Tools SVN: r27860 - trunk/documentation/guides/JBDS_Release_Notes/en-US.
by jbosstools-commits@lists.jboss.org
Author: mcaspers
Date: 2011-01-03 22:26:59 -0500 (Mon, 03 Jan 2011)
New Revision: 27860
Modified:
trunk/documentation/guides/JBDS_Release_Notes/en-US/Fixed_Issues.xml
Log:
Added JBIDE-7554
Modified: trunk/documentation/guides/JBDS_Release_Notes/en-US/Fixed_Issues.xml
===================================================================
--- trunk/documentation/guides/JBDS_Release_Notes/en-US/Fixed_Issues.xml 2011-01-04 03:20:27 UTC (rev 27859)
+++ trunk/documentation/guides/JBDS_Release_Notes/en-US/Fixed_Issues.xml 2011-01-04 03:26:59 UTC (rev 27860)
@@ -319,6 +319,11 @@
<itemizedlist>
<listitem>
<para>
+ <ulink url="https://issues.jboss.org/browse/JBIDE-7554">JBIDE-7554</ulink>: When the <guilabel>Cloud Viewer</guilabel> View was refreshed there was previously no indication that the View was being repopulated. This made it difficult to judge the progress of the refresh operation. To address this the list of instances and images are cleared from the <guilabel>Cloud Viewer</guilabel> View before they are refreshed, and a pop-up progress dialog box is now displayed.
+ </para>
+ <listitem>
+ <listitem>
+ <para>
<ulink url="https://issues.jboss.org/browse/JBIDE-7569">JBIDE-7569</ulink>: When expanding the <guilabel>Instances</guilabel> tree in the <guilabel>Cloud Viewer</guilabel> View, there was no indication that the tree was currently being populated. To indicate that the tree is being populated a temporary entry labeled <guilabel>Loading...</guilabel> will now be visible while no instances have been added.
</para>
<listitem>
13 years, 4 months
JBoss Tools SVN: r27859 - trunk/documentation/guides/JBDS_Release_Notes/en-US.
by jbosstools-commits@lists.jboss.org
Author: mcaspers
Date: 2011-01-03 22:20:27 -0500 (Mon, 03 Jan 2011)
New Revision: 27859
Modified:
trunk/documentation/guides/JBDS_Release_Notes/en-US/Fixed_Issues.xml
Log:
Added new release notes
Modified: trunk/documentation/guides/JBDS_Release_Notes/en-US/Fixed_Issues.xml
===================================================================
--- trunk/documentation/guides/JBDS_Release_Notes/en-US/Fixed_Issues.xml 2011-01-04 02:18:57 UTC (rev 27858)
+++ trunk/documentation/guides/JBDS_Release_Notes/en-US/Fixed_Issues.xml 2011-01-04 03:20:27 UTC (rev 27859)
@@ -23,9 +23,14 @@
<title>Contexts and Dependency Injection (CDI)</title>
<para>
<itemizedlist>
+ <listitem>
+ <para>
+ <ulink url="https://issues.jboss.org/browse/JBIDE-7802">JBIDE-7802</ulink>: Previously CDI related wizards (such as <guilabel>Injection Scoped Bean</guilabel>) could not be found in the <guilabel>New</guilabel> wizard by searching for the keyword "CDI". This issue has been resolved, resulting in CDI related wizards being listed against the search keyword "CDI".
+ </para>
+ </listitem>
<listitem>
<para>
- <ulink url="https://issues.jboss.org/browse/JBIDE-7891">JBIDE-7897</ulink>: Weld is now used in place of Seam for Contexts and Dependency Injection, and this change is reflected in the icons and banners shown in the CDI wizards, which now display the Weld icon instead of the Seam icon.
+ <ulink url="https://issues.jboss.org/browse/JBIDE-7891">JBIDE-7891</ulink>: Weld is now used in place of Seam for Contexts and Dependency Injection, and this change is reflected in the icons and banners shown in the CDI wizards, which now display the Weld icon instead of the Seam icon.
</para>
</listitem>
<listitem>
@@ -314,9 +319,30 @@
<itemizedlist>
<listitem>
<para>
- <ulink url="https://issues.jboss.org/browse/JBIDE-7911">JBIDE-7911</ulink>: Support for DeltaCloud Server 0.1.2 has been added.
+ <ulink url="https://issues.jboss.org/browse/JBIDE-7569">JBIDE-7569</ulink>: When expanding the <guilabel>Instances</guilabel> tree in the <guilabel>Cloud Viewer</guilabel> View, there was no indication that the tree was currently being populated. To indicate that the tree is being populated a temporary entry labeled <guilabel>Loading...</guilabel> will now be visible while no instances have been added.
+ </para>
+ <listitem>
+ <listitem>
+ <para>
+ <ulink url="https://issues.jboss.org/browse/JBIDE-7761">JBIDE-7761</ulink>: The <guilabel>Show in Remote System Explorer</guilabel> option is now available in the <guilabel>Cloud Viewer</guilabel> View context menu.
+ </para>
+ <listitem>
+ <listitem>
+ <para>
+ <ulink url="https://issues.jboss.org/browse/JBIDE-7774">JBIDE-7774</ulink>: The <guilabel>Deltacloud Cloud Connection</guilabel> wizard, accessible by selecting <menuchoice>
+ <guimenuitem>File</guimenuitem>
+ <guimenuitem>New</guimenuitem>
+ <guimenuitem>Other</guimenuitem>
+ <guimenuitem>Deltacloud</guimenuitem>
+ <guimenuitem>Cloud Connection</guimenuitem>
+ </menuchoice>, will now display the last used URL.
</para>
<listitem>
+ <listitem>
+ <para>
+ <ulink url="https://issues.jboss.org/browse/JBIDE-7911">JBIDE-7911</ulink>: Support for Deltacloud Server 0.1.2 has been added.
+ </para>
+ <listitem>
<para>
<ulink url="http://jira.jboss.com/jira/browse/JBIDE-6837">JBIDE-6837</ulink>: Deltacloud tooling has been added for this release.
</para>
13 years, 4 months
JBoss Tools SVN: r27858 - trunk/documentation/guides/JBDS_Release_Notes/en-US.
by jbosstools-commits@lists.jboss.org
Author: mcaspers
Date: 2011-01-03 21:18:57 -0500 (Mon, 03 Jan 2011)
New Revision: 27858
Modified:
trunk/documentation/guides/JBDS_Release_Notes/en-US/Fixed_Issues.xml
Log:
Added JBIDE-7875
Modified: trunk/documentation/guides/JBDS_Release_Notes/en-US/Fixed_Issues.xml
===================================================================
--- trunk/documentation/guides/JBDS_Release_Notes/en-US/Fixed_Issues.xml 2011-01-04 01:26:06 UTC (rev 27857)
+++ trunk/documentation/guides/JBDS_Release_Notes/en-US/Fixed_Issues.xml 2011-01-04 02:18:57 UTC (rev 27858)
@@ -22,7 +22,12 @@
<formalpara>
<title>Contexts and Dependency Injection (CDI)</title>
<para>
- <itemizedlist>
+ <itemizedlist>
+ <listitem>
+ <para>
+ <ulink url="https://issues.jboss.org/browse/JBIDE-7891">JBIDE-7897</ulink>: Weld is now used in place of Seam for Contexts and Dependency Injection, and this change is reflected in the icons and banners shown in the CDI wizards, which now display the Weld icon instead of the Seam icon.
+ </para>
+ </listitem>
<listitem>
<para>
<ulink url="http://jira.jboss.com/jira/browse/JBIDE-7897">JBIDE-7897</ulink>: Stereotypes that were declared with <property>@Target(type)</property> annotation could not be applied to stereotypes where the <property>@Target</property> annotation only accepted values of <property>type, method, field</property>, <property>method</property>, <property>field</property> or <property>method, field</property>. This has been corrected for this release. A stereotype allows a developer to use the same recurring bean role within a framework.
@@ -965,11 +970,17 @@
<title>Visual Page Editor</title>
<para>
<itemizedlist>
- <listitem>
- <para>
- <ulink url="https://jira.jboss.org/browse/JBIDE-7674">JBIDE-7674</ulink>: If a non-static field of a session bean class is annotated <property>@Produces</property>, <productname>CDI Tools</productname> detects the problem and treats it as a definition error in accordance with <ulink url="http://docs.jboss.org/cdi/spec/1.0/html/implementation.html#d0e2226">JSR-299 §3.4.2</ulink>. If this situation is encountered, a new <guilabel>Quick Fix</guilabel> has been implemented that provides a way to make such a field <code>static</code>.
- </para>
- </listitem>
+ <listitem>
+ <para>
+ <ulink url="https://issues.jboss.org/browse/JBIDE-7875">JBIDE-7875</ulink>: It is recommended that developers create an Annotation Literal class for every qualifier in their public API. However, writing these classes by hand can be time consuming. To address this the new <guilabel>Annotation Literal Type</guilabel> wizard provides a streamlined way to create these classes.
+ </para>
+ </listitem>
+
+ <listitem>
+ <para>
+ <ulink url="https://jira.jboss.org/browse/JBIDE-7674">JBIDE-7674</ulink>: If a non-static field of a session bean class is annotated <property>@Produces</property>, <productname>CDI Tools</productname> detects the problem and treats it as a definition error in accordance with <ulink url="http://docs.jboss.org/cdi/spec/1.0/html/implementation.html#d0e2226">JSR-299 §3.4.2</ulink>. If this situation is encountered, a new <guilabel>Quick Fix</guilabel> has been implemented that provides a way to make such a field <code>static</code>.
+ </para>
+ </listitem>
<listitem>
<para>
<ulink url="https://jira.jboss.org/browse/JBIDE-7771">JBIDE-7771</ulink>: In previous versions the HQL <guilabel>Query Parameters</guilabel> view showed only the first entry from a list of parameter values. To view the full list of parameters the ellipsis button in the <guilabel>Value</guilabel> field had to be clicked to display the <guilabel>Parameter Values</guilabel> dialog. The new <guilabel>Query Parameters</guilabel> view shows all parameters separated by the pipe (|) character when the <guilabel>Value</guilabel> field is not being edited, and reverts back to showing only the first parameter when the <guilabel>Value</guilabel> field is being edited.
13 years, 4 months
JBoss Tools SVN: r27857 - trunk/documentation/guides/JBDS_Release_Notes/en-US.
by jbosstools-commits@lists.jboss.org
Author: mcaspers
Date: 2011-01-03 20:26:06 -0500 (Mon, 03 Jan 2011)
New Revision: 27857
Modified:
trunk/documentation/guides/JBDS_Release_Notes/en-US/Fixed_Issues.xml
Log:
Added JBIDE-7911
Modified: trunk/documentation/guides/JBDS_Release_Notes/en-US/Fixed_Issues.xml
===================================================================
--- trunk/documentation/guides/JBDS_Release_Notes/en-US/Fixed_Issues.xml 2011-01-04 01:17:23 UTC (rev 27856)
+++ trunk/documentation/guides/JBDS_Release_Notes/en-US/Fixed_Issues.xml 2011-01-04 01:26:06 UTC (rev 27857)
@@ -307,10 +307,14 @@
<title>Deltacloud</title>
<para>
<itemizedlist>
- <listitem>
- <para>
- <ulink url="http://jira.jboss.com/jira/browse/JBIDE-6837">JBIDE-6837</ulink>: Deltacloud tooling has been added for this release.
- </para>
+ <listitem>
+ <para>
+ <ulink url="https://issues.jboss.org/browse/JBIDE-7911">JBIDE-7911</ulink>: Support for DeltaCloud Server 0.1.2 has been added.
+ </para>
+ <listitem>
+ <para>
+ <ulink url="http://jira.jboss.com/jira/browse/JBIDE-6837">JBIDE-6837</ulink>: Deltacloud tooling has been added for this release.
+ </para>
</listitem>
</itemizedlist>
</para>
13 years, 4 months
JBoss Tools SVN: r27856 - trunk/documentation/guides/JBDS_Release_Notes/en-US.
by jbosstools-commits@lists.jboss.org
Author: mcaspers
Date: 2011-01-03 20:17:23 -0500 (Mon, 03 Jan 2011)
New Revision: 27856
Modified:
trunk/documentation/guides/JBDS_Release_Notes/en-US/Fixed_Issues.xml
Log:
Added JBIDE-7990
Modified: trunk/documentation/guides/JBDS_Release_Notes/en-US/Fixed_Issues.xml
===================================================================
--- trunk/documentation/guides/JBDS_Release_Notes/en-US/Fixed_Issues.xml 2011-01-04 00:28:50 UTC (rev 27855)
+++ trunk/documentation/guides/JBDS_Release_Notes/en-US/Fixed_Issues.xml 2011-01-04 01:17:23 UTC (rev 27856)
@@ -450,6 +450,14 @@
<title>Hibernate</title>
<para>
<itemizedlist>
+ <listitem>
+ <para>
+ <ulink url="https://issues.jboss.org/browse/JBIDE-7990">JBIDE-7990</ulink>: The <guilabel>Properties</guilabel> View was empty when a <guilabel>Configuration</guilabel> node was selected in the <guilabel>Hibernate Configurations</guilabel> View. The properties defined in the XML configuration file were expected to be shown in the <guilabel>Properties</guilabel> View.
+ </para>
+ <para>
+ The expect behavior has been implemented by listing the properties and values defined in the Hibernate XML configuration file in the <guilabel>Properties</guilabel> View.
+ </para>
+ </listitem>
<listitem>
<para>
<ulink url="http://jira.jboss.com/jira/browse/JBIDE-6988">JBIDE-6988</ulink>: Console configuration would not take into account the schema and catalog being specified for a JPA project. This meant that if two schemas existed for one database when a user opened the created console configuration, it would error indicating there was two database schemas. The expected result is that the schema that has been set for the project would be used.
13 years, 4 months
JBoss Tools SVN: r27855 - trunk/build/target-platform.
by jbosstools-commits@lists.jboss.org
Author: nickboldt
Date: 2011-01-03 19:28:50 -0500 (Mon, 03 Jan 2011)
New Revision: 27855
Modified:
trunk/build/target-platform/publish.sh
Log:
save .blobstore when publishing JBDS target platform; add .MD5 file for zips
Modified: trunk/build/target-platform/publish.sh
===================================================================
--- trunk/build/target-platform/publish.sh 2011-01-03 23:47:16 UTC (rev 27854)
+++ trunk/build/target-platform/publish.sh 2011-01-04 00:28:50 UTC (rev 27855)
@@ -6,6 +6,7 @@
repoPath=/home/hudson/static_build_env/jbds/tools/sources/REPO
destinationPath=/home/hudson/static_build_env/jbds/target-platform
DESTINATION=tools@filemgmt.jboss.org:/downloads_htdocs/tools/updates/target-platform
+exclude=""
while [ "$#" -gt 0 ]; do
case $1 in
@@ -19,6 +20,7 @@
repoPath=/home/hudson/static_build_env/jbds/tools/sources/JBDS-REPO
destinationPath=/home/hudson/static_build_env/jbds/jbds-target-platform
DESTINATION=/qa/services/http/binaries/RHDS/updates/jbds-target-platform
+ exclude="--exclude '.blobstore'"
shift 1;;
esac
done
@@ -32,7 +34,7 @@
du -sh ${repoPath} ${destinationPath}/${targetFile}
# copy/update into central place for reuse by local downstream build jobs
- date; rsync -arzqc --delete-after --delete-excluded --rsh=ssh --exclude '.blobstore' * ${destinationPath}/${targetFile}/
+ date; rsync -arzqc --delete-after --delete-excluded --rsh=ssh ${exclude} * ${destinationPath}/${targetFile}/
du -sh ${repoPath} ${destinationPath}/${targetFile}
@@ -41,11 +43,17 @@
mkdir -p ${DESTINATION}/
fi
# if the following line fails, make sure that ${DESTINATION} is already created on target server
- date; rsync -arzqc --delete-after --delete-excluded --rsh=ssh --exclude '.blobstore' * ${DESTINATION}/latest/
+ date; rsync -arzqc --delete-after --delete-excluded --rsh=ssh ${exclude} * ${DESTINATION}/latest/
+ targetZip=/tmp/${targetFile}.zip
+
# create zip, then upload to http://download.jboss.org/jbossotools/updates/target-platform/${targetFil... for public use
- zip -q -r9 /tmp/${targetFile}.zip *
- du -sh /tmp/${targetFile}.zip
- date; rsync -arzq --rsh=ssh /tmp/${targetFile}.zip ${DESTINATION}/
- rm -f /tmp/${targetFile}.zip
+ zip -q -r9 ${targetZip} *
+ du -sh ${targetZip}
+
+ # generate MD5 sum for zip (file contains only the hash, not the hash + filename)
+ for m in $(md5sum ${targetZip}); do if [[ $m != ${targetZip} ]]; then echo $m > ${targetZip}.MD5; fi; done
+
+ date; rsync -arzq --rsh=ssh ${targetZip} ${targetZip}.MD5 ${DESTINATION}/
+ rm -f ${targetZip} ${targetZip}.MD5
fi
13 years, 4 months
JBoss Tools SVN: r27854 - trunk/deltacloud/plugins/org.jboss.tools.deltacloud.integration/src/org/jboss/tools/deltacloud/integration/wizard.
by jbosstools-commits@lists.jboss.org
Author: rob.stryker(a)jboss.com
Date: 2011-01-03 18:47:16 -0500 (Mon, 03 Jan 2011)
New Revision: 27854
Modified:
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.integration/src/org/jboss/tools/deltacloud/integration/wizard/CreateServerFromRSEJob.java
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.integration/src/org/jboss/tools/deltacloud/integration/wizard/RSEandASWizardPage.java
Log:
JBIDE-7889 - automatically scan remote system for a properties file to use to create the server is now implemented
Modified: trunk/deltacloud/plugins/org.jboss.tools.deltacloud.integration/src/org/jboss/tools/deltacloud/integration/wizard/CreateServerFromRSEJob.java
===================================================================
--- trunk/deltacloud/plugins/org.jboss.tools.deltacloud.integration/src/org/jboss/tools/deltacloud/integration/wizard/CreateServerFromRSEJob.java 2011-01-03 20:48:03 UTC (rev 27853)
+++ trunk/deltacloud/plugins/org.jboss.tools.deltacloud.integration/src/org/jboss/tools/deltacloud/integration/wizard/CreateServerFromRSEJob.java 2011-01-03 23:47:16 UTC (rev 27854)
@@ -10,11 +10,28 @@
*******************************************************************************/
package org.jboss.tools.deltacloud.integration.wizard;
+import java.io.BufferedReader;
+import java.io.IOException;
+import java.io.InputStream;
+import java.io.InputStreamReader;
+import java.io.Reader;
+import java.io.StringWriter;
+import java.io.Writer;
+import java.util.Iterator;
+import java.util.Properties;
+
import org.eclipse.core.runtime.CoreException;
+import org.eclipse.core.runtime.IPath;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.core.runtime.IStatus;
+import org.eclipse.core.runtime.NullProgressMonitor;
+import org.eclipse.core.runtime.Path;
import org.eclipse.core.runtime.Status;
+import org.eclipse.rse.core.RSECorePlugin;
import org.eclipse.rse.core.model.IHost;
+import org.eclipse.rse.core.subsystems.ISubSystem;
+import org.eclipse.rse.services.clientserver.messages.SystemMessageException;
+import org.eclipse.rse.subsystems.files.core.subsystems.IRemoteFileSubSystem;
import org.eclipse.wst.server.core.IRuntime;
import org.eclipse.wst.server.core.IRuntimeType;
import org.eclipse.wst.server.core.IRuntimeWorkingCopy;
@@ -68,9 +85,101 @@
server = RSEUtils.setServerToRSEMode(server, host);
return server;
}
- protected IServer createServerCheckRemoteDetails() {
+
+ protected IRemoteFileSubSystem findRemoteFileSubSystem() {
+ ISubSystem[] systems = RSECorePlugin.getTheSystemRegistry().getSubSystems(host);
+ for( int i = 0; i < systems.length; i++ ) {
+ if(systems[i] instanceof IRemoteFileSubSystem ) {
+ return (IRemoteFileSubSystem)systems[i];
+ }
+ }
return null;
}
+
+ protected void verifySystemConnected(IRemoteFileSubSystem system) {
+ if (!system.isConnected()) {
+ try {
+ system.connect(new NullProgressMonitor(), false);
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
+ }
+ }
+
+ protected String loadRemoteFileData(IRemoteFileSubSystem system) {
+ IPath p = new Path(data[0]);
+ IPath remoteParent = p.removeLastSegments(1);
+ String remoteFile = p.lastSegment();
+ try {
+ Writer writer = new StringWriter();
+ char[] buffer = new char[1024];
+
+ InputStream is = system.getInputStream(remoteParent.toOSString(), remoteFile, false, new NullProgressMonitor());
+ Reader reader = new BufferedReader(new InputStreamReader(is));
+ int n;
+ try {
+ while ((n = reader.read(buffer)) != -1) {
+ writer.write(buffer, 0, n);
+ }
+ return writer.toString();
+ } finally {
+ is.close();
+ }
+ } catch(SystemMessageException sme) {
+ sme.getCause().printStackTrace();
+ } catch(IOException ioe) {
+ ioe.printStackTrace();
+ }
+ return null;
+ }
+
+ protected Properties turnRemoteFileIntoProperties(String content) {
+ Properties p = new Properties();
+ String[] byLine = content.split("\n");
+ String line, key, val;
+ int eqIn;
+ for( int i = 0; i < byLine.length; i++ ) {
+ line = byLine[i].trim();
+ eqIn = line.indexOf("=");
+ if( eqIn != -1 ) {
+ key = line.substring(0, eqIn);
+ val = line.substring(eqIn+1);
+ while(val.contains("$")) {
+ String tmpKey;
+ Iterator j = p.keySet().iterator();
+ while(j.hasNext()) {
+ tmpKey = j.next().toString();
+ val = val.replace("$" + tmpKey, p.getProperty(tmpKey));
+ }
+ }
+ p.put(key, val);
+ }
+ }
+ return p;
+ }
+
+ protected IServer createServerCheckRemoteDetails() throws CoreException {
+ IRemoteFileSubSystem system = findRemoteFileSubSystem();
+ if( system != null ) {
+ verifySystemConnected(system);
+ String contents = loadRemoteFileData(system);
+ Properties props = turnRemoteFileIntoProperties(contents);
+ String home = (String) props.get("JBOSS_HOME");
+ String config = (String) props.get("JBOSS_CONFIG");
+
+ if( home != null && config != null ) {
+ System.out.println(home + ", " + config);
+ String rtId = data[1];
+ IRuntime runtime = ServerCore.findRuntime(rtId);
+ IServer newServer = null;
+ newServer = ServerCreationUtils.createServer2(name, runtime);
+ newServer = RSEUtils.setServerToRSEMode(newServer, host, home, config);
+ return newServer;
+ }
+ }
+ return null;
+ }
+
protected IServer createServerSetDetailsNow() throws CoreException {
String home = data[0];
String config = data[1];
Modified: trunk/deltacloud/plugins/org.jboss.tools.deltacloud.integration/src/org/jboss/tools/deltacloud/integration/wizard/RSEandASWizardPage.java
===================================================================
--- trunk/deltacloud/plugins/org.jboss.tools.deltacloud.integration/src/org/jboss/tools/deltacloud/integration/wizard/RSEandASWizardPage.java 2011-01-03 20:48:03 UTC (rev 27853)
+++ trunk/deltacloud/plugins/org.jboss.tools.deltacloud.integration/src/org/jboss/tools/deltacloud/integration/wizard/RSEandASWizardPage.java 2011-01-03 23:47:16 UTC (rev 27854)
@@ -46,10 +46,11 @@
private Button createRSE, createServer;
private Group serverDetailsGroup;
- private Button autoScanCheck, hardCodeServerDetails, deployOnlyRadio, addLocalRuntimeButton;
+ private Button autoScanCheck, hardCodeServerDetails, deployOnlyRadio,
+ addLocalRuntimeButton, autoAddLocalRuntimeButton;
private Text remoteDetailsLoc, serverHomeText, serverConfigText, deployFolderText;
- private Label serverHome, serverConfig, localRuntimeLabel, deployFolder;
- private Combo localRuntimeCombo;
+ private Label serverHome, serverConfig, localRuntimeLabel, autoLocalRuntimeLabel, deployFolder;
+ private Combo autoLocalRuntimeCombo,localRuntimeCombo;
private final static String CREATE_RSE_PREF_KEY = "org.jboss.tools.deltacloud.integration.wizard.RSEandASWizard.CREATE_RSE_PREF_KEY";
private final static String CREATE_SERVER_PREF_KEY = "org.jboss.tools.deltacloud.integration.wizard.RSEandASWizard.CREATE_SERVER_PREF_KEY";
@@ -86,10 +87,27 @@
remoteDetailsLoc.setLayoutData(UIUtils.createFormData(autoScanCheck,5,null,0,0,INDENTATION,100,-5));
remoteDetailsLoc.setText("/etc/sysconfig/jboss-eap");
+ autoLocalRuntimeLabel = new Label(g, SWT.NONE);
+ autoLocalRuntimeLabel.setText("Local Runtime: ");
+ autoLocalRuntimeLabel.setLayoutData(UIUtils.createFormData(remoteDetailsLoc, 7, null, 0, 0, INDENTATION, null, 0 ));
+ autoAddLocalRuntimeButton = new Button(g, SWT.DEFAULT);
+ autoAddLocalRuntimeButton.setText("Configure Runtimes...");
+ autoAddLocalRuntimeButton.setLayoutData(UIUtils.createFormData(remoteDetailsLoc, 7, null, 0, null, 0, 100, -5));
+ autoAddLocalRuntimeButton.addSelectionListener(new SelectionListener() {
+ public void widgetSelected(SelectionEvent e) {
+ configureRuntimesPressed();
+ }
+ public void widgetDefaultSelected(SelectionEvent e) {
+ }
+ });
+ autoLocalRuntimeCombo = new Combo(g, SWT.NONE);
+ autoLocalRuntimeCombo.setLayoutData(UIUtils.createFormData(remoteDetailsLoc, 5, null, 0, autoLocalRuntimeLabel, 5, autoAddLocalRuntimeButton, -5));
+
+
hardCodeServerDetails = new Button(g, SWT.RADIO);
hardCodeServerDetails.setText("Set remote server details manually");
- hardCodeServerDetails.setLayoutData(UIUtils.createFormData(remoteDetailsLoc,5,null,0,0,5,null,0));
+ hardCodeServerDetails.setLayoutData(UIUtils.createFormData(autoLocalRuntimeCombo,5,null,0,0,5,null,0));
serverHome = new Label(g, SWT.NONE);
serverHome.setText("JBoss Server Home: ");
@@ -173,6 +191,7 @@
}
}
localRuntimeCombo.setItems((String[]) names.toArray(new String[names.size()]));
+ autoLocalRuntimeCombo.setItems((String[]) names.toArray(new String[names.size()]));
}
protected void configureRuntimesPressed() {
@@ -199,8 +218,8 @@
boolean enabled = createServer.getSelection();
boolean enabled2 = false;
serverDetailsGroup.setEnabled(enabled);
- autoScanCheck.setEnabled(enabled2);
- remoteDetailsLoc.setEnabled(enabled2);
+ autoScanCheck.setEnabled(enabled);
+ remoteDetailsLoc.setEnabled(enabled);
hardCodeServerDetails.setEnabled(enabled);
serverHomeText.setEnabled(enabled);
serverConfigText.setEnabled(enabled);
@@ -209,6 +228,8 @@
deployFolder.setEnabled(enabled);
deployFolderText.setEnabled(enabled);
deployOnlyRadio.setEnabled(enabled);
+ localRuntimeLabel.setEnabled(enabled);
+ localRuntimeCombo.setEnabled(enabled);
System.out.println(deployFolderText.getEditable());
}
@@ -233,7 +254,9 @@
data = new String[]{deployFolderText.getText()};
} else if( autoScanCheck.getSelection()) {
type = CreateServerFromRSEJob.CHECK_SERVER_FOR_DETAILS;
- data = new String[]{remoteDetailsLoc.getText()};
+ int index = autoLocalRuntimeCombo.getSelectionIndex();
+ String rtId = localRuntimes.get(index).getId();
+ data = new String[]{remoteDetailsLoc.getText(), rtId};
} else if( hardCodeServerDetails.getSelection()) {
type = CreateServerFromRSEJob.SET_DETAILS_NOW;
int index = localRuntimeCombo.getSelectionIndex();
13 years, 4 months