You are viewing a plain text version of this content. The canonical link for it is here.
Posted to kato-commits@incubator.apache.org by mo...@apache.org on 2009/11/23 15:54:15 UTC
svn commit: r883384 [2/47] - in /incubator/kato/trunk/org.apache.kato: ./
kato.anttasks/src/main/java/org/apache/kato/anttasks/
kato.anttasks/src/main/java/org/apache/kato/anttasks/sitebuilder/
kato.anttasks/src/main/java/org/apache/kato/anttasks/tck/ ...
Modified: incubator/kato/trunk/org.apache.kato/LICENSE
URL: http://svn.apache.org/viewvc/incubator/kato/trunk/org.apache.kato/LICENSE?rev=883384&r1=883383&r2=883384&view=diff
==============================================================================
--- incubator/kato/trunk/org.apache.kato/LICENSE (original)
+++ incubator/kato/trunk/org.apache.kato/LICENSE Mon Nov 23 15:53:48 2009
@@ -1,202 +1,202 @@
-
- Apache License
- Version 2.0, January 2004
- http://www.apache.org/licenses/
-
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
-
- 1. Definitions.
-
- "License" shall mean the terms and conditions for use, reproduction,
- and distribution as defined by Sections 1 through 9 of this document.
-
- "Licensor" shall mean the copyright owner or entity authorized by
- the copyright owner that is granting the License.
-
- "Legal Entity" shall mean the union of the acting entity and all
- other entities that control, are controlled by, or are under common
- control with that entity. For the purposes of this definition,
- "control" means (i) the power, direct or indirect, to cause the
- direction or management of such entity, whether by contract or
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
- outstanding shares, or (iii) beneficial ownership of such entity.
-
- "You" (or "Your") shall mean an individual or Legal Entity
- exercising permissions granted by this License.
-
- "Source" form shall mean the preferred form for making modifications,
- including but not limited to software source code, documentation
- source, and configuration files.
-
- "Object" form shall mean any form resulting from mechanical
- transformation or translation of a Source form, including but
- not limited to compiled object code, generated documentation,
- and conversions to other media types.
-
- "Work" shall mean the work of authorship, whether in Source or
- Object form, made available under the License, as indicated by a
- copyright notice that is included in or attached to the work
- (an example is provided in the Appendix below).
-
- "Derivative Works" shall mean any work, whether in Source or Object
- form, that is based on (or derived from) the Work and for which the
- editorial revisions, annotations, elaborations, or other modifications
- represent, as a whole, an original work of authorship. For the purposes
- of this License, Derivative Works shall not include works that remain
- separable from, or merely link (or bind by name) to the interfaces of,
- the Work and Derivative Works thereof.
-
- "Contribution" shall mean any work of authorship, including
- the original version of the Work and any modifications or additions
- to that Work or Derivative Works thereof, that is intentionally
- submitted to Licensor for inclusion in the Work by the copyright owner
- or by an individual or Legal Entity authorized to submit on behalf of
- the copyright owner. For the purposes of this definition, "submitted"
- means any form of electronic, verbal, or written communication sent
- to the Licensor or its representatives, including but not limited to
- communication on electronic mailing lists, source code control systems,
- and issue tracking systems that are managed by, or on behalf of, the
- Licensor for the purpose of discussing and improving the Work, but
- excluding communication that is conspicuously marked or otherwise
- designated in writing by the copyright owner as "Not a Contribution."
-
- "Contributor" shall mean Licensor and any individual or Legal Entity
- on behalf of whom a Contribution has been received by Licensor and
- subsequently incorporated within the Work.
-
- 2. Grant of Copyright License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- copyright license to reproduce, prepare Derivative Works of,
- publicly display, publicly perform, sublicense, and distribute the
- Work and such Derivative Works in Source or Object form.
-
- 3. Grant of Patent License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- (except as stated in this section) patent license to make, have made,
- use, offer to sell, sell, import, and otherwise transfer the Work,
- where such license applies only to those patent claims licensable
- by such Contributor that are necessarily infringed by their
- Contribution(s) alone or by combination of their Contribution(s)
- with the Work to which such Contribution(s) was submitted. If You
- institute patent litigation against any entity (including a
- cross-claim or counterclaim in a lawsuit) alleging that the Work
- or a Contribution incorporated within the Work constitutes direct
- or contributory patent infringement, then any patent licenses
- granted to You under this License for that Work shall terminate
- as of the date such litigation is filed.
-
- 4. Redistribution. You may reproduce and distribute copies of the
- Work or Derivative Works thereof in any medium, with or without
- modifications, and in Source or Object form, provided that You
- meet the following conditions:
-
- (a) You must give any other recipients of the Work or
- Derivative Works a copy of this License; and
-
- (b) You must cause any modified files to carry prominent notices
- stating that You changed the files; and
-
- (c) You must retain, in the Source form of any Derivative Works
- that You distribute, all copyright, patent, trademark, and
- attribution notices from the Source form of the Work,
- excluding those notices that do not pertain to any part of
- the Derivative Works; and
-
- (d) If the Work includes a "NOTICE" text file as part of its
- distribution, then any Derivative Works that You distribute must
- include a readable copy of the attribution notices contained
- within such NOTICE file, excluding those notices that do not
- pertain to any part of the Derivative Works, in at least one
- of the following places: within a NOTICE text file distributed
- as part of the Derivative Works; within the Source form or
- documentation, if provided along with the Derivative Works; or,
- within a display generated by the Derivative Works, if and
- wherever such third-party notices normally appear. The contents
- of the NOTICE file are for informational purposes only and
- do not modify the License. You may add Your own attribution
- notices within Derivative Works that You distribute, alongside
- or as an addendum to the NOTICE text from the Work, provided
- that such additional attribution notices cannot be construed
- as modifying the License.
-
- You may add Your own copyright statement to Your modifications and
- may provide additional or different license terms and conditions
- for use, reproduction, or distribution of Your modifications, or
- for any such Derivative Works as a whole, provided Your use,
- reproduction, and distribution of the Work otherwise complies with
- the conditions stated in this License.
-
- 5. Submission of Contributions. Unless You explicitly state otherwise,
- any Contribution intentionally submitted for inclusion in the Work
- by You to the Licensor shall be under the terms and conditions of
- this License, without any additional terms or conditions.
- Notwithstanding the above, nothing herein shall supersede or modify
- the terms of any separate license agreement you may have executed
- with Licensor regarding such Contributions.
-
- 6. Trademarks. This License does not grant permission to use the trade
- names, trademarks, service marks, or product names of the Licensor,
- except as required for reasonable and customary use in describing the
- origin of the Work and reproducing the content of the NOTICE file.
-
- 7. Disclaimer of Warranty. Unless required by applicable law or
- agreed to in writing, Licensor provides the Work (and each
- Contributor provides its Contributions) on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
- implied, including, without limitation, any warranties or conditions
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
- PARTICULAR PURPOSE. You are solely responsible for determining the
- appropriateness of using or redistributing the Work and assume any
- risks associated with Your exercise of permissions under this License.
-
- 8. Limitation of Liability. In no event and under no legal theory,
- whether in tort (including negligence), contract, or otherwise,
- unless required by applicable law (such as deliberate and grossly
- negligent acts) or agreed to in writing, shall any Contributor be
- liable to You for damages, including any direct, indirect, special,
- incidental, or consequential damages of any character arising as a
- result of this License or out of the use or inability to use the
- Work (including but not limited to damages for loss of goodwill,
- work stoppage, computer failure or malfunction, or any and all
- other commercial damages or losses), even if such Contributor
- has been advised of the possibility of such damages.
-
- 9. Accepting Warranty or Additional Liability. While redistributing
- the Work or Derivative Works thereof, You may choose to offer,
- and charge a fee for, acceptance of support, warranty, indemnity,
- or other liability obligations and/or rights consistent with this
- License. However, in accepting such obligations, You may act only
- on Your own behalf and on Your sole responsibility, not on behalf
- of any other Contributor, and only if You agree to indemnify,
- defend, and hold each Contributor harmless for any liability
- incurred by, or claims asserted against, such Contributor by reason
- of your accepting any such warranty or additional liability.
-
- END OF TERMS AND CONDITIONS
-
- APPENDIX: How to apply the Apache License to your work.
-
- To apply the Apache License to your work, attach the following
- boilerplate notice, with the fields enclosed by brackets "[]"
- replaced with your own identifying information. (Don't include
- the brackets!) The text should be enclosed in the appropriate
- comment syntax for the file format. We also recommend that a
- file or class name and description of purpose be included on the
- same "printed page" as the copyright notice for easier
- identification within third-party archives.
-
- Copyright [yyyy] [name of copyright owner]
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
+
+ Apache License
+ Version 2.0, January 2004
+ http://www.apache.org/licenses/
+
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+ 1. Definitions.
+
+ "License" shall mean the terms and conditions for use, reproduction,
+ and distribution as defined by Sections 1 through 9 of this document.
+
+ "Licensor" shall mean the copyright owner or entity authorized by
+ the copyright owner that is granting the License.
+
+ "Legal Entity" shall mean the union of the acting entity and all
+ other entities that control, are controlled by, or are under common
+ control with that entity. For the purposes of this definition,
+ "control" means (i) the power, direct or indirect, to cause the
+ direction or management of such entity, whether by contract or
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
+ outstanding shares, or (iii) beneficial ownership of such entity.
+
+ "You" (or "Your") shall mean an individual or Legal Entity
+ exercising permissions granted by this License.
+
+ "Source" form shall mean the preferred form for making modifications,
+ including but not limited to software source code, documentation
+ source, and configuration files.
+
+ "Object" form shall mean any form resulting from mechanical
+ transformation or translation of a Source form, including but
+ not limited to compiled object code, generated documentation,
+ and conversions to other media types.
+
+ "Work" shall mean the work of authorship, whether in Source or
+ Object form, made available under the License, as indicated by a
+ copyright notice that is included in or attached to the work
+ (an example is provided in the Appendix below).
+
+ "Derivative Works" shall mean any work, whether in Source or Object
+ form, that is based on (or derived from) the Work and for which the
+ editorial revisions, annotations, elaborations, or other modifications
+ represent, as a whole, an original work of authorship. For the purposes
+ of this License, Derivative Works shall not include works that remain
+ separable from, or merely link (or bind by name) to the interfaces of,
+ the Work and Derivative Works thereof.
+
+ "Contribution" shall mean any work of authorship, including
+ the original version of the Work and any modifications or additions
+ to that Work or Derivative Works thereof, that is intentionally
+ submitted to Licensor for inclusion in the Work by the copyright owner
+ or by an individual or Legal Entity authorized to submit on behalf of
+ the copyright owner. For the purposes of this definition, "submitted"
+ means any form of electronic, verbal, or written communication sent
+ to the Licensor or its representatives, including but not limited to
+ communication on electronic mailing lists, source code control systems,
+ and issue tracking systems that are managed by, or on behalf of, the
+ Licensor for the purpose of discussing and improving the Work, but
+ excluding communication that is conspicuously marked or otherwise
+ designated in writing by the copyright owner as "Not a Contribution."
+
+ "Contributor" shall mean Licensor and any individual or Legal Entity
+ on behalf of whom a Contribution has been received by Licensor and
+ subsequently incorporated within the Work.
+
+ 2. Grant of Copyright License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ copyright license to reproduce, prepare Derivative Works of,
+ publicly display, publicly perform, sublicense, and distribute the
+ Work and such Derivative Works in Source or Object form.
+
+ 3. Grant of Patent License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ (except as stated in this section) patent license to make, have made,
+ use, offer to sell, sell, import, and otherwise transfer the Work,
+ where such license applies only to those patent claims licensable
+ by such Contributor that are necessarily infringed by their
+ Contribution(s) alone or by combination of their Contribution(s)
+ with the Work to which such Contribution(s) was submitted. If You
+ institute patent litigation against any entity (including a
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
+ or a Contribution incorporated within the Work constitutes direct
+ or contributory patent infringement, then any patent licenses
+ granted to You under this License for that Work shall terminate
+ as of the date such litigation is filed.
+
+ 4. Redistribution. You may reproduce and distribute copies of the
+ Work or Derivative Works thereof in any medium, with or without
+ modifications, and in Source or Object form, provided that You
+ meet the following conditions:
+
+ (a) You must give any other recipients of the Work or
+ Derivative Works a copy of this License; and
+
+ (b) You must cause any modified files to carry prominent notices
+ stating that You changed the files; and
+
+ (c) You must retain, in the Source form of any Derivative Works
+ that You distribute, all copyright, patent, trademark, and
+ attribution notices from the Source form of the Work,
+ excluding those notices that do not pertain to any part of
+ the Derivative Works; and
+
+ (d) If the Work includes a "NOTICE" text file as part of its
+ distribution, then any Derivative Works that You distribute must
+ include a readable copy of the attribution notices contained
+ within such NOTICE file, excluding those notices that do not
+ pertain to any part of the Derivative Works, in at least one
+ of the following places: within a NOTICE text file distributed
+ as part of the Derivative Works; within the Source form or
+ documentation, if provided along with the Derivative Works; or,
+ within a display generated by the Derivative Works, if and
+ wherever such third-party notices normally appear. The contents
+ of the NOTICE file are for informational purposes only and
+ do not modify the License. You may add Your own attribution
+ notices within Derivative Works that You distribute, alongside
+ or as an addendum to the NOTICE text from the Work, provided
+ that such additional attribution notices cannot be construed
+ as modifying the License.
+
+ You may add Your own copyright statement to Your modifications and
+ may provide additional or different license terms and conditions
+ for use, reproduction, or distribution of Your modifications, or
+ for any such Derivative Works as a whole, provided Your use,
+ reproduction, and distribution of the Work otherwise complies with
+ the conditions stated in this License.
+
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
+ any Contribution intentionally submitted for inclusion in the Work
+ by You to the Licensor shall be under the terms and conditions of
+ this License, without any additional terms or conditions.
+ Notwithstanding the above, nothing herein shall supersede or modify
+ the terms of any separate license agreement you may have executed
+ with Licensor regarding such Contributions.
+
+ 6. Trademarks. This License does not grant permission to use the trade
+ names, trademarks, service marks, or product names of the Licensor,
+ except as required for reasonable and customary use in describing the
+ origin of the Work and reproducing the content of the NOTICE file.
+
+ 7. Disclaimer of Warranty. Unless required by applicable law or
+ agreed to in writing, Licensor provides the Work (and each
+ Contributor provides its Contributions) on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ implied, including, without limitation, any warranties or conditions
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+ PARTICULAR PURPOSE. You are solely responsible for determining the
+ appropriateness of using or redistributing the Work and assume any
+ risks associated with Your exercise of permissions under this License.
+
+ 8. Limitation of Liability. In no event and under no legal theory,
+ whether in tort (including negligence), contract, or otherwise,
+ unless required by applicable law (such as deliberate and grossly
+ negligent acts) or agreed to in writing, shall any Contributor be
+ liable to You for damages, including any direct, indirect, special,
+ incidental, or consequential damages of any character arising as a
+ result of this License or out of the use or inability to use the
+ Work (including but not limited to damages for loss of goodwill,
+ work stoppage, computer failure or malfunction, or any and all
+ other commercial damages or losses), even if such Contributor
+ has been advised of the possibility of such damages.
+
+ 9. Accepting Warranty or Additional Liability. While redistributing
+ the Work or Derivative Works thereof, You may choose to offer,
+ and charge a fee for, acceptance of support, warranty, indemnity,
+ or other liability obligations and/or rights consistent with this
+ License. However, in accepting such obligations, You may act only
+ on Your own behalf and on Your sole responsibility, not on behalf
+ of any other Contributor, and only if You agree to indemnify,
+ defend, and hold each Contributor harmless for any liability
+ incurred by, or claims asserted against, such Contributor by reason
+ of your accepting any such warranty or additional liability.
+
+ END OF TERMS AND CONDITIONS
+
+ APPENDIX: How to apply the Apache License to your work.
+
+ To apply the Apache License to your work, attach the following
+ boilerplate notice, with the fields enclosed by brackets "[]"
+ replaced with your own identifying information. (Don't include
+ the brackets!) The text should be enclosed in the appropriate
+ comment syntax for the file format. We also recommend that a
+ file or class name and description of purpose be included on the
+ same "printed page" as the copyright notice for easier
+ identification within third-party archives.
+
+ Copyright [yyyy] [name of copyright owner]
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
limitations under the License.
\ No newline at end of file
Propchange: incubator/kato/trunk/org.apache.kato/LICENSE
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/kato/trunk/org.apache.kato/NOTICE
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/kato/trunk/org.apache.kato/README
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/kato/trunk/org.apache.kato/kato.anttasks/src/main/java/org/apache/kato/anttasks/AbstractJavaDocAntTask.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: incubator/kato/trunk/org.apache.kato/kato.anttasks/src/main/java/org/apache/kato/anttasks/sitebuilder/Archive.java
URL: http://svn.apache.org/viewvc/incubator/kato/trunk/org.apache.kato/kato.anttasks/src/main/java/org/apache/kato/anttasks/sitebuilder/Archive.java?rev=883384&r1=883383&r2=883384&view=diff
==============================================================================
--- incubator/kato/trunk/org.apache.kato/kato.anttasks/src/main/java/org/apache/kato/anttasks/sitebuilder/Archive.java (original)
+++ incubator/kato/trunk/org.apache.kato/kato.anttasks/src/main/java/org/apache/kato/anttasks/sitebuilder/Archive.java Mon Nov 23 15:53:48 2009
@@ -1,33 +1,33 @@
-/*******************************************************************************
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- ******************************************************************************/
-package org.apache.kato.anttasks.sitebuilder;
-
-public class Archive {
-
- private String path=null;
- private String url=null;
- public String getPath() {
- return path;
- }
- public void setPath(String path) {
- this.path = path;
- }
- public String getUrl() {
- return url;
- }
- public void setUrl(String url) {
- this.url = url;
- }
-
-}
+/*******************************************************************************
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ ******************************************************************************/
+package org.apache.kato.anttasks.sitebuilder;
+
+public class Archive {
+
+ private String path=null;
+ private String url=null;
+ public String getPath() {
+ return path;
+ }
+ public void setPath(String path) {
+ this.path = path;
+ }
+ public String getUrl() {
+ return url;
+ }
+ public void setUrl(String url) {
+ this.url = url;
+ }
+
+}
Propchange: incubator/kato/trunk/org.apache.kato/kato.anttasks/src/main/java/org/apache/kato/anttasks/sitebuilder/Archive.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: incubator/kato/trunk/org.apache.kato/kato.anttasks/src/main/java/org/apache/kato/anttasks/sitebuilder/Category.java
URL: http://svn.apache.org/viewvc/incubator/kato/trunk/org.apache.kato/kato.anttasks/src/main/java/org/apache/kato/anttasks/sitebuilder/Category.java?rev=883384&r1=883383&r2=883384&view=diff
==============================================================================
--- incubator/kato/trunk/org.apache.kato/kato.anttasks/src/main/java/org/apache/kato/anttasks/sitebuilder/Category.java (original)
+++ incubator/kato/trunk/org.apache.kato/kato.anttasks/src/main/java/org/apache/kato/anttasks/sitebuilder/Category.java Mon Nov 23 15:53:48 2009
@@ -1,75 +1,75 @@
-/*******************************************************************************
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- ******************************************************************************/
-package org.apache.kato.anttasks.sitebuilder;
-
-import java.util.Iterator;
-import java.util.Vector;
-
-import org.apache.tools.ant.BuildException;
-import org.apache.tools.ant.DirectoryScanner;
-import org.apache.tools.ant.types.FileSet;
-
-public class Category {
-
- private String name=null;
- private String label=null;
- private String urlPrefix="";
- private Description description=null;
- private Vector filesets=new Vector();
- public void setName(String name) {
- this.name=name;
- }
- public String getLabel() {
- return label;
- }
- public void setLabel(String label) {
- this.label = label;
- }
- public String getName() {
- return name;
- }
- public void addFileSet(FileSet fileset) {
- filesets.add(fileset);
- }
-
- public Vector getFiles() {
- Vector results=new Vector();
- Iterator i=filesets.iterator();
- while(i.hasNext()) {
- FileSet fs=(FileSet) i.next();
- DirectoryScanner scanner=fs.getDirectoryScanner();
- String[] files=scanner.getIncludedFiles();
- if(files!=null && files.length>0) {
- for(int f=0;f<files.length;f++) {
- results.add(files[f]);
- }
- }
- }
- return results;
- }
- public String getUrlPrefix() {
- return urlPrefix;
- }
- public void setUrlPrefix(String urlPrefix) {
- this.urlPrefix = urlPrefix;
- }
- public void addDescription(Description d) {
- if(description!=null) throw new BuildException("only one description allowed");
- this.description=d;
- }
- public String getDescriptionText() {
- if(description==null) return "";
- return description.getText();
- }
-}
+/*******************************************************************************
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ ******************************************************************************/
+package org.apache.kato.anttasks.sitebuilder;
+
+import java.util.Iterator;
+import java.util.Vector;
+
+import org.apache.tools.ant.BuildException;
+import org.apache.tools.ant.DirectoryScanner;
+import org.apache.tools.ant.types.FileSet;
+
+public class Category {
+
+ private String name=null;
+ private String label=null;
+ private String urlPrefix="";
+ private Description description=null;
+ private Vector filesets=new Vector();
+ public void setName(String name) {
+ this.name=name;
+ }
+ public String getLabel() {
+ return label;
+ }
+ public void setLabel(String label) {
+ this.label = label;
+ }
+ public String getName() {
+ return name;
+ }
+ public void addFileSet(FileSet fileset) {
+ filesets.add(fileset);
+ }
+
+ public Vector getFiles() {
+ Vector results=new Vector();
+ Iterator i=filesets.iterator();
+ while(i.hasNext()) {
+ FileSet fs=(FileSet) i.next();
+ DirectoryScanner scanner=fs.getDirectoryScanner();
+ String[] files=scanner.getIncludedFiles();
+ if(files!=null && files.length>0) {
+ for(int f=0;f<files.length;f++) {
+ results.add(files[f]);
+ }
+ }
+ }
+ return results;
+ }
+ public String getUrlPrefix() {
+ return urlPrefix;
+ }
+ public void setUrlPrefix(String urlPrefix) {
+ this.urlPrefix = urlPrefix;
+ }
+ public void addDescription(Description d) {
+ if(description!=null) throw new BuildException("only one description allowed");
+ this.description=d;
+ }
+ public String getDescriptionText() {
+ if(description==null) return "";
+ return description.getText();
+ }
+}
Propchange: incubator/kato/trunk/org.apache.kato/kato.anttasks/src/main/java/org/apache/kato/anttasks/sitebuilder/Category.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: incubator/kato/trunk/org.apache.kato/kato.anttasks/src/main/java/org/apache/kato/anttasks/sitebuilder/Description.java
URL: http://svn.apache.org/viewvc/incubator/kato/trunk/org.apache.kato/kato.anttasks/src/main/java/org/apache/kato/anttasks/sitebuilder/Description.java?rev=883384&r1=883383&r2=883384&view=diff
==============================================================================
--- incubator/kato/trunk/org.apache.kato/kato.anttasks/src/main/java/org/apache/kato/anttasks/sitebuilder/Description.java (original)
+++ incubator/kato/trunk/org.apache.kato/kato.anttasks/src/main/java/org/apache/kato/anttasks/sitebuilder/Description.java Mon Nov 23 15:53:48 2009
@@ -1,35 +1,35 @@
-/*******************************************************************************
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- ******************************************************************************/
-package org.apache.kato.anttasks.sitebuilder;
-
-public class Description {
- private StringBuffer text=new StringBuffer();
- private String url=null;
-
- public void addText(String text) {
- this.text.append(text);
- }
-
- public String getText() {
- return text.toString().trim();
- }
-
- public String getUrl() {
- return url;
- }
-
- public void setUrl(String url) {
- this.url = url;
- }
-}
+/*******************************************************************************
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ ******************************************************************************/
+package org.apache.kato.anttasks.sitebuilder;
+
+public class Description {
+ private StringBuffer text=new StringBuffer();
+ private String url=null;
+
+ public void addText(String text) {
+ this.text.append(text);
+ }
+
+ public String getText() {
+ return text.toString().trim();
+ }
+
+ public String getUrl() {
+ return url;
+ }
+
+ public void setUrl(String url) {
+ this.url = url;
+ }
+}
Propchange: incubator/kato/trunk/org.apache.kato/kato.anttasks/src/main/java/org/apache/kato/anttasks/sitebuilder/Description.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: incubator/kato/trunk/org.apache.kato/kato.anttasks/src/main/java/org/apache/kato/anttasks/sitebuilder/SiteBuilder.java
URL: http://svn.apache.org/viewvc/incubator/kato/trunk/org.apache.kato/kato.anttasks/src/main/java/org/apache/kato/anttasks/sitebuilder/SiteBuilder.java?rev=883384&r1=883383&r2=883384&view=diff
==============================================================================
--- incubator/kato/trunk/org.apache.kato/kato.anttasks/src/main/java/org/apache/kato/anttasks/sitebuilder/SiteBuilder.java (original)
+++ incubator/kato/trunk/org.apache.kato/kato.anttasks/src/main/java/org/apache/kato/anttasks/sitebuilder/SiteBuilder.java Mon Nov 23 15:53:48 2009
@@ -1,190 +1,190 @@
-/*******************************************************************************
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- ******************************************************************************/
-package org.apache.kato.anttasks.sitebuilder;
-
-import java.io.File;
-import java.io.FileWriter;
-import java.io.IOException;
-import java.io.PrintWriter;
-import java.net.URL;
-import java.util.Iterator;
-import java.util.Vector;
-
-import org.apache.tools.ant.BuildException;
-import org.apache.tools.ant.Task;
-
-public class SiteBuilder extends Task {
-
- private File siteFile=null; // location of file that will be created
- private URL mirrorsURL=null;
- private Vector categories=new Vector();
- private Vector archives=new Vector();
- private Description description=null;
- public void setFile(File siteFile) {
- this.siteFile=siteFile;
- }
-
- public void addDescription(Description d) {
- if(description!=null) throw new BuildException("only one description allowed");
- this.description=d;
- }
- public void addCategory(Category category) {
- categories.add(category);
- }
- public void addArchive(Archive archive) {
- archives.add(archive);
- }
- public void setMirrorsURL(URL url) {
- this.mirrorsURL=url;
- }
-
- public void execute() throws BuildException {
- try {
- execute1();
- } catch(Exception e) {
- e.printStackTrace();
- }
- }
- public void execute1() throws BuildException {
-
- if(siteFile==null) throw new BuildException("missing site file");
-
- if(categories.isEmpty()) throw new BuildException("no categories specified");
-
- try {
- FileWriter fw=new FileWriter(siteFile);
- PrintWriter pw=new PrintWriter(fw);
-
- // write document header
-
- pw.println("<?xml version=\"1.0\" encoding=\"UTF-8\"?>");
- pw.println("<!-- AUTO GENERATED SITE FILE using "+getClass().getName()+" -->");
-
- // write start site tag
-
- pw.print("<site");
- if(mirrorsURL!=null) {
- pw.print(" mirrorsURL=\""+mirrorsURL.toExternalForm()+"\" ");
- }
- pw.println(">");
-
- // write description
- if(description!=null) {
-
- pw.print("<description");
- String url=description.getUrl();
- if(url!=null) pw.print(" url=\""+url+"\" ");
- pw.println(">");
- pw.println(description.getText().trim());
- pw.println("</description>");
- }
- // write categories
- Iterator categoryIterator=categories.iterator();
- while(categoryIterator.hasNext()) {
- Category category=(Category) categoryIterator.next();
- writeCategoryEntries(pw,category);
- }
- // write categories
- categoryIterator=categories.iterator();
- while(categoryIterator.hasNext()) {
- Category category=(Category) categoryIterator.next();
- writeCategoryHeaders(pw,category);
- }
- // write archives
- writeArchives(pw);
-
- // write end site tag
-
- pw.println("</site>");
-
- pw.close();
- } catch (IOException e) {
-
- throw new BuildException(e);
- }
-
- }
-
-
- private void writeArchives(PrintWriter pw) {
- Iterator i=archives.iterator();
- while(i.hasNext()) {
- Archive archive=(Archive) i.next();
- String path=archive.getPath();
- String url=archive.getUrl();
- pw.println("<archive path=\""+path+"\" url=\""+url+"\"/>");
- }
-
- }
-
- private void writeCategoryEntries(PrintWriter pw, Category category) {
- String label=category.getLabel();
- if(label==null) throw new BuildException("category label missing");
- String name=category.getName();
- if(name==null) throw new BuildException("category name missing");
-
- String urlPrefix=category.getUrlPrefix();
-
- Vector files=category.getFiles();
- Iterator fileIterator=files.iterator();
- while(fileIterator.hasNext()) {
- String fileName=(String) fileIterator.next();
- int underscore=fileName.indexOf("_");
- String version=fileName;
- String id=fileName;
-
-
- if(underscore>1) {
- id=fileName.substring(0,underscore);
- version=fileName.substring(underscore+1);
- }
-
- if(version.endsWith(".jar") || version.endsWith(".zip")) {
- version=version.substring(0,version.length()-4);
- }
- pw.println("\t<feature url=\""+urlPrefix+fileName+"\" id=\""+id+"\" version=\""+version+"\">");
- pw.println("\t\t<category name=\""+name+"\"/>");
- pw.println("\t</feature>");
- }
-
- }
-
- public URL getMirrorsURL() {
- return mirrorsURL;
- }
-
- private void writeCategoryHeaders(PrintWriter pw, Category category) {
- String label=category.getLabel();
- if(label==null) throw new BuildException("category label missing");
- String name=category.getName();
- if(name==null) throw new BuildException("category name missing");
-
- pw.print("<category-def name=\""+name+"\" label=\""+label+"\"");
- String description=category.getDescriptionText();
- if(description.trim().equals("")==false) {
- pw.println(">");
- pw.println("<description>");
- pw.println(description);
- pw.println("</description>");
- pw.println("</category-def>");
- }
- else {
- pw.println("/>");
- }
-
-
-
- }
-
-}
+/*******************************************************************************
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ ******************************************************************************/
+package org.apache.kato.anttasks.sitebuilder;
+
+import java.io.File;
+import java.io.FileWriter;
+import java.io.IOException;
+import java.io.PrintWriter;
+import java.net.URL;
+import java.util.Iterator;
+import java.util.Vector;
+
+import org.apache.tools.ant.BuildException;
+import org.apache.tools.ant.Task;
+
+public class SiteBuilder extends Task {
+
+ private File siteFile=null; // location of file that will be created
+ private URL mirrorsURL=null;
+ private Vector categories=new Vector();
+ private Vector archives=new Vector();
+ private Description description=null;
+ public void setFile(File siteFile) {
+ this.siteFile=siteFile;
+ }
+
+ public void addDescription(Description d) {
+ if(description!=null) throw new BuildException("only one description allowed");
+ this.description=d;
+ }
+ public void addCategory(Category category) {
+ categories.add(category);
+ }
+ public void addArchive(Archive archive) {
+ archives.add(archive);
+ }
+ public void setMirrorsURL(URL url) {
+ this.mirrorsURL=url;
+ }
+
+ public void execute() throws BuildException {
+ try {
+ execute1();
+ } catch(Exception e) {
+ e.printStackTrace();
+ }
+ }
+ public void execute1() throws BuildException {
+
+ if(siteFile==null) throw new BuildException("missing site file");
+
+ if(categories.isEmpty()) throw new BuildException("no categories specified");
+
+ try {
+ FileWriter fw=new FileWriter(siteFile);
+ PrintWriter pw=new PrintWriter(fw);
+
+ // write document header
+
+ pw.println("<?xml version=\"1.0\" encoding=\"UTF-8\"?>");
+ pw.println("<!-- AUTO GENERATED SITE FILE using "+getClass().getName()+" -->");
+
+ // write start site tag
+
+ pw.print("<site");
+ if(mirrorsURL!=null) {
+ pw.print(" mirrorsURL=\""+mirrorsURL.toExternalForm()+"\" ");
+ }
+ pw.println(">");
+
+ // write description
+ if(description!=null) {
+
+ pw.print("<description");
+ String url=description.getUrl();
+ if(url!=null) pw.print(" url=\""+url+"\" ");
+ pw.println(">");
+ pw.println(description.getText().trim());
+ pw.println("</description>");
+ }
+ // write categories
+ Iterator categoryIterator=categories.iterator();
+ while(categoryIterator.hasNext()) {
+ Category category=(Category) categoryIterator.next();
+ writeCategoryEntries(pw,category);
+ }
+ // write categories
+ categoryIterator=categories.iterator();
+ while(categoryIterator.hasNext()) {
+ Category category=(Category) categoryIterator.next();
+ writeCategoryHeaders(pw,category);
+ }
+ // write archives
+ writeArchives(pw);
+
+ // write end site tag
+
+ pw.println("</site>");
+
+ pw.close();
+ } catch (IOException e) {
+
+ throw new BuildException(e);
+ }
+
+ }
+
+
+ private void writeArchives(PrintWriter pw) {
+ Iterator i=archives.iterator();
+ while(i.hasNext()) {
+ Archive archive=(Archive) i.next();
+ String path=archive.getPath();
+ String url=archive.getUrl();
+ pw.println("<archive path=\""+path+"\" url=\""+url+"\"/>");
+ }
+
+ }
+
+ private void writeCategoryEntries(PrintWriter pw, Category category) {
+ String label=category.getLabel();
+ if(label==null) throw new BuildException("category label missing");
+ String name=category.getName();
+ if(name==null) throw new BuildException("category name missing");
+
+ String urlPrefix=category.getUrlPrefix();
+
+ Vector files=category.getFiles();
+ Iterator fileIterator=files.iterator();
+ while(fileIterator.hasNext()) {
+ String fileName=(String) fileIterator.next();
+ int underscore=fileName.indexOf("_");
+ String version=fileName;
+ String id=fileName;
+
+
+ if(underscore>1) {
+ id=fileName.substring(0,underscore);
+ version=fileName.substring(underscore+1);
+ }
+
+ if(version.endsWith(".jar") || version.endsWith(".zip")) {
+ version=version.substring(0,version.length()-4);
+ }
+ pw.println("\t<feature url=\""+urlPrefix+fileName+"\" id=\""+id+"\" version=\""+version+"\">");
+ pw.println("\t\t<category name=\""+name+"\"/>");
+ pw.println("\t</feature>");
+ }
+
+ }
+
+ public URL getMirrorsURL() {
+ return mirrorsURL;
+ }
+
+ private void writeCategoryHeaders(PrintWriter pw, Category category) {
+ String label=category.getLabel();
+ if(label==null) throw new BuildException("category label missing");
+ String name=category.getName();
+ if(name==null) throw new BuildException("category name missing");
+
+ pw.print("<category-def name=\""+name+"\" label=\""+label+"\"");
+ String description=category.getDescriptionText();
+ if(description.trim().equals("")==false) {
+ pw.println(">");
+ pw.println("<description>");
+ pw.println(description);
+ pw.println("</description>");
+ pw.println("</category-def>");
+ }
+ else {
+ pw.println("/>");
+ }
+
+
+
+ }
+
+}
Propchange: incubator/kato/trunk/org.apache.kato/kato.anttasks/src/main/java/org/apache/kato/anttasks/sitebuilder/SiteBuilder.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/kato/trunk/org.apache.kato/kato.anttasks/src/main/java/org/apache/kato/anttasks/tck/Scenario.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/kato/trunk/org.apache.kato/kato.anttasks/src/main/java/org/apache/kato/anttasks/tck/TCKSetupTask.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/kato/trunk/org.apache.kato/kato.anttasks/src/main/java/org/apache/kato/anttasks/xmlgen/XMLJavaDocDoclet.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/kato/trunk/org.apache.kato/kato.anttasks/src/main/java/org/apache/kato/anttasks/xmlgen/XMLJavaDocGenerator.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/kato/trunk/org.apache.kato/kato.anttasks/src/main/java/org/apache/kato/anttasks/xmlgen/XMLWriter.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/kato/trunk/org.apache.kato/kato.anttasks/src/test/java/test/org/apache/kato/anttasks/tck/DummySetupClass.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/kato/trunk/org.apache.kato/kato.anttasks/src/test/java/test/org/apache/kato/anttasks/tck/TestTCKSetupTask.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/kato/trunk/org.apache.kato/kato.api.vm/src/main/java/javax/tools/diagnostics/vm/Dump.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/kato/trunk/org.apache.kato/kato.api.vm/src/main/java/javax/tools/diagnostics/vm/DumpInitiatorDelegate.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/kato/trunk/org.apache.kato/kato.api/src/main/java/javax/tools/diagnostics/FactoryRegistry.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: incubator/kato/trunk/org.apache.kato/kato.api/src/main/java/javax/tools/diagnostics/image/CorruptData.java
URL: http://svn.apache.org/viewvc/incubator/kato/trunk/org.apache.kato/kato.api/src/main/java/javax/tools/diagnostics/image/CorruptData.java?rev=883384&r1=883383&r2=883384&view=diff
==============================================================================
--- incubator/kato/trunk/org.apache.kato/kato.api/src/main/java/javax/tools/diagnostics/image/CorruptData.java (original)
+++ incubator/kato/trunk/org.apache.kato/kato.api/src/main/java/javax/tools/diagnostics/image/CorruptData.java Mon Nov 23 15:53:48 2009
@@ -1,56 +1,56 @@
-/*******************************************************************************
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- ******************************************************************************/
-package javax.tools.diagnostics.image;
-
-/**
- * This class is used to indicate that corruption has been detected in the image.
- * It may indicate corruption of the image file, or it may indicate that
- * inconsistencies have been detected within the image file, perhaps caused by
- * a bug in the runtime or application.
- *
- * It may be encountered in two scenarios:
- * <ul>
- * <li>within a CorruptDataException</li>
- * <li>returned as an element from an Iterator</li>
- * </ul>
- *
- * Any iterator in Kato may implicitly include one or more CorruptData objects
- * within the list of objects it provides. Normal data may be found after the
- * CorruptData object if the Kato implementation is able to recover from the
- * corruption.
- *
- * @see CorruptDataException
- */
-public interface CorruptData {
-
- /**
- * Provides a string which describes the corruption
- *
- * @return a descriptive string
- */
- String toString();
-
- /**
- * Return an address associated with the corruption.
- *
- * If the corruption is not associated with an address, return null.
- *
- * If the corruption is associated with more than one address, return
- * the one which best identifies the corruption.
- *
- * @return the address of the corrupted data
- */
- ImagePointer getAddress();
-
-}
+/*******************************************************************************
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ ******************************************************************************/
+package javax.tools.diagnostics.image;
+
+/**
+ * This class is used to indicate that corruption has been detected in the image.
+ * It may indicate corruption of the image file, or it may indicate that
+ * inconsistencies have been detected within the image file, perhaps caused by
+ * a bug in the runtime or application.
+ *
+ * It may be encountered in two scenarios:
+ * <ul>
+ * <li>within a CorruptDataException</li>
+ * <li>returned as an element from an Iterator</li>
+ * </ul>
+ *
+ * Any iterator in Kato may implicitly include one or more CorruptData objects
+ * within the list of objects it provides. Normal data may be found after the
+ * CorruptData object if the Kato implementation is able to recover from the
+ * corruption.
+ *
+ * @see CorruptDataException
+ */
+public interface CorruptData {
+
+ /**
+ * Provides a string which describes the corruption
+ *
+ * @return a descriptive string
+ */
+ String toString();
+
+ /**
+ * Return an address associated with the corruption.
+ *
+ * If the corruption is not associated with an address, return null.
+ *
+ * If the corruption is associated with more than one address, return
+ * the one which best identifies the corruption.
+ *
+ * @return the address of the corrupted data
+ */
+ ImagePointer getAddress();
+
+}
Propchange: incubator/kato/trunk/org.apache.kato/kato.api/src/main/java/javax/tools/diagnostics/image/CorruptData.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: incubator/kato/trunk/org.apache.kato/kato.api/src/main/java/javax/tools/diagnostics/image/CorruptDataException.java
URL: http://svn.apache.org/viewvc/incubator/kato/trunk/org.apache.kato/kato.api/src/main/java/javax/tools/diagnostics/image/CorruptDataException.java?rev=883384&r1=883383&r2=883384&view=diff
==============================================================================
--- incubator/kato/trunk/org.apache.kato/kato.api/src/main/java/javax/tools/diagnostics/image/CorruptDataException.java (original)
+++ incubator/kato/trunk/org.apache.kato/kato.api/src/main/java/javax/tools/diagnostics/image/CorruptDataException.java Mon Nov 23 15:53:48 2009
@@ -1,49 +1,49 @@
-/*******************************************************************************
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- ******************************************************************************/
-package javax.tools.diagnostics.image;
-
-/**
- * Used to indicate that corruption has been detected in the image.
- * @see CorruptData
- */
-public class CorruptDataException extends DiagnosticException {
-
- private static final long serialVersionUID = 1824138624307972457L;
-
- private CorruptData corruptData;
-
- /**
- * Construct a new CorruptDataException for the specified corrupt data
- *
- * @param data the corruptData
- */
- public CorruptDataException(CorruptData data) {
- super(data==null ? "" : data.toString());
-
- if (data == null) {
- throw new IllegalArgumentException("data must not be null");
- }
- corruptData = data;
- }
-
- /**
- * Get more info about the corrupted data
- *
- * @return the CorruptData object
- */
- public CorruptData getCorruptData() {
- return corruptData;
- }
-
-}
+/*******************************************************************************
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ ******************************************************************************/
+package javax.tools.diagnostics.image;
+
+/**
+ * Used to indicate that corruption has been detected in the image.
+ * @see CorruptData
+ */
+public class CorruptDataException extends DiagnosticException {
+
+ private static final long serialVersionUID = 1824138624307972457L;
+
+ private CorruptData corruptData;
+
+ /**
+ * Construct a new CorruptDataException for the specified corrupt data
+ *
+ * @param data the corruptData
+ */
+ public CorruptDataException(CorruptData data) {
+ super(data==null ? "" : data.toString());
+
+ if (data == null) {
+ throw new IllegalArgumentException("data must not be null");
+ }
+ corruptData = data;
+ }
+
+ /**
+ * Get more info about the corrupted data
+ *
+ * @return the CorruptData object
+ */
+ public CorruptData getCorruptData() {
+ return corruptData;
+ }
+
+}
Propchange: incubator/kato/trunk/org.apache.kato/kato.api/src/main/java/javax/tools/diagnostics/image/CorruptDataException.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: incubator/kato/trunk/org.apache.kato/kato.api/src/main/java/javax/tools/diagnostics/image/DataUnavailable.java
URL: http://svn.apache.org/viewvc/incubator/kato/trunk/org.apache.kato/kato.api/src/main/java/javax/tools/diagnostics/image/DataUnavailable.java?rev=883384&r1=883383&r2=883384&view=diff
==============================================================================
--- incubator/kato/trunk/org.apache.kato/kato.api/src/main/java/javax/tools/diagnostics/image/DataUnavailable.java (original)
+++ incubator/kato/trunk/org.apache.kato/kato.api/src/main/java/javax/tools/diagnostics/image/DataUnavailable.java Mon Nov 23 15:53:48 2009
@@ -1,40 +1,40 @@
-/*******************************************************************************
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- ******************************************************************************/
-package javax.tools.diagnostics.image;
-
-/**
- * This exception is used to indicate that data was requested which
- * is not available on this system, or in this image.
- *
- */
-public class DataUnavailable extends DiagnosticException {
-
- private static final long serialVersionUID = 2104628444818149680L;
-
- /**
- * Build exception with the given description
- * @param description
- */
- public DataUnavailable(String description) {
- super(description);
- }
-
- /**
- * Build exception with no description
- */
- public DataUnavailable() {
- super();
- }
-
-}
+/*******************************************************************************
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ ******************************************************************************/
+package javax.tools.diagnostics.image;
+
+/**
+ * This exception is used to indicate that data was requested which
+ * is not available on this system, or in this image.
+ *
+ */
+public class DataUnavailable extends DiagnosticException {
+
+ private static final long serialVersionUID = 2104628444818149680L;
+
+ /**
+ * Build exception with the given description
+ * @param description
+ */
+ public DataUnavailable(String description) {
+ super(description);
+ }
+
+ /**
+ * Build exception with no description
+ */
+ public DataUnavailable() {
+ super();
+ }
+
+}
Propchange: incubator/kato/trunk/org.apache.kato/kato.api/src/main/java/javax/tools/diagnostics/image/DataUnavailable.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: incubator/kato/trunk/org.apache.kato/kato.api/src/main/java/javax/tools/diagnostics/image/DiagnosticException.java
URL: http://svn.apache.org/viewvc/incubator/kato/trunk/org.apache.kato/kato.api/src/main/java/javax/tools/diagnostics/image/DiagnosticException.java?rev=883384&r1=883383&r2=883384&view=diff
==============================================================================
--- incubator/kato/trunk/org.apache.kato/kato.api/src/main/java/javax/tools/diagnostics/image/DiagnosticException.java (original)
+++ incubator/kato/trunk/org.apache.kato/kato.api/src/main/java/javax/tools/diagnostics/image/DiagnosticException.java Mon Nov 23 15:53:48 2009
@@ -1,37 +1,37 @@
-/*******************************************************************************
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- ******************************************************************************/
-package javax.tools.diagnostics.image;
-
-/**
- * This class is the superclass of all exceptions thrown by javax.tools.diagnostics classes
- *
- */
-public class DiagnosticException extends Exception {
- private static final long serialVersionUID = -8031802750405644473L;
-
- /**
- * Build exception with the given description
- * @param description
- */
- public DiagnosticException(String description) {
- super(description);
- }
-
- /**
- * Build exception with no description
- */
- public DiagnosticException() {
- super();
- }
-}
+/*******************************************************************************
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ ******************************************************************************/
+package javax.tools.diagnostics.image;
+
+/**
+ * This class is the superclass of all exceptions thrown by javax.tools.diagnostics classes
+ *
+ */
+public class DiagnosticException extends Exception {
+ private static final long serialVersionUID = -8031802750405644473L;
+
+ /**
+ * Build exception with the given description
+ * @param description
+ */
+ public DiagnosticException(String description) {
+ super(description);
+ }
+
+ /**
+ * Build exception with no description
+ */
+ public DiagnosticException() {
+ super();
+ }
+}
Propchange: incubator/kato/trunk/org.apache.kato/kato.api/src/main/java/javax/tools/diagnostics/image/DiagnosticException.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: incubator/kato/trunk/org.apache.kato/kato.api/src/main/java/javax/tools/diagnostics/image/Image.java
URL: http://svn.apache.org/viewvc/incubator/kato/trunk/org.apache.kato/kato.api/src/main/java/javax/tools/diagnostics/image/Image.java?rev=883384&r1=883383&r2=883384&view=diff
==============================================================================
--- incubator/kato/trunk/org.apache.kato/kato.api/src/main/java/javax/tools/diagnostics/image/Image.java (original)
+++ incubator/kato/trunk/org.apache.kato/kato.api/src/main/java/javax/tools/diagnostics/image/Image.java Mon Nov 23 15:53:48 2009
@@ -1,145 +1,145 @@
-/*******************************************************************************
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- ******************************************************************************/
-package javax.tools.diagnostics.image;
-
-import java.io.File;
-import java.net.InetAddress;
-import java.util.Iterator;
-import java.util.List;
-
-/**
- * This class represents an entire operating system image (e.g. a core file).
- *
- * There are methods for accessing information about the architecture
- * of the machine on which the image was running - hardware and
- * operating system. The major feature, however, is the ability to
- * iterate over the Address Spaces contained within the image.
- *
- */
-public interface Image {
-
- /**
- * Get the set of address spaces within the image - typically one but may be more on some
- * systems such as Z/OS.
- * @return an Iterator which iterates over all of the address spaces
- * described by this Image
- *
- * @see ImageAddressSpace
- */
- List<ImageAddressSpace> getAddressSpaces();
-
- /**
- * Get the family name for the processor on which the image was
- * running.
- * @return the family name for the processor on which the image was
- * running. This corresponds to the value you would find in the
- * "os.arch" System property.
- *
- * @throws DataUnavailable if this data cannot be inferred from this core type
- * @throws CorruptDataException if expected data cannot be read from the core
- */
- String getProcessorType() throws DataUnavailable, CorruptDataException;
-
- /**
- * Get the precise model of the CPU.
- * @return the precise model of the CPU (note that this can be an empty string but not null).
- * <br>
- * e.g. getProcessorType() will return "x86" where getProcessorSubType() may return "Pentium IV step 4"
- * <p>
- * Note that this value is platform and implementation dependent.
- * @throws DataUnavailable
- * @throws CorruptDataException
- */
- String getProcessorSubType() throws DataUnavailable, CorruptDataException;
-
- /**
- * Get the number of CPUs running in the system on which the image was running.
- * @return the number of CPUs running in the system on which the
- * image was running
- *
- * @exception DataUnavailable if the information cannot be provided
- */
- int getProcessorCount() throws DataUnavailable;
-
- /**
- * Get the family name for the operating system.
- * @return the family name for the operating system. This should be the same value
- * that would be returned for the "os.name" system property
- *
- * @throws DataUnavailable if this data cannot be inferred from this core type
- * @throws CorruptDataException if expected data cannot be read from the core
- */
- String getSystemType() throws DataUnavailable, CorruptDataException;
-
- /**
- * Get the detailed name of the operating system.
- * @return the detailed name of the operating system, or an empty string
- * if this information is not available (null will never be returned). This should be
- * the same value that would be returned for the "os.version" system property
- * @throws DataUnavailable
- * @throws CorruptDataException
- */
- String getSystemSubType() throws DataUnavailable, CorruptDataException;
-
- /**
- * Get the amount of physical memory (in bytes) installed in the system on which
- * the image was running.
- * @return the amount of physical memory installed in the system on which
- * the image was running. The return value is specified in bytes.
- *
- * @exception DataUnavailable if the information cannot be provided
- */
- long getInstalledMemory() throws DataUnavailable;
-
- /**
- * Determines when the image was created
- *
- * @return the time in milliseconds since 1970
- * @throws DataUnavailable
- */
- long getCreationTime() throws DataUnavailable;
-
- /**
- * Get the host name of the system where the image was running.
- * @return The host name of the system where the image was running. This string will
- * be non-null and non-empty
- *
- * @throws DataUnavailable If the image did not provide this information (would happen
- * if the system did not know its host name or if the image predated this feature).
- * @throws CorruptDataException
- *
- * @since 1.0
- */
- public String getHostName() throws DataUnavailable, CorruptDataException;
-
- /**
- * The set of IP addresses (as InetAddresses) which the system running the image possessed.
- * @return An Iterator over the IP addresses (as InetAddresses) which the system running
- * the image possessed. The iterator will be non-null (but can be empty if the host is
- * known to have no IP addresses).
- *
- * @throws DataUnavailable If the image did not provide this information (would happen
- * if the system failed to look them up or if the image pre-dated this feature).
- *
- * @since 1.0
- *
- * @see java.net.InetAddress
- */
- public Iterator<InetAddress> getIPAddresses() throws DataUnavailable;
-
- /**
- * Experimenal
- */
- public File getSource();
-}
+/*******************************************************************************
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ ******************************************************************************/
+package javax.tools.diagnostics.image;
+
+import java.io.File;
+import java.net.InetAddress;
+import java.util.Iterator;
+import java.util.List;
+
+/**
+ * This class represents an entire operating system image (e.g. a core file).
+ *
+ * There are methods for accessing information about the architecture
+ * of the machine on which the image was running - hardware and
+ * operating system. The major feature, however, is the ability to
+ * iterate over the Address Spaces contained within the image.
+ *
+ */
+public interface Image {
+
+ /**
+ * Get the set of address spaces within the image - typically one but may be more on some
+ * systems such as Z/OS.
+ * @return an Iterator which iterates over all of the address spaces
+ * described by this Image
+ *
+ * @see ImageAddressSpace
+ */
+ List<ImageAddressSpace> getAddressSpaces();
+
+ /**
+ * Get the family name for the processor on which the image was
+ * running.
+ * @return the family name for the processor on which the image was
+ * running. This corresponds to the value you would find in the
+ * "os.arch" System property.
+ *
+ * @throws DataUnavailable if this data cannot be inferred from this core type
+ * @throws CorruptDataException if expected data cannot be read from the core
+ */
+ String getProcessorType() throws DataUnavailable, CorruptDataException;
+
+ /**
+ * Get the precise model of the CPU.
+ * @return the precise model of the CPU (note that this can be an empty string but not null).
+ * <br>
+ * e.g. getProcessorType() will return "x86" where getProcessorSubType() may return "Pentium IV step 4"
+ * <p>
+ * Note that this value is platform and implementation dependent.
+ * @throws DataUnavailable
+ * @throws CorruptDataException
+ */
+ String getProcessorSubType() throws DataUnavailable, CorruptDataException;
+
+ /**
+ * Get the number of CPUs running in the system on which the image was running.
+ * @return the number of CPUs running in the system on which the
+ * image was running
+ *
+ * @exception DataUnavailable if the information cannot be provided
+ */
+ int getProcessorCount() throws DataUnavailable;
+
+ /**
+ * Get the family name for the operating system.
+ * @return the family name for the operating system. This should be the same value
+ * that would be returned for the "os.name" system property
+ *
+ * @throws DataUnavailable if this data cannot be inferred from this core type
+ * @throws CorruptDataException if expected data cannot be read from the core
+ */
+ String getSystemType() throws DataUnavailable, CorruptDataException;
+
+ /**
+ * Get the detailed name of the operating system.
+ * @return the detailed name of the operating system, or an empty string
+ * if this information is not available (null will never be returned). This should be
+ * the same value that would be returned for the "os.version" system property
+ * @throws DataUnavailable
+ * @throws CorruptDataException
+ */
+ String getSystemSubType() throws DataUnavailable, CorruptDataException;
+
+ /**
+ * Get the amount of physical memory (in bytes) installed in the system on which
+ * the image was running.
+ * @return the amount of physical memory installed in the system on which
+ * the image was running. The return value is specified in bytes.
+ *
+ * @exception DataUnavailable if the information cannot be provided
+ */
+ long getInstalledMemory() throws DataUnavailable;
+
+ /**
+ * Determines when the image was created
+ *
+ * @return the time in milliseconds since 1970
+ * @throws DataUnavailable
+ */
+ long getCreationTime() throws DataUnavailable;
+
+ /**
+ * Get the host name of the system where the image was running.
+ * @return The host name of the system where the image was running. This string will
+ * be non-null and non-empty
+ *
+ * @throws DataUnavailable If the image did not provide this information (would happen
+ * if the system did not know its host name or if the image predated this feature).
+ * @throws CorruptDataException
+ *
+ * @since 1.0
+ */
+ public String getHostName() throws DataUnavailable, CorruptDataException;
+
+ /**
+ * The set of IP addresses (as InetAddresses) which the system running the image possessed.
+ * @return An Iterator over the IP addresses (as InetAddresses) which the system running
+ * the image possessed. The iterator will be non-null (but can be empty if the host is
+ * known to have no IP addresses).
+ *
+ * @throws DataUnavailable If the image did not provide this information (would happen
+ * if the system failed to look them up or if the image pre-dated this feature).
+ *
+ * @since 1.0
+ *
+ * @see java.net.InetAddress
+ */
+ public Iterator<InetAddress> getIPAddresses() throws DataUnavailable;
+
+ /**
+ * Experimenal
+ */
+ public File getSource();
+}
Propchange: incubator/kato/trunk/org.apache.kato/kato.api/src/main/java/javax/tools/diagnostics/image/Image.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: incubator/kato/trunk/org.apache.kato/kato.api/src/main/java/javax/tools/diagnostics/image/ImageAddressSpace.java
URL: http://svn.apache.org/viewvc/incubator/kato/trunk/org.apache.kato/kato.api/src/main/java/javax/tools/diagnostics/image/ImageAddressSpace.java?rev=883384&r1=883383&r2=883384&view=diff
==============================================================================
--- incubator/kato/trunk/org.apache.kato/kato.api/src/main/java/javax/tools/diagnostics/image/ImageAddressSpace.java (original)
+++ incubator/kato/trunk/org.apache.kato/kato.api/src/main/java/javax/tools/diagnostics/image/ImageAddressSpace.java Mon Nov 23 15:53:48 2009
@@ -1,62 +1,62 @@
-/*******************************************************************************
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- ******************************************************************************/
-/*
- * Created on Feb 27, 2005
- */
-package javax.tools.diagnostics.image;
-
-import java.util.List;
-
-/**
- * This class represents a single Address Space within the image.
- * On some operating systems (e.g. z/OS), there can be more than
- * one Address Space per core file (but generally with only one
- * process per ImageAddressSpace).
- *
- */
-public interface ImageAddressSpace {
-
- /**
- * Get the process within this address space which caused the image to be created.
- * @return the process within this address space which caused
- * the image to be created, if any. Return null if no individual
- * process triggered the creation of the image.
- */
- ImageProcess getCurrentProcess();
-
- /**
- * Get the set of processes within the address space.
- * @return an iterator which provides all of the processes
- * within a given address space. In most images, there will
- * only be one process within an ImageAddressSpace
- *
- * @see ImageProcess
- */
- List<ImageProcess> getProcesses();
-
- /**
- * A factory method for creating pointers into this address space
- * @param address the address to point to
- * @return an ImagePointer for the specified address
- */
- ImagePointer getPointer(long address);
-
- /**
- * Get the raw memory in the address space.
- *
- * @return An iterator of all the ImageSections in the address. Their union will be the total process address space
- * @see ImageSection
- */
- List<ImageSection> getImageSections();
-}
+/*******************************************************************************
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ ******************************************************************************/
+/*
+ * Created on Feb 27, 2005
+ */
+package javax.tools.diagnostics.image;
+
+import java.util.List;
+
+/**
+ * This class represents a single Address Space within the image.
+ * On some operating systems (e.g. z/OS), there can be more than
+ * one Address Space per core file (but generally with only one
+ * process per ImageAddressSpace).
+ *
+ */
+public interface ImageAddressSpace {
+
+ /**
+ * Get the process within this address space which caused the image to be created.
+ * @return the process within this address space which caused
+ * the image to be created, if any. Return null if no individual
+ * process triggered the creation of the image.
+ */
+ ImageProcess getCurrentProcess();
+
+ /**
+ * Get the set of processes within the address space.
+ * @return an iterator which provides all of the processes
+ * within a given address space. In most images, there will
+ * only be one process within an ImageAddressSpace
+ *
+ * @see ImageProcess
+ */
+ List<ImageProcess> getProcesses();
+
+ /**
+ * A factory method for creating pointers into this address space
+ * @param address the address to point to
+ * @return an ImagePointer for the specified address
+ */
+ ImagePointer getPointer(long address);
+
+ /**
+ * Get the raw memory in the address space.
+ *
+ * @return An iterator of all the ImageSections in the address. Their union will be the total process address space
+ * @see ImageSection
+ */
+ List<ImageSection> getImageSections();
+}
Propchange: incubator/kato/trunk/org.apache.kato/kato.api/src/main/java/javax/tools/diagnostics/image/ImageAddressSpace.java
------------------------------------------------------------------------------
svn:eol-style = native