You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jaxme-dev@ws.apache.org by jo...@apache.org on 2004/01/24 23:12:06 UTC
cvs commit: ws-jaxme/src/jaxme/org/apache/ws/jaxme/generator XJCTask.java
jochen 2004/01/24 14:12:06
Modified: src/jaxme/org/apache/ws/jaxme/generator XJCTask.java
Log:
Fixed property name from "packageName" to "package", for compatibility with the RI.
Revision Changes Path
1.10 +10 -5 ws-jaxme/src/jaxme/org/apache/ws/jaxme/generator/XJCTask.java
Index: XJCTask.java
===================================================================
RCS file: /home/cvs/ws-jaxme/src/jaxme/org/apache/ws/jaxme/generator/XJCTask.java,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- XJCTask.java 7 Jan 2004 02:07:20 -0000 1.9
+++ XJCTask.java 24 Jan 2004 22:12:06 -0000 1.10
@@ -105,7 +105,7 @@
* <td>No, false</td>
* </tr>
* <tr>
- * <td>packageName</td>
+ * <td>package</td>
* <td>Specifies the generated Java sources package name. Overrides package specifications in
* the schema bindings, if any.</td>
* <td>No, a package may be specified in the schema bindings.</td>
@@ -486,17 +486,22 @@
/** <p>Returns the generated Java sources package name. A non-null package specification
* overrides package specifications in the schema bindings, if any.</p>
*/
- public String getPackageName() {
+ public String getPackage() {
return packageName;
}
/** <p>Sets the generated Java sources package name. A non-null package specification
* overrides package specifications in the schema bindings, if any.</p>
*/
- public void setPackageName(String pPackageName) {
+ public void setPackage(String pPackageName) {
packageName = pPackageName;
}
+ public void setPackageName(String pPackageName) {
+ log("Warning: The 'packageName' attribute is updated to 'package', for compatibility reasons. Please update your build script.", Project.MSG_WARN);
+ setPackage(pPackageName);
+ }
+
/** <p>Returns, whether generated Java source files are in read-only mode.</p>
*/
public boolean isReadOnly() {
@@ -922,8 +927,8 @@
generator.setForcingOverwrite(isForce());
generator.setSettingReadOnly(isReadOnly());
generator.setValidating(isValidating());
- if (getPackageName() != null) {
- generator.setProperty("jaxme.package.name", getPackageName());
+ if (getPackage() != null) {
+ generator.setProperty("jaxme.package.name", getPackage());
}
Property[] myProperties = getProperties();
for (int i = 0; i < myProperties.length; i++) {
---------------------------------------------------------------------
To unsubscribe, e-mail: jaxme-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: jaxme-dev-help@ws.apache.org