Browse Source

unrestrict the dbvendor for the websphere element of the ejbjar task.

Bugzilla Report 40475.


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@442789 13f79535-47bb-0310-9956-ffa450edef68
master
Antoine Levy-Lambert 19 years ago
parent
commit
2b9310fc47
3 changed files with 25 additions and 32 deletions
  1. +3
    -0
      WHATSNEW
  2. +8
    -8
      docs/manual/OptionalTasks/ejb.html
  3. +14
    -24
      src/main/org/apache/tools/ant/taskdefs/optional/ejb/WebsphereDeploymentTool.java

+ 3
- 0
WHATSNEW View File

@@ -6,6 +6,9 @@ Changes that could break older environments:

* <script> and <scriptdef> now set the current thread context.

* unrestrict the dbvendor names in the websphere element of the ejbjar task.
Bugzilla Report 40475.

Fixed bugs:
-----------



+ 8
- 8
docs/manual/OptionalTasks/ejb.html View File

@@ -1353,14 +1353,14 @@ the classpath of the ejbdeploy tool and set the <i>websphere.home</i> property (
</tr>
<tr>
<td valign="top">dbVendor</td>
<td valign="top">This option is passed to ejbdeploy. Valid options are for example:
<ul>
<li>SQL92</li> <li>SQL99</li> <li>DB2UDBWIN_V71</li>
<li>DB2UDBOS390_V6</li> <li>DB2UDBAS400_V4R5</li> <li>ORACLE_V8</li>
<li>INFORMIX_V92</li> <li>SYBASE_V1192</li> <li>MYSQL_V323</li>
<li>MSSQLSERVER_V7</li>
</ul>
This is also used to determine the name of the Map.mapxmi and
<td valign="top">This option is passed to ejbdeploy.
<p>
Valid options can be obtained by running the following command:
<code>
&lt;WAS_HOME&gt;/bin/EJBDeploy.[sh/bat] -help
</code>
</p>
This is also used to determine the name of the Map.mapxmi and
Schema.dbxmi files, for example Account-DB2UDBWIN_V71-Map.mapxmi
and Account-DB2UDBWIN_V71-Schema.dbxmi.
</td>


+ 14
- 24
src/main/org/apache/tools/ant/taskdefs/optional/ejb/WebsphereDeploymentTool.java View File

@@ -60,20 +60,6 @@ import org.apache.tools.ant.util.FileUtils;
*
*/
public class WebsphereDeploymentTool extends GenericDeploymentTool {
/**
* Enumerated attribute with the values for the database vendor types
*
*/
public static class DBVendor extends EnumeratedAttribute {
public String[] getValues() {
return new String[]{
"SQL92", "SQL99", "DB2UDBWIN_V71", "DB2UDBOS390_V6", "DB2UDBAS400_V4R5",
"ORACLE_V8", "INFORMIX_V92", "SYBASE_V1192", "MSSQLSERVER_V7", "MYSQL_V323"
};
}
}


public static final String PUBLICID_EJB11
= "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 1.1//EN";
public static final String PUBLICID_EJB20
@@ -161,18 +147,22 @@ public class WebsphereDeploymentTool extends GenericDeploymentTool {


/** Sets the DB Vendor for the Entity Bean mapping ; optional.
* Valid options are for example:
* <ul>
* <li>SQL92</li> <li>SQL99</li> <li>DB2UDBWIN_V71</li>
* <li>DB2UDBOS390_V6</li> <li>DB2UDBAS400_V4R5</li> <li>ORACLE_V8</li>
* <li>INFORMIX_V92</li> <li>SYBASE_V1192</li> <li>MYSQL_V323</li>
* </ul>
* <p>
* Valid options can be obtained by running the following command:
* <code>
* &lt;WAS_HOME&gt;/bin/EJBDeploy.[sh/bat] -help
* </code>
* </p>
* <p>
* This is also used to determine the name of the Map.mapxmi and
* Schema.dbxmi files, for example Account-DB2UDBWIN_V71-Map.mapxmi
* and Account-DB2UDBWIN_V71-Schema.dbxmi.
* Schema.dbxmi files, for example Account-DB2UDB_V81-Map.mapxmi
* and Account-DB2UDB_V81-Schema.dbxmi.
* </p>
*
* @param dbVendor database vendor type
*/
public void setDbvendor(DBVendor dbvendor) {
this.dbVendor = dbvendor.getValue();
public void setDbvendor(String dbvendor) {
this.dbVendor = dbvendor;
}




Loading…
Cancel
Save