Commit 9b323274 authored by O'Reilly Media, Inc.'s avatar O'Reilly Media, Inc.
Browse files

Initial commit

<?xml version="1.0" encoding="UTF-8"?>
<classpathentry kind="src" path="src/java"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="lib" path="lib/commons-beanutils-1.6.1.jar"/>
<classpathentry kind="lib" path="lib/commons-betwixt-0.5.jar"/>
<classpathentry kind="lib" path="lib/commons-cli-1.0.jar"/>
<classpathentry kind="lib" path="lib/commons-codec-1.2.jar"/>
<classpathentry kind="lib" path="lib/commons-collections-3.0.jar"/>
<classpathentry kind="lib" path="lib/commons-digester-1.6.jar"/>
<classpathentry kind="lib" path="lib/commons-httpclient-3.0-rc2.jar"/>
<classpathentry kind="lib" path="lib/commons-io-1.0.jar"/>
<classpathentry kind="lib" path="lib/commons-jelly-1.0-beta-4.20030104.110205.jar"/>
<classpathentry kind="lib" path="lib/commons-jexl-1.0.jar"/>
<classpathentry kind="lib" path="lib/commons-jxpath-1.2.jar"/>
<classpathentry kind="lib" path="lib/commons-lang-2.0.jar"/>
<classpathentry kind="lib" path="lib/commons-logging-api-1.0.4.jar"/>
<classpathentry kind="lib" path="lib/commons-math-1.0.jar"/>
<classpathentry kind="lib" path="lib/commons-net-1.4.0.jar"/>
<classpathentry kind="lib" path="lib/freemarker-2.3.1.jar"/>
<classpathentry kind="lib" path="lib/junit-3.8.1.jar"/>
<classpathentry kind="lib" path="lib/log4j-1.2.8.jar"/>
<classpathentry kind="lib" path="lib/lucene-1.4.3.jar"/>
<classpathentry kind="lib" path="lib/oro-2.0.8.jar"/>
<classpathentry kind="lib" path="lib/webdavlib-2.0.jar"/>
<classpathentry kind="lib" path="lib/xerces-2.4.0.jar"/>
<classpathentry kind="lib" path="lib/dom4j-1.6.jar"/>
<classpathentry kind="lib" path="lib/commons-configuration-1.0-rc1.jar"/>
<classpathentry kind="lib" path="lib/velocity-1.4.jar"/>
<classpathentry kind="lib" path="lib/commons-id-0.1-dev.jar"/>
<classpathentry kind="output" path="target/classes"/>
<?xml version="1.0" encoding="UTF-8"?>
\ No newline at end of file
\ No newline at end of file
Date date = new Date();
Date rounded = DateUtils.round( date, Calendar.ERA );
System.out.println( rounded );
\ No newline at end of file
Apache License
Version 2.0, January 2004
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,
implied, including, without limitation, any warranties or conditions
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.
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
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
See the License for the specific language governing permissions and
limitations under the License.
Hello! This is the code for the Jakarta Commons Cookbook.
This project is an Eclipse project, so if you would like to load this into Eclipse
just import this directory as an existing project.
Good Luck, and if you have any questions, please contact me at
\ No newline at end of file
## Example files for the title:
# Jakarta Commons Cookbook, by Timothy O'Brien
[![Jakarta Commons Cookbook, by Timothy O'Brien](](
The following applies to example files from material published by O’Reilly Media, Inc. Content from other publishers may include different rules of usage. Please refer to any additional usage rights explained in the actual example files or refer to the publisher’s website.
O'Reilly books are here to help you get your job done. In general, you may use the code in O'Reilly books in your programs and documentation. You do not need to contact us for permission unless you're reproducing a significant portion of the code. For example, writing a program that uses several chunks of code from our books does not require permission. Answering a question by citing our books and quoting example code does not require permission. On the other hand, selling or distributing a CD-ROM of examples from O'Reilly books does require permission. Incorporating a significant amount of example code from our books into your product's documentation does require permission.
We appreciate, but do not require, attribution. An attribution usually includes the title, author, publisher, and ISBN.
If you think your use of code examples falls outside fair use or the permission given here, feel free to contact us at <>.
Please note that the examples are not production code and have not been carefully testing. They are provided "as-is" and come with no warranty of any kind.
This source diff could not be displayed because it is too large. You can view the blob instead.
This is a sample
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
<?xml version="1.0"?>
<TITLE>The Tragedy of Julius Caesar</TITLE>
<P>Text placed in the public domain by Moby Lexical Tools, 1992.</P>
<P>SGML markup by Jon Bosak, 1992-1994.</P>
<P>XML version by Jon Bosak, 1996-1998.</P>
<P>This work may be freely copied and distributed worldwide.</P>
<TITLE>Dramatis Personae</TITLE>
<GRPDESCR>triumvirs after death of Julius Caesar.</GRPDESCR>
<GRPDESCR>conspirators against Julius Caesar.</GRPDESCR>
<PERSONA>ARTEMIDORUS Of Cnidos, a teacher of rhetoric. </PERSONA>
<GRPDESCR>friends to Brutus and Cassius.</GRPDESCR>
<GRPDESCR>servants to Brutus.</GRPDESCR>
<PERSONA>PINDARUS, servant to Cassius.</PERSONA>
<PERSONA>PORTIA, wife to Brutus.</PERSONA>
<PERSONA>Senators, Citizens, Guards, Attendants, &amp;c.</PERSONA>
<SCNDESCR>SCENE Rome: the neighbourhood of Sardis: the neighbourhood of Philippi.</SCNDESCR>
<SCENE><TITLE>SCENE I. Rome. A street.</TITLE>
<STAGEDIR>Enter FLAVIUS, MARULLUS, and certain Commoners</STAGEDIR>
<LINE>Hence! home, you idle creatures get you home:</LINE>
<LINE>Is this a holiday? what! know you not,</LINE>
<LINE>Being mechanical, you ought not walk</LINE>
<LINE>Upon a labouring day without the sign</LINE>
<LINE>Of your profession? Speak, what trade art thou?</LINE>
<SPEAKER>First Commoner</SPEAKER>
<LINE>Why, sir, a carpenter.</LINE>
<LINE>Where is thy leather apron and thy rule?</LINE>
<LINE>What dost thou with thy best apparel on?</LINE>
<LINE>You, sir, what trade are you?</LINE>
<SPEAKER>Second Commoner</SPEAKER>
<LINE>Truly, sir, in respect of a fine workman, I am but,</LINE>
<LINE>as you would say, a cobbler.</LINE>
<LINE>But what trade art thou? answer me directly.</LINE>
<SPEAKER>Second Commoner</SPEAKER>
<LINE>A trade, sir, that, I hope, I may use with a safe</LINE>
<LINE>conscience; which is, indeed, sir, a mender of bad soles.</LINE>
<LINE>What trade, thou knave? thou naughty knave, what trade?</LINE>
<SPEAKER>Second Commoner</SPEAKER>
<LINE>Nay, I beseech you, sir, be not out with me: yet,</LINE>
<LINE>if you be out, sir, I can mend you.</LINE>
<LINE>What meanest thou by that? mend me, thou saucy fellow!</LINE>
<SPEAKER>Second Commoner</SPEAKER>
<LINE>Why, sir, cobble you.</LINE>
<LINE>Thou art a cobbler, art thou?</LINE>
<SPEAKER>Second Commoner</SPEAKER>
<LINE>Truly, sir, all that I live by is with the awl: I</LINE>
<LINE>meddle with no tradesman's matters, nor women's</LINE>
<LINE>matters, but with awl. I am, indeed, sir, a surgeon</LINE>
<LINE>to old shoes; when they are in great danger, I</LINE>
<LINE>recover them. As proper men as ever trod upon</LINE>
<LINE>neat's leather have gone upon my handiwork.</LINE>
<LINE>But wherefore art not in thy shop today?</LINE>
<LINE>Why dost thou lead these men about the streets?</LINE>
<SPEAKER>Second Commoner</SPEAKER>
<LINE>Truly, sir, to wear out their shoes, to get myself</LINE>
<LINE>into more work. But, indeed, sir, we make holiday,</LINE>
<LINE>to see Caesar and to rejoice in his triumph.</LINE>
<LINE>Wherefore rejoice? What conquest brings he home?</LINE>
<LINE>What tributaries follow him to Rome,</LINE>
<LINE>To grace in captive bonds his chariot-wheels?</LINE>
<LINE>You blocks, you stones, you worse than senseless things!</LINE>
<LINE>O you hard hearts, you cruel men of Rome,</LINE>
<LINE>Knew you not Pompey? Many a time and oft</LINE>
<LINE>Have you climb'd up to walls and battlements,</LINE>
<LINE>To towers and windows, yea, to chimney-tops,</LINE>
<LINE>Your infants in your arms, and there have sat</LINE>
<LINE>The livelong day, with patient expectation,</LINE>
<LINE>To see great Pompey pass the streets of Rome:</LINE>
<LINE>And when you saw his chariot but appear,</LINE>
<LINE>Have you not made an universal shout,</LINE>
<LINE>That Tiber trembled underneath her banks,</LINE>
<LINE>To hear the replication of your sounds</LINE>
<LINE>Made in her concave shores?</LINE>
<LINE>And do you now put on your best attire?</LINE>
<LINE>And do you now cull out a holiday?</LINE>
<LINE>And do you now strew flowers in his way</LINE>
<LINE>That comes in triumph over Pompey's blood? Be gone!</LINE>
<LINE>Run to your houses, fall upon your knees,</LINE>
<LINE>Pray to the gods to intermit the plague</LINE>
<LINE>That needs must light on this ingratitude.</LINE>
<LINE>Go, go, good countrymen, and, for this fault,</LINE>
<LINE>Assemble all the poor men of your sort;</LINE>
<LINE>Draw them to Tiber banks, and weep your tears</LINE>
<LINE>Into the channel, till the lowest stream</LINE>
<LINE>Do kiss the most exalted shores of all.</LINE>
<STAGEDIR>Exeunt all the Commoners</STAGEDIR>
<LINE>See whether their basest metal be not moved;</LINE>
<LINE>They vanish tongue-tied in their guiltiness.</LINE>
<LINE>Go you down that way towards the Capitol;</LINE>
<LINE>This way will I disrobe the images,</LINE>
<LINE>If you do find them deck'd with ceremonies.</LINE>
<LINE>May we do so?</LINE>
<LINE>You know it is the feast of Lupercal.</LINE>
<LINE>It is no matter; let no images</LINE>
<LINE>Be hung with Caesar's trophies. I'll about,</LINE>
<LINE>And drive away the vulgar from the streets:</LINE>
<LINE>So do you too, where you perceive them thick.</LINE>
<LINE>These growing feathers pluck'd from Caesar's wing</LINE>
<LINE>Will make him fly an ordinary pitch,</LINE>
<LINE>Who else would soar above the view of men</LINE>
<LINE>And keep us all in servile fearfulness.</LINE>
<SCENE><TITLE>SCENE II. A public place.</TITLE>
<STAGEDIR>Flourish. Enter CAESAR; ANTONY, for the course;
CASSIUS, and CASCA; a great crowd following, among
them a Soothsayer</STAGEDIR>
<LINE>Peace, ho! Caesar speaks.</LINE>
<LINE>Here, my lord.</LINE>
<LINE>Stand you directly in Antonius' way,</LINE>
<LINE>When he doth run his course. Antonius!</LINE>
<LINE>Caesar, my lord?</LINE>
<LINE>Forget not, in your speed, Antonius,</LINE>
<LINE>To touch Calpurnia; for our elders say,</LINE>
<LINE>The barren, touched in this holy chase,</LINE>
<LINE>Shake off their sterile curse.</LINE>
<LINE>I shall remember:</LINE>
<LINE>When Caesar says 'do this,' it is perform'd.</LINE>
<LINE>Set on; and leave no ceremony out.</LINE>
<LINE>Ha! who calls?</LINE>
<LINE>Bid every noise be still: peace yet again!</LINE>
<LINE>Who is it in the press that calls on me?</LINE>
<LINE>I hear a tongue, shriller than all the music,</LINE>
<LINE>Cry 'Caesar!' Speak; Caesar is turn'd to hear.</LINE>
<LINE>Beware the ides of March.</LINE>
<LINE>What man is that?</LINE>
<LINE>A soothsayer bids you beware the ides of March.</LINE>