Thread: [Japi-cvs] SF.net SVN: japi: [2] trunk
Status: Beta
Brought to you by:
christianhujer
From: <chr...@us...> - 2006-04-03 00:45:31
|
Revision: 2 Author: christianhujer Date: 2006-04-02 17:38:05 -0700 (Sun, 02 Apr 2006) ViewCVS: http://svn.sourceforge.net/japi/?rev=2&view=rev Log Message: ----------- Initial source commit. Added Paths: ----------- trunk/COPYING trunk/CREDITS trunk/FAQ trunk/INSTALL trunk/LICENSE trunk/NEWS trunk/README trunk/build.xml trunk/lib/ trunk/lib/LICENSE-Pack200Task.jar trunk/lib/LICENSE-annotations.jar trunk/lib/LICENSE-antmeat.jar trunk/lib/LICENSE-java2html.jar trunk/lib/LICENSE-jlfgr-1_0.jar trunk/lib/LICENSE-junit.jar trunk/lib/LICENSE-megaxslt.jar trunk/lib/LICENSE-xmlrpc-1.2-b1.jar trunk/lib/Pack200Task.jar trunk/lib/README trunk/lib/annotations.jar trunk/lib/antmeat.jar trunk/lib/commons-codec-1.3.jar trunk/lib/java2html.jar trunk/lib/jlfgr-1_0.jar trunk/lib/junit.jar trunk/lib/megaxslt.jar trunk/lib/src_annotations.zip trunk/lib/xmlrpc-2.0.1.jar trunk/progs/ trunk/project.properties trunk/src/ trunk/src/app/ trunk/src/app/net/ trunk/src/app/net/sf/ trunk/src/app/net/sf/japi/ trunk/src/app/net/sf/japi/cpp/ trunk/src/app/net/sf/japi/cpp/CPreProcessor.java trunk/src/app/net/sf/japi/cpp/State.java trunk/src/app/net/sf/japi/io/ trunk/src/app/net/sf/japi/io/ARGV.java trunk/src/app/net/sf/japi/io/ARGVEnumeration.java trunk/src/app/net/sf/japi/io/ARGVInputStream.java trunk/src/app/net/sf/japi/io/ARGVReader.java trunk/src/app/net/sf/japi/io/BCD.java trunk/src/app/net/sf/japi/io/IOHelper.java trunk/src/app/net/sf/japi/io/Nibbles.java trunk/src/app/net/sf/japi/io/package.html trunk/src/app/net/sf/japi/lang/ trunk/src/app/net/sf/japi/lang/Properties.java trunk/src/app/net/sf/japi/lang/SuperClassIterator.java trunk/src/app/net/sf/japi/lang/package.html trunk/src/app/net/sf/japi/net/ trunk/src/app/net/sf/japi/net/ProxySettings.java trunk/src/app/net/sf/japi/sql/ trunk/src/app/net/sf/japi/sql/CachedResultSetTableModel.java trunk/src/app/net/sf/japi/sql/DatabaseTreeModel.java trunk/src/app/net/sf/japi/sql/ResultSetTableModel.java trunk/src/app/net/sf/japi/sql/SQLHelper.java trunk/src/app/net/sf/japi/sql/ScrollResultSetTableModel.java trunk/src/app/net/sf/japi/sql/package.html trunk/src/app/net/sf/japi/swing/ trunk/src/app/net/sf/japi/swing/ActionFactory.java trunk/src/app/net/sf/japi/swing/ActionMethod.java trunk/src/app/net/sf/japi/swing/ColumnLayout.java trunk/src/app/net/sf/japi/swing/DisposeAction.java trunk/src/app/net/sf/japi/swing/DummyAction.java trunk/src/app/net/sf/japi/swing/FileField.java trunk/src/app/net/sf/japi/swing/IconManager.java trunk/src/app/net/sf/japi/swing/JFileChooserButton.java trunk/src/app/net/sf/japi/swing/JPropertyEditor.java trunk/src/app/net/sf/japi/swing/JSAXErrorHandler.java trunk/src/app/net/sf/japi/swing/LocaleComparator.java trunk/src/app/net/sf/japi/swing/LocaleListCellRenderer.java trunk/src/app/net/sf/japi/swing/LookAndFeelManager.java trunk/src/app/net/sf/japi/swing/NamedActionMap.java trunk/src/app/net/sf/japi/swing/Progress.java trunk/src/app/net/sf/japi/swing/ProgressDisplay.java trunk/src/app/net/sf/japi/swing/ReflectionAction.java trunk/src/app/net/sf/japi/swing/TipOfTheDayManager.java trunk/src/app/net/sf/japi/swing/ToggleAction.java trunk/src/app/net/sf/japi/swing/ToolBarLayout.java trunk/src/app/net/sf/japi/swing/WindowsLookAndFeel.java trunk/src/app/net/sf/japi/swing/action.properties trunk/src/app/net/sf/japi/swing/action_de.properties trunk/src/app/net/sf/japi/swing/bookmarks/ trunk/src/app/net/sf/japi/swing/bookmarks/BookmarkDropTargetAdapter.java trunk/src/app/net/sf/japi/swing/bookmarks/BookmarkManager.java trunk/src/app/net/sf/japi/swing/bookmarks/BookmarkTransferHandler.java trunk/src/app/net/sf/japi/swing/bookmarks/BookmarkTransferable.java trunk/src/app/net/sf/japi/swing/bookmarks/BookmarkTreeCellRenderer.java trunk/src/app/net/sf/japi/swing/bookmarks/Bookmarkable.java trunk/src/app/net/sf/japi/swing/bookmarks/action.properties trunk/src/app/net/sf/japi/swing/bookmarks/action_de.properties trunk/src/app/net/sf/japi/swing/bookmarks/package.html trunk/src/app/net/sf/japi/swing/font/ trunk/src/app/net/sf/japi/swing/font/FontChooser.java trunk/src/app/net/sf/japi/swing/font/FontFamilyComboBox.java trunk/src/app/net/sf/japi/swing/font/FontFamilyListCellRenderer.java trunk/src/app/net/sf/japi/swing/font/FontPreview.java trunk/src/app/net/sf/japi/swing/font/FontStyleListCellRenderer.java trunk/src/app/net/sf/japi/swing/font/action.properties trunk/src/app/net/sf/japi/swing/font/action_de.properties trunk/src/app/net/sf/japi/swing/font/package.html trunk/src/app/net/sf/japi/swing/io/ trunk/src/app/net/sf/japi/swing/io/CanLoad.java trunk/src/app/net/sf/japi/swing/package.html trunk/src/app/net/sf/japi/swing/prefs/ trunk/src/app/net/sf/japi/swing/prefs/AbstractPrefs.java trunk/src/app/net/sf/japi/swing/prefs/PreferencesGroup.java trunk/src/app/net/sf/japi/swing/prefs/PreferencesPane.java trunk/src/app/net/sf/japi/swing/prefs/Prefs.java trunk/src/app/net/sf/japi/swing/prefs/action.properties trunk/src/app/net/sf/japi/swing/prefs/action_de.properties trunk/src/app/net/sf/japi/swing/prefs/keys/ trunk/src/app/net/sf/japi/swing/prefs/keys/AbstractSimpleNode.java trunk/src/app/net/sf/japi/swing/prefs/keys/ActionKeyDisplay.java trunk/src/app/net/sf/japi/swing/prefs/keys/ActionMapNode.java trunk/src/app/net/sf/japi/swing/prefs/keys/ActionNode.java trunk/src/app/net/sf/japi/swing/prefs/keys/KeyStrokePrefs.java trunk/src/app/net/sf/japi/swing/prefs/keys/KeyStrokeRootNode.java trunk/src/app/net/sf/japi/swing/prefs/keys/KeyStrokeTreeTableModel.java trunk/src/app/net/sf/japi/swing/prefs/keys/SimpleNode.java trunk/src/app/net/sf/japi/swing/prefs/keys/action.properties trunk/src/app/net/sf/japi/swing/prefs/package.html trunk/src/app/net/sf/japi/swing/prefs/proxy/ trunk/src/app/net/sf/japi/swing/prefs/proxy/ProxyPrefs.java trunk/src/app/net/sf/japi/swing/prefs/proxy/package.html trunk/src/app/net/sf/japi/swing/treetable/ trunk/src/app/net/sf/japi/swing/treetable/AbstractTreeTableModel.java trunk/src/app/net/sf/japi/swing/treetable/JTreeTable.java trunk/src/app/net/sf/japi/swing/treetable/TreeTableModel.java trunk/src/app/net/sf/japi/swing/treetable/TreeTableModelTableModelAdapter.java trunk/src/app/net/sf/japi/swing/treetable/TreeTableModelTreeModelAdapter.java trunk/src/app/net/sf/japi/util/ trunk/src/app/net/sf/japi/util/Arrays2.java trunk/src/app/net/sf/japi/util/Collections2.java trunk/src/app/net/sf/japi/util/EmptyEnumeration.java trunk/src/app/net/sf/japi/util/EmptyIterator.java trunk/src/app/net/sf/japi/util/EndianConverter.java trunk/src/app/net/sf/japi/util/EnumerationIterator.java trunk/src/app/net/sf/japi/util/IteratorEnumeration.java trunk/src/app/net/sf/japi/util/Pair.java trunk/src/app/net/sf/japi/util/PrintStreamThrowableHandler.java trunk/src/app/net/sf/japi/util/Table.java trunk/src/app/net/sf/japi/util/ThrowableHandler.java trunk/src/app/net/sf/japi/util/filter/ trunk/src/app/net/sf/japi/util/filter/AndFilterForArray.java trunk/src/app/net/sf/japi/util/filter/AndFilterForIterable.java trunk/src/app/net/sf/japi/util/filter/CollectionFilter.java trunk/src/app/net/sf/japi/util/filter/Filter.java trunk/src/app/net/sf/japi/util/filter/NotFilter.java trunk/src/app/net/sf/japi/util/filter/OrFilterForArray.java trunk/src/app/net/sf/japi/util/filter/OrFilterForIterable.java trunk/src/app/net/sf/japi/util/filter/file/ trunk/src/app/net/sf/japi/util/filter/file/AbstractFileFilter.java trunk/src/app/net/sf/japi/util/filter/file/EndingFileFilter.java trunk/src/app/net/sf/japi/util/filter/file/Factory.java trunk/src/app/net/sf/japi/util/filter/file/FileFilter.java trunk/src/app/net/sf/japi/util/filter/file/FilenameFileFilter.java trunk/src/app/net/sf/japi/util/filter/file/GlobFileFilter.java trunk/src/app/net/sf/japi/util/filter/file/RegexFileFilter.java trunk/src/app/net/sf/japi/util/package.html trunk/src/app/net/sf/japi/xml/ trunk/src/app/net/sf/japi/xml/FilteredNodeList.java trunk/src/app/net/sf/japi/xml/NodeListIterator.java trunk/src/app/net/sf/japi/xml/package.html trunk/src/app/overview.html trunk/src/buildInclude.xml trunk/src/doc/ trunk/src/doc/.htaccess trunk/src/doc/api/ trunk/src/doc/api/private/ trunk/src/doc/api/private/.htaccess trunk/src/doc/api/private/copyright.html trunk/src/doc/api/public/ trunk/src/doc/api/public/.htaccess trunk/src/doc/api/public/copyright.html trunk/src/doc/api/release.xslt trunk/src/doc/api/start.xhtml trunk/src/doc/changes.xhtml trunk/src/doc/cleanupXhtml11.xslt trunk/src/doc/copyright.xhtml trunk/src/doc/dtd/ trunk/src/doc/dtd/catalogForAnt.xml trunk/src/doc/dtd/xhtml-applet-1.mod trunk/src/doc/dtd/xhtml-arch-1.mod trunk/src/doc/dtd/xhtml-attribs-1.mod trunk/src/doc/dtd/xhtml-base-1.mod trunk/src/doc/dtd/xhtml-basic-form-1.mod trunk/src/doc/dtd/xhtml-basic-table-1.mod trunk/src/doc/dtd/xhtml-bdo-1.mod trunk/src/doc/dtd/xhtml-blkphras-1.mod trunk/src/doc/dtd/xhtml-blkpres-1.mod trunk/src/doc/dtd/xhtml-blkstruct-1.mod trunk/src/doc/dtd/xhtml-charent-1.mod trunk/src/doc/dtd/xhtml-csismap-1.mod trunk/src/doc/dtd/xhtml-datatypes-1.mod trunk/src/doc/dtd/xhtml-edit-1.mod trunk/src/doc/dtd/xhtml-events-1.mod trunk/src/doc/dtd/xhtml-form-1.mod trunk/src/doc/dtd/xhtml-frames-1.mod trunk/src/doc/dtd/xhtml-framework-1.mod trunk/src/doc/dtd/xhtml-hypertext-1.mod trunk/src/doc/dtd/xhtml-iframe-1.mod trunk/src/doc/dtd/xhtml-image-1.mod trunk/src/doc/dtd/xhtml-inlphras-1.mod trunk/src/doc/dtd/xhtml-inlpres-1.mod trunk/src/doc/dtd/xhtml-inlstruct-1.mod trunk/src/doc/dtd/xhtml-inlstyle-1.mod trunk/src/doc/dtd/xhtml-lat1.ent trunk/src/doc/dtd/xhtml-legacy-1.mod trunk/src/doc/dtd/xhtml-link-1.mod trunk/src/doc/dtd/xhtml-list-1.mod trunk/src/doc/dtd/xhtml-meta-1.mod trunk/src/doc/dtd/xhtml-nameident-1.mod trunk/src/doc/dtd/xhtml-notations-1.mod trunk/src/doc/dtd/xhtml-object-1.mod trunk/src/doc/dtd/xhtml-param-1.mod trunk/src/doc/dtd/xhtml-pres-1.mod trunk/src/doc/dtd/xhtml-qname-1.mod trunk/src/doc/dtd/xhtml-ruby-1.mod trunk/src/doc/dtd/xhtml-script-1.mod trunk/src/doc/dtd/xhtml-special.ent trunk/src/doc/dtd/xhtml-ssismap-1.mod trunk/src/doc/dtd/xhtml-struct-1.mod trunk/src/doc/dtd/xhtml-style-1.mod trunk/src/doc/dtd/xhtml-symbol.ent trunk/src/doc/dtd/xhtml-table-1.mod trunk/src/doc/dtd/xhtml-target-1.mod trunk/src/doc/dtd/xhtml-text-1.mod trunk/src/doc/dtd/xhtml-xinclude10-1.mod trunk/src/doc/dtd/xhtml11-flat.dtd trunk/src/doc/dtd/xhtml11-model-1.mod trunk/src/doc/dtd/xhtml11.dtd trunk/src/doc/dtd/xhtml11_xinclude10-model-1.mod trunk/src/doc/dtd/xhtml11_xinclude10.dtd trunk/src/doc/guide/ trunk/src/doc/guide/io/ trunk/src/doc/guide/io/src/ trunk/src/doc/guide/io/src/CatJAPI.java trunk/src/doc/guide/io/src/CatPlain.java trunk/src/doc/guide/io/src/SortJAPI.java trunk/src/doc/guide/io/src/SortPlain.java trunk/src/doc/guide/io/src/UniqJAPI.java trunk/src/doc/guide/io/src/UniqPlain.java trunk/src/doc/guide/io/start.xhtml trunk/src/doc/guide/start.xhtml trunk/src/doc/guide/swing/ trunk/src/doc/guide/swing/action/ trunk/src/doc/guide/swing/action/basic/ trunk/src/doc/guide/swing/action/basic/build.xml trunk/src/doc/guide/swing/action/basic/screenshot1.png trunk/src/doc/guide/swing/action/basic/screenshot2.png trunk/src/doc/guide/swing/action/basic/src/ trunk/src/doc/guide/swing/action/basic/src/ex/ trunk/src/doc/guide/swing/action/basic/src/ex/App.java trunk/src/doc/guide/swing/action/basic/src/ex/action.properties trunk/src/doc/guide/swing/action/basic/src/ex/action_de.properties trunk/src/doc/guide/swing/action/basic/start.xhtml trunk/src/doc/guide/swing/action/fromScratch/ trunk/src/doc/guide/swing/action/fromScratch/Editor.png trunk/src/doc/guide/swing/action/fromScratch/build.xml trunk/src/doc/guide/swing/action/fromScratch/src/ trunk/src/doc/guide/swing/action/fromScratch/src/icons/ trunk/src/doc/guide/swing/action/fromScratch/src/icons/general/ trunk/src/doc/guide/swing/action/fromScratch/src/net/ trunk/src/doc/guide/swing/action/fromScratch/src/net/sf/ trunk/src/doc/guide/swing/action/fromScratch/src/net/sf/japi/ trunk/src/doc/guide/swing/action/fromScratch/src/net/sf/japi/examples/ trunk/src/doc/guide/swing/action/fromScratch/src/net/sf/japi/examples/editor/ trunk/src/doc/guide/swing/action/fromScratch/src/net/sf/japi/examples/editor/Editor.java trunk/src/doc/guide/swing/action/fromScratch/src/net/sf/japi/examples/editor/action.properties trunk/src/doc/guide/swing/action/fromScratch/start.xhtml trunk/src/doc/guide/swing/action/start.xhtml trunk/src/doc/guide/swing/prefs/ trunk/src/doc/guide/swing/prefs/keys/ trunk/src/doc/guide/swing/prefs/keys/build.xml trunk/src/doc/guide/swing/prefs/keys/src/ trunk/src/doc/guide/swing/prefs/keys/src/ex/ trunk/src/doc/guide/swing/prefs/keys/src/ex/App.java trunk/src/doc/guide/swing/prefs/keys/src/ex/action.properties trunk/src/doc/guide/swing/tod/ trunk/src/doc/guide/swing/tod/build.xml trunk/src/doc/guide/swing/tod/src/ trunk/src/doc/guide/swing/tod/src/META-INF/ trunk/src/doc/guide/swing/tod/src/META-INF/services/ trunk/src/doc/guide/swing/tod/src/META-INF/services/net.sf.japi.swing.tod trunk/src/doc/guide/swing/tod/src/ex/ trunk/src/doc/guide/swing/tod/src/ex/App.java trunk/src/doc/guide/swing/tod/src/ex/action.properties trunk/src/doc/guide/swing/tod/src/ex/tod.properties trunk/src/doc/guide/swing/tod/src/ex/tod_de.properties trunk/src/doc/guide/swing/tod/start.xhtml trunk/src/doc/guide/swing/tod/tod.de.png trunk/src/doc/guide/swing/tod/tod.en.png trunk/src/doc/guide/xml/ trunk/src/doc/guide/xml/start.xhtml trunk/src/doc/releasePlan.xhtml trunk/src/doc/sitestyle.css trunk/src/doc/start.xhtml trunk/src/doc/transform.xslt trunk/src/doc/wontFixes.xhtml trunk/src/doc/xhtml2html.xslt trunk/src/project.dtd trunk/src/test/ trunk/src/test/net/ trunk/src/test/net/sf/ trunk/src/test/net/sf/japi/ trunk/src/test/net/sf/japi/lang/ trunk/src/test/net/sf/japi/lang/test/ trunk/src/test/net/sf/japi/lang/test/SuperClassIteratorTest.java trunk/tools/ trunk/tools/fonts/ trunk/tools/fonts/build.xml trunk/tools/fonts/src/ trunk/tools/fonts/src/net/ trunk/tools/fonts/src/net/sf/ trunk/tools/fonts/src/net/sf/japi/ trunk/tools/fonts/src/net/sf/japi/tools/ trunk/tools/fonts/src/net/sf/japi/tools/fontbrowser/ trunk/tools/fonts/src/net/sf/japi/tools/fontbrowser/FontBrowser.java trunk/tools/fonts/src/net/sf/japi/tools/fontbrowser/action.properties trunk/tools/keystrokes/ trunk/tools/keystrokes/build.xml trunk/tools/keystrokes/src/ trunk/tools/keystrokes/src/net/ trunk/tools/keystrokes/src/net/sf/ trunk/tools/keystrokes/src/net/sf/japi/ trunk/tools/keystrokes/src/net/sf/japi/tools/ trunk/tools/keystrokes/src/net/sf/japi/tools/keystrokes/ trunk/tools/keystrokes/src/net/sf/japi/tools/keystrokes/KeyStrokes.java trunk/tools/keystrokes/src/net/sf/japi/tools/keystrokes/action.properties trunk/tools/prefs/ trunk/tools/prefs/build.xml trunk/tools/prefs/src/ trunk/tools/prefs/src/net/ trunk/tools/prefs/src/net/sf/ trunk/tools/prefs/src/net/sf/japi/ trunk/tools/prefs/src/net/sf/japi/tools/ trunk/tools/prefs/src/net/sf/japi/tools/prefsbrowser/ trunk/tools/prefs/src/net/sf/japi/tools/prefsbrowser/PrefsBranchNode.java trunk/tools/prefs/src/net/sf/japi/tools/prefsbrowser/PrefsBrowser.java trunk/tools/prefs/src/net/sf/japi/tools/prefsbrowser/PrefsLeafNode.java trunk/tools/prefs/src/net/sf/japi/tools/prefsbrowser/PrefsRootNode.java trunk/tools/prefs/src/net/sf/japi/tools/prefsbrowser/PrefsTreeNode.java trunk/tools/prefs/src/net/sf/japi/tools/prefsbrowser/PrefsTreeTableModel.java trunk/tools/prefs/src/net/sf/japi/tools/prefsbrowser/action.properties Added: trunk/COPYING =================================================================== --- trunk/COPYING (rev 0) +++ trunk/COPYING 2006-04-03 00:38:05 UTC (rev 2) @@ -0,0 +1,340 @@ + GNU GENERAL PUBLIC LICENSE + Version 2, June 1991 + + Copyright (C) 1989, 1991 Free Software Foundation, Inc. + 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +License is intended to guarantee your freedom to share and change free +software--to make sure the software is free for all its users. This +General Public License applies to most of the Free Software +Foundation's software and to any other program whose authors commit to +using it. (Some other Free Software Foundation software is covered by +the GNU Library General Public License instead.) You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +this service if you wish), that you receive source code or can get it +if you want it, that you can change the software or use pieces of it +in new free programs; and that you know you can do these things. + + To protect your rights, we need to make restrictions that forbid +anyone to deny you these rights or to ask you to surrender the rights. +These restrictions translate to certain responsibilities for you if you +distribute copies of the software, or if you modify it. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must give the recipients all the rights that +you have. You must make sure that they, too, receive or can get the +source code. And you must show them these terms so they know their +rights. + + We protect your rights with two steps: (1) copyright the software, and +(2) offer you this license which gives you legal permission to copy, +distribute and/or modify the software. + + Also, for each author's protection and ours, we want to make certain +that everyone understands that there is no warranty for this free +software. If the software is modified by someone else and passed on, we +want its recipients to know that what they have is not the original, so +that any problems introduced by others will not reflect on the original +authors' reputations. + + Finally, any free program is threatened constantly by software +patents. We wish to avoid the danger that redistributors of a free +program will individually obtain patent licenses, in effect making the +program proprietary. To prevent this, we have made it clear that any +patent must be licensed for everyone's free use or not licensed at all. + + The precise terms and conditions for copying, distribution and +modification follow. + + GNU GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License applies to any program or other work which contains +a notice placed by the copyright holder saying it may be distributed +under the terms of this General Public License. The "Program", below, +refers to any such program or work, and a "work based on the Program" +means either the Program or any derivative work under copyright law: +that is to say, a work containing the Program or a portion of it, +either verbatim or with modifications and/or translated into another +language. (Hereinafter, translation is included without limitation in +the term "modification".) Each licensee is addressed as "you". + +Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of +running the Program is not restricted, and the output from the Program +is covered only if its contents constitute a work based on the +Program (independent of having been made by running the Program). +Whether that is true depends on what the Program does. + + 1. You may copy and distribute verbatim copies of the Program's +source code as you receive it, in any medium, provided that you +conspicuously and appropriately publish on each copy an appropriate +copyright notice and disclaimer of warranty; keep intact all the +notices that refer to this License and to the absence of any warranty; +and give any other recipients of the Program a copy of this License +along with the Program. + +You may charge a fee for the physical act of transferring a copy, and +you may at your option offer warranty protection in exchange for a fee. + + 2. You may modify your copy or copies of the Program or any portion +of it, thus forming a work based on the Program, and copy and +distribute such modifications or work under the terms of Section 1 +above, provided that you also meet all of these conditions: + + a) You must cause the modified files to carry prominent notices + stating that you changed the files and the date of any change. + + b) You must cause any work that you distribute or publish, that in + whole or in part contains or is derived from the Program or any + part thereof, to be licensed as a whole at no charge to all third + parties under the terms of this License. + + c) If the modified program normally reads commands interactively + when run, you must cause it, when started running for such + interactive use in the most ordinary way, to print or display an + announcement including an appropriate copyright notice and a + notice that there is no warranty (or else, saying that you provide + a warranty) and that users may redistribute the program under + these conditions, and telling the user how to view a copy of this + License. (Exception: if the Program itself is interactive but + does not normally print such an announcement, your work based on + the Program is not required to print an announcement.) + +These requirements apply to the modified work as a whole. If +identifiable sections of that work are not derived from the Program, +and can be reasonably considered independent and separate works in +themselves, then this License, and its terms, do not apply to those +sections when you distribute them as separate works. But when you +distribute the same sections as part of a whole which is a work based +on the Program, the distribution of the whole must be on the terms of +this License, whose permissions for other licensees extend to the +entire whole, and thus to each and every part regardless of who wrote it. + +Thus, it is not the intent of this section to claim rights or contest +your rights to work written entirely by you; rather, the intent is to +exercise the right to control the distribution of derivative or +collective works based on the Program. + +In addition, mere aggregation of another work not based on the Program +with the Program (or with a work based on the Program) on a volume of +a storage or distribution medium does not bring the other work under +the scope of this License. + + 3. You may copy and distribute the Program (or a work based on it, +under Section 2) in object code or executable form under the terms of +Sections 1 and 2 above provided that you also do one of the following: + + a) Accompany it with the complete corresponding machine-readable + source code, which must be distributed under the terms of Sections + 1 and 2 above on a medium customarily used for software interchange; or, + + b) Accompany it with a written offer, valid for at least three + years, to give any third party, for a charge no more than your + cost of physically performing source distribution, a complete + machine-readable copy of the corresponding source code, to be + distributed under the terms of Sections 1 and 2 above on a medium + customarily used for software interchange; or, + + c) Accompany it with the information you received as to the offer + to distribute corresponding source code. (This alternative is + allowed only for noncommercial distribution and only if you + received the program in object code or executable form with such + an offer, in accord with Subsection b above.) + +The source code for a work means the preferred form of the work for +making modifications to it. For an executable work, complete source +code means all the source code for all modules it contains, plus any +associated interface definition files, plus the scripts used to +control compilation and installation of the executable. However, as a +special exception, the source code distributed need not include +anything that is normally distributed (in either source or binary +form) with the major components (compiler, kernel, and so on) of the +operating system on which the executable runs, unless that component +itself accompanies the executable. + +If distribution of executable or object code is made by offering +access to copy from a designated place, then offering equivalent +access to copy the source code from the same place counts as +distribution of the source code, even though third parties are not +compelled to copy the source along with the object code. + + 4. You may not copy, modify, sublicense, or distribute the Program +except as expressly provided under this License. Any attempt +otherwise to copy, modify, sublicense or distribute the Program is +void, and will automatically terminate your rights under this License. +However, parties who have received copies, or rights, from you under +this License will not have their licenses terminated so long as such +parties remain in full compliance. + + 5. You are not required to accept this License, since you have not +signed it. However, nothing else grants you permission to modify or +distribute the Program or its derivative works. These actions are +prohibited by law if you do not accept this License. Therefore, by +modifying or distributing the Program (or any work based on the +Program), you indicate your acceptance of this License to do so, and +all its terms and conditions for copying, distributing or modifying +the Program or works based on it. + + 6. Each time you redistribute the Program (or any work based on the +Program), the recipient automatically receives a license from the +original licensor to copy, distribute or modify the Program subject to +these terms and conditions. You may not impose any further +restrictions on the recipients' exercise of the rights granted herein. +You are not responsible for enforcing compliance by third parties to +this License. + + 7. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), +conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot +distribute so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you +may not distribute the Program at all. For example, if a patent +license would not permit royalty-free redistribution of the Program by +all those who receive copies directly or indirectly through you, then +the only way you could satisfy both it and this License would be to +refrain entirely from distribution of the Program. + +If any portion of this section is held invalid or unenforceable under +any particular circumstance, the balance of the section is intended to +apply and the section as a whole is intended to apply in other +circumstances. + +It is not the purpose of this section to induce you to infringe any +patents or other property right claims or to contest validity of any +such claims; this section has the sole purpose of protecting the +integrity of the free software distribution system, which is +implemented by public license practices. Many people have made +generous contributions to the wide range of software distributed +through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing +to distribute software through any other system and a licensee cannot +impose that choice. + +This section is intended to make thoroughly clear what is believed to +be a consequence of the rest of this License. + + 8. If the distribution and/or use of the Program is restricted in +certain countries either by patents or by copyrighted interfaces, the +original copyright holder who places the Program under this License +may add an explicit geographical distribution limitation excluding +those countries, so that distribution is permitted only in or among +countries not thus excluded. In such case, this License incorporates +the limitation as if written in the body of this License. + + 9. The Free Software Foundation may publish revised and/or new versions +of the General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + +Each version is given a distinguishing version number. If the Program +specifies a version number of this License which applies to it and "any +later version", you have the option of following the terms and conditions +either of that version or of any later version published by the Free +Software Foundation. If the Program does not specify a version number of +this License, you may choose any version ever published by the Free Software +Foundation. + + 10. If you wish to incorporate parts of the Program into other free +programs whose distribution conditions are different, write to the author +to ask for permission. For software which is copyrighted by the Free +Software Foundation, write to the Free Software Foundation; we sometimes +make exceptions for this. Our decision will be guided by the two goals +of preserving the free status of all derivatives of our free software and +of promoting the sharing and reuse of software generally. + + NO WARRANTY + + 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY +FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN +OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES +PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED +OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS +TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE +PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, +REPAIR OR CORRECTION. + + 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR +REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, +INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING +OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED +TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY +YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER +PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE +POSSIBILITY OF SUCH DAMAGES. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +convey the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + <one line to give the program's name and a brief idea of what it does.> + Copyright (C) <year> <name of author> + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + + +Also add information on how to contact you by electronic and paper mail. + +If the program is interactive, make it output a short notice like this +when it starts in an interactive mode: + + Gnomovision version 69, Copyright (C) year name of author + Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, the commands you use may +be called something other than `show w' and `show c'; they could even be +mouse-clicks or menu items--whatever suits your program. + +You should also get your employer (if you work as a programmer) or your +school, if any, to sign a "copyright disclaimer" for the program, if +necessary. Here is a sample; alter the names: + + Yoyodyne, Inc., hereby disclaims all copyright interest in the program + `Gnomovision' (which makes passes at compilers) written by James Hacker. + + <signature of Ty Coon>, 1 April 1989 + Ty Coon, President of Vice + +This General Public License does not permit incorporating your program into +proprietary programs. If your program is a subroutine library, you may +consider it more useful to permit linking proprietary applications with the +library. If this is what you want to do, use the GNU Library General +Public License instead of this License. Property changes on: trunk/COPYING ___________________________________________________________________ Name: svn:mime-type + text/plain Name: svn:eol-style + LF Added: trunk/CREDITS =================================================================== --- trunk/CREDITS (rev 0) +++ trunk/CREDITS 2006-04-03 00:38:05 UTC (rev 2) @@ -0,0 +1,8 @@ +The following people have contributed to JAPI: + +* Christian Hujer <ch...@it...> + Inventor, creator, maintainer + +* Daniel Viegas <der...@so...> + Several contributions, suggestions for enhancements and feedback + Property changes on: trunk/CREDITS ___________________________________________________________________ Name: svn:mime-type + text/plain Name: svn:eol-style + LF Added: trunk/FAQ =================================================================== --- trunk/FAQ (rev 0) +++ trunk/FAQ 2006-04-03 00:38:05 UTC (rev 2) @@ -0,0 +1,4 @@ +FAQ +--- + +No faq yet. Property changes on: trunk/FAQ ___________________________________________________________________ Name: svn:mime-type + text/plain Name: svn:eol-style + LF Added: trunk/INSTALL =================================================================== --- trunk/INSTALL (rev 0) +++ trunk/INSTALL 2006-04-03 00:38:05 UTC (rev 2) @@ -0,0 +1,24 @@ +BUILDING / INSTALLING JAPI +-------------------------- + + +JAPI is a library for Java developers. Because of that, installation is not +applicable. The rest of the file is concerned with building JAPI only. + +To build JAPI, you need Java 5.0 and Ant 1.6.5. The applications you build +using JAPI will need Java 5.0 or newer. + + +To build JAPI, just run ant in the project's root directory or specifying the +build.xml in the project's root directory. To find out, what other options +you have for building JAPI, try "ant -projecthelp". + + +Usually, you'd just want to use JAPI in your favorite IDE and include all +those JAPI classes that you used directly or indirectly in your build. To do +so, the easiest way usually is this: +1. Create a .jar file with the JAPI classes by running "ant distLib". +2. Include that .jar file in the classpath of your IDE. +3. When building your application distribution archive with Ant, add JAPI's + src/app directory to the sourcepath (not srcdir) of your javac task. + Plain javac usage is analogous. Property changes on: trunk/INSTALL ___________________________________________________________________ Name: svn:mime-type + text/plain Name: svn:eol-style + LF Added: trunk/LICENSE =================================================================== --- trunk/LICENSE (rev 0) +++ trunk/LICENSE 2006-04-03 00:38:05 UTC (rev 2) @@ -0,0 +1,9 @@ +JAPI LICENSE INFORMATION +------------------------ + +JAPI is licensed under GPL. See file COPYING. + +JAPI uses some third part libraries, especially for building. These libraries +are contained in the lib/ directory and have their own licenses. See the +corresponding LICENSE-*-files in the lib/ directory for the licenses of third +party libraries. Property changes on: trunk/LICENSE ___________________________________________________________________ Name: svn:mime-type + text/plain Name: svn:eol-style + LF Added: trunk/NEWS =================================================================== --- trunk/NEWS (rev 0) +++ trunk/NEWS 2006-04-03 00:38:05 UTC (rev 2) @@ -0,0 +1,4 @@ +NEWS +---- + +Currently no news. Property changes on: trunk/NEWS ___________________________________________________________________ Name: svn:mime-type + text/plain Name: svn:eol-style + LF Added: trunk/README =================================================================== --- trunk/README (rev 0) +++ trunk/README 2006-04-03 00:38:05 UTC (rev 2) @@ -0,0 +1,134 @@ +JAPI README +----------- + +This file contains some important information about JAPI. You should read it +first. + + +TABLE OF CONTENTS +* project description +* project website +* system requirements +* file structure +* build / installation (see file INSTALL) +* maintainers / credits (see file CREDITS) +* project news (see file NEWS) +* mailing lists +* license information (see file LICENSE) + + +PROJECT DESCRIPTION + +JAPI is a library for Java developers. Its intention is to make the creation +of internationalized swing applications easier. Additionally it contains +several classes that its inventors think could be useful for other developers. + + +PROJECT WEBSITE + +Project homepage: http://japi.sourceforge.net/ +Project website: http://sourceforge.net/projects/japi/ + + +SYSTEM REQUIREMENTS + +Java 5.0 + Previous versions of Java will not work. JAPI uses Generics, autoboxing, + static imports, foreach loops, assertions and varargs quite a lot. + +Ant 1.6.5 + Previous versions of Ant might work but are not tested. + + +FILE STRUCTURE + +.cvsignore + Hidden file to keep generated files that reside outside dest/ and are not + part of the cvs repository out of cvs screen messages. + +build.xml + The build file to build the project with Ant. + +COPYING + JAPI license conditions. Note: applies to JAPI only, not third party + libraries. + +CREDITS + List of project contributors. + +dest/ + The directory containing generated files. + +developer.proprties + Optional file for changing default settings of the Ant build. You won't + need to tweak this file for normal building. But if you want to set or + override properties for build.xml, this is the place to put them. + +dist/ + Generated directory containing distribution archives. + +lib/ + Directory containing third part libraries used to build JAPI. Please note + that these third party libraries have their own license conditions. The + licenses of the third party libraries are included in the lib/ directory. + +LICENSE + File with license information. + +progs/ + Small JAPI-based programs that are yet too small to be worth a project of + their own. + +project.properties + File with automatically changed settings for Ant. + +src/ + Source files. + +src/app/ + Core JAPI library sources. + +src/doc/ + Documentation source files (website). + +src/doc/guide/ + Guide part of the documentation. Also Contains useful JAPI usage examples. + +src/test/ + Unit test suite for automated unit testing of JAPI. + +tools/ + Small sometimes JAPI-based programs for use by JAPI developers. + + +BUILD / INSTALLATION + +See the file INSTALL. + + +MAINTAINERS / CREDITS + +See the file CREDITS + + +PROJECT NEWS + +See the file NEWS + + +MAILING LISTS + +JAPI mailing lists are the usual sourceforge hosted sourceforge project +mailing lists. The current mailing lists are: +* jap...@li... + News for JAPI users and developers (Low traffic, read only) +* japi-devel + JAPI developer talk list +* japi-cvs + cvs commit digest list (currently unused, and probably being replaced + by a corresponding svn commit digest list soon) + + +LICENSE INFORMATION + +See the file LICENSE Property changes on: trunk/README ___________________________________________________________________ Name: svn:mime-type + text/plain Name: svn:eol-style + LF Added: trunk/build.xml =================================================================== --- trunk/build.xml (rev 0) +++ trunk/build.xml 2006-04-03 00:38:05 UTC (rev 2) @@ -0,0 +1,433 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- $Id: build.xml,v 1.35 2006/03/26 15:22:48 christianhujer Exp $ --> +<!DOCTYPE project [ + <!ENTITY catalogForAnt SYSTEM "src/doc/dtd/catalogForAnt.xml"> +]> +<project default="compile"> + + <description> + Build file for JAPI - (Yet another (hopefully) useful) Java API. + </description> + + <property file="developer.properties" /> + <property file="project.properties" /> + <property name="build.source.encoding" value="utf-8" /> + <property name="build.source.version" value="1.5" /> + <property name="build.target.version" value="${build.source.version}" /> + <property name="debug" value="false" /> + <property name="javac.args" value="-Xlint:all,-path,-unchecked,-fallthrough,-serial" /> + <property name="user.javadoc.link" value="http://java.sun.com/j2se/1.5.0/docs/api/" /> + <property name="user.javadoc.javasrc" value="${user.javadoc.javahome}/src" /> + + <taskdef name="megaxslt" classpath="lib/megaxslt.jar" classname="com.hujer.ant.tasks.megaxslt.MegaXsltTask" /> + <taskdef name="rgzip" classpath="lib/megaxslt.jar" classname="com.hujer.ant.tasks.rgzip.RGZipTask" /> + <taskdef name="pack200" classpath="lib/Pack200Task.jar" classname="com.sun.tools.apache.ant.pack200.Pack200Task" /> + <taskdef name="freshmeat" classpath="lib/antmeat.jar" classname="de.frewert.ant.freshmeat.Announcement"> + <classpath> + <pathelement path="lib/xmlrpc-2.0.1.jar" /> + <pathelement path="lib/commons-codec-1.3.jar" /> + </classpath> + </taskdef> + + &catalogForAnt; + + <target + name = "update" + if = "dev.autoupdate" + > + <cvs command = "update" /> + </target> + + <target + name = "init" + depends = "update" + > + </target> + + <target + name = "clean" + description = "Removes all generated files." + > + <delete dir="dest" /> + <delete dir="dist" /> + <subant target="clean"> + <fileset dir="src/doc/guide" includes="**/build.xml" /> + </subant> + </target> + + <target + name = "guideProjects" + description = "builds all guide projects." + > + <subant> + <fileset dir="src/doc/guide" includes="**/build.xml" /> + </subant> + </target> + + <target + name = "compile" + depends = "init" + description = "Compiles the JAPI sources." + > + <mkdir dir="dest/app" /> + <javac + srcdir = "src/app" + destdir = "dest/app" + encoding = "${build.source.encoding}" + source = "${build.source.version}" + target = "${build.target.version}" + debug = "${debug}" + excludes = "test/**/*.java" + > + <classpath> + <fileset dir="lib" includes="annotations.jar" /> + </classpath> + <compilerarg line="${javac.args}" /> + </javac> + <copy todir="dest/app"> + <fileset dir="src/app" includes="**/*.properties" /> + </copy> + </target> + + <target + name = "doc" + depends = "editorialDoc, apiDoc" + description = "Creates project documentation." + /> + + <target + name = "java2html" + description = "Converts documentation java sources to XHTML." + > + <taskdef name="java2html" classpath="lib/java2html.jar" classname="de.java2html.anttasks.Java2HtmlTask" /> + <java2html + srcdir = "src/doc" + destdir = "src/doc" + includes = "**/*.java" + outputformat = "xhtml11" + tabs = "4" + style = "eclipse" + addlineanchors = "true" + includedocumentfooter = "true" + includedocumentheader = "true" + lineanchorprefix = "line" + showdefaulttitle = "true" + showfilename = "true" + showlinenumbers = "true" + showtableborder = "true" + /> + </target> + + <target + name = "editorialDoc" + description = "Creates the editorial part of the project documentation." + depends = "java2html" + > + <mkdir dir="dest/doc" /> + <megaxslt + srcdir="src/doc" + destdir="dest/doc" + includes="**/*.xhtml" + validatesource="true" + validatedest="true" + ending="xhtml" + > + <xmlcatalog refid="commonDTDs" /> + <transformation stylesheet="src/doc/transform.xslt" /> + <transformation stylesheet="src/doc/cleanupXhtml11.xslt" /> + </megaxslt> + <megaxslt + srcdir="dest/doc" + destdir="dest/doc" + includes="**/*.xhtml" + validatesource="true" + validatedest="false" + ending="html" + converttocanonical="true" + > + <xmlcatalog refid="commonDTDs" /> + <transformation stylesheet="src/doc/xhtml2html.xslt" /> + </megaxslt> + <copy + todir="dest/doc" + > + <fileset dir="src/doc"> + <include name="**/.htaccess" /> + <include name="**/*.html" /> + <include name="**/*.css" /> + <include name="**/*.png" /> + <exclude name="**/.xvpics/*.png" /> + </fileset> + </copy> + </target> + + <target + name = "apiDoc" + depends = "init" + description = "Creates public javadoc documentation." + > + <mkdir dir="dest/doc/api/${project.version}" /> + <copy todir="dest/doc/api/${project.version}" file="src/doc/api/public/copyright.html" /> + <copy todir="dest/doc/api/${project.version}" file="src/doc/api/public/.htaccess" /> + <javadoc + destdir = "dest/doc/api/${project.version}" + access = "protected" + author = "yes" + version = "yes" + locale = "en_US" + use = "yes" + splitindex = "yes" + windowtitle = "JAPI API documentation" + doctitle = "JAPI<br />Yet another Java API<br />API Documentation" + header = "JAPI ${project.version}<br />Yet another Java API<br />API Documentation" + footer = "JAPI<br />Yet another Java API<br />API Documentation" + bottom = "<div style="text-align:center;">© 2005-2006 Christian Hujer. All rights reserved. See <a href="{@docRoot}/copyright.html">copyright</a></div>" + serialwarn = "yes" + charset = "${build.source.encoding}" + docencoding = "${build.source.encoding}" + source = "${build.source.version}" + encoding = "${build.source.encoding}" + linksource = "yes" + overview = "src/app/overview.html" + link = "${user.javadoc.link}" + > + <classpath> + <fileset dir="lib" includes="annotations.jar" /> + </classpath> + <sourcepath> + <pathelement path="${user.javadoc.javasrc}" /> + <pathelement path="src/app" /> + </sourcepath> + <packageset + dir="src/app" + defaultexcludes="yes" + > + <include name="**" /> + </packageset> + <tag enabled="true" name="retval" description="Return Values:" scope="methods" /> + <tag enabled="true" name="pre" description="Preconditions:" scope="methods,constructors" /> + <tag enabled="true" name="post" description="Postconditions:" scope="methods" /> + <tag enabled="true" name="note" description="Notes:" /> + <tag enabled="true" name="warning" description="Warnings:" /> + <tag enabled="true" name="todo" description="Todo:" /> + <tag enabled="true" name="fixme" description="Fixme:" /> + <tag enabled="true" name="xxx" description="XXX:" /> + <tag enabled="false" name="used" description="Manually marked as used." /> + </javadoc> + </target> + + <target + name = "dist" + description = "Packs distribution archives." + depends = "distSrc, distLib, distDoc" + /> + + <target + name = "distSrc" + description = "Packs source distribution archives." + > + <mkdir dir="dist" /> + <property name="distSrc" value="dist/japi-${project.version}.src" /> + <parallel> + <tar tarfile="${distSrc}.tar"> + <tarfileset dir="." prefix="japi-${project.version}"> + <include name="src/**" /> + <include name="build.xml" /> + </tarfileset> + </tar> + <zip destfile="${distSrc}.zip"> + <zipfileset dir="." prefix="japi-${project.version}"> + <include name="src/**" /> + <include name="build.xml" /> + </zipfileset> + </zip> + <jar destfile="${distSrc}.jar"> + <zipfileset dir="." prefix="japi-${project.version}"> + <include name="src/**" /> + <include name="build.xml" /> + </zipfileset> + </jar> + </parallel> + <parallel> + <gzip src="${distSrc}.tar" destfile="${distSrc}.tar.gz" /> + <bzip2 src="${distSrc}.tar" destfile="${distSrc}.tar.bz2" /> + </parallel> + <delete file="${distSrc}.tar" /> + </target> + + <target + name = "distLib" + description = "Packs library distribution archives." + depends = "compile" + > + <mkdir dir="dist" /> + <property name="distLib" value="dist/japi-${project.version}.lib" /> + <jar destfile="${distLib}.jar"> + <zipfileset dir="dest/app"/> + <zipfileset src="lib/annotations.jar"/> + <manifest> + <attribute name="Implementation-Title" value="JAPI" /> + <attribute name="Implementation-Vendor" value="Christian Hujer + the JAPI Developers" /> + <attribute name="Implementation-Version" value="${project.version}" /> + <attribute name="Implementation-URL" value="http://sourceforge.net/projets/japi/" /> + </manifest> + </jar> + <pack200 + src="${distLib}.jar" + destfile="${distLib}.pack.gz" + gzipoutput="true" + stripdebug="true" + effort="9" + keepfileorder="false" + modificationtime="latest" + deflatehint="false" + /> + </target> + + <target + name = "distDoc" + description = "Packs documentation archives." + depends = "apiDoc" + > + <mkdir dir="dist" /> + <property name="distDoc" value="dist/japi-${project.version}.doc" /> + <parallel> + <tar tarfile="${distDoc}.tar"> + <tarfileset dir="dest/doc" prefix="japi-${project.version}"> + <include name="api/${project.version}/**" /> + </tarfileset> + </tar> + <zip destfile="${distDoc}.zip"> + <zipfileset dir="dest/doc" prefix="japi-${project.version}"> + <include name="api/${project.version}/**" /> + </zipfileset> + </zip> + <jar destfile="${distDoc}.jar"> + <zipfileset dir="dest/doc" prefix="japi-${project.version}"> + <include name="api/${project.version}/**" /> + </zipfileset> + </jar> + </parallel> + <parallel> + <gzip src="${distDoc}.tar" destfile="${distDoc}.tar.gz" /> + <bzip2 src="${distDoc}.tar" destfile="${distDoc}.tar.bz2" /> + </parallel> + <delete file="${distDoc}.tar" /> + </target> + + <target + name = "checkDevMail" + description = "checks whether the developer defined his / her email address" + unless = "developer.email" + > + <fail message="You must define the property developer.email with your email address in the file developer.properties." /> + </target> + + <target + name = "releaseDist" + description = "uploads distribution archives to sourceforge." + if = "developer.email" + depends = "checkDevMail, dist" + > + <touch file="src/doc/api/start.xhtml" millis="0" /> + <megaxslt + srcdir="src/doc/api" + destdir="src/doc/api" + includes="start.xhtml" + validatesource="true" + validatedest="true" + ending="xhtml" + converttocanonical="true" + checktimestamps="true" + > + <xmlcatalog refid="commonDTDs" /> + <parameter name="project.version" value="${project.version}" /> + <transformation stylesheet="src/doc/api/release.xslt" /> + </megaxslt> + <cvs command="commit -m '' src/doc/api/start.xhtml" /> + <exec executable="rsync"> + <arg line="-auzv -e ssh dest/doc/api/ ${user.rsync.username}@${user.rsync.host}:${user.rsync.dir}/htdocs/api/" /> + </exec> + <sshexec + host="${user.rsync.host}" + username="${user.rsync.username}" + keyfile="${user.ssh.keyfile}" + command="rm ${user.rsync.dir}/htdocs/api/latest ; ln -s ${project.version} ${user.rsync.dir}/htdocs/api/latest" + /> + <ftp + server = "upload.sourceforge.net" + userid = "anonymous" + password = "${developer.email}" + remotedir = "incoming" + action = "put" + > + <fileset dir="dist" /> + </ftp> + <cvs command="tag -c japi_${project.tag}" failonerror="true"/> + <antcall target="uploadDoc" /> + </target> + + <target + name = "uploadDoc" + description = "uploads the latest editorial documentation." + depends = "editorialDoc" + > + <exec executable="rsync"> + <arg line="-auzv --exclude=api/*/ -e ssh dest/doc/ ${user.rsync.username}@${user.rsync.host}:${user.rsync.dir}/htdocs/" /> + </exec> + </target> + + <target + name = "announce" + description = "announce new version on freshmeat.net" + > + <echo>Announcing. Press return to start announcing this release at FreshMeat.</echo> + <input/> + <freshmeat + username = "${user.freshmeat.username}" + password = "${user.freshmeat.password}" + > + <printlicenses/> + <printreleasefoci/> + <publish + projectname = "japi" + branchname = "Default" + version = "${project.version}" + focus = "${project.focus}" + > + <changes file="LatestNews" /> + <urlblock + homepage = "http://japi.sourceforge.net/" + cvs = "http://cvs.sourceforge.net/viewcvs.py/japi/" + mailinglist = "http://sourceforge.net/mailarchive/forum.php?forum=japi-users" + tgz = "http://prdownloads.sourceforge.net/japi/japi-${project.version}.src.tar.gz?download" + bz2 = "http://prdownloads.sourceforge.net/japi/japi-${project.version}.src.tar.bz2?download" + zip = "http://prdownloads.sourceforge.net/japi/japi-${project.version}.src.zip?download" + /> + </publish> + </freshmeat> + </target> + + <target + name = "release" + description = "Releases a new version of JAPI." + > + <antcall target="clean" /> + <antcall target="releaseDist" /> + <echo>I've uploaded the distribution archives to sourceforge. +Press return when you're done configuring the new file releases on sourceforge. +I will then announce the release at FreshMeat.</echo> + <input/> + <antcall target="announce" /> + </target> + + <target + name = "changelogTest" + description = "Test task to try out CvsChangeLog" + > + <cvschangelog destfile="changelog.xml" tag="japi_${project.version}"> + <user displayname="Christian Hujer" userid="christianhujer" /> + </cvschangelog> + </target> + +</project> Property changes on: trunk/build.xml ___________________________________________________________________ Name: svn:mime-type + text/xml Name: svn:eol-style + LF Added: trunk/lib/LICENSE-Pack200Task.jar =================================================================== --- trunk/lib/LICENSE-Pack200Task.jar (rev 0) +++ trunk/lib/LICENSE-Pack200Task.jar 2006-04-03 00:38:05 UTC (rev 2) @@ -0,0 +1,471 @@ +SUN PUBLIC LICENSE Version 1.0 + +1. Definitions. + + 1.0.1. "Commercial Use" means distribution or otherwise making the + Covered Code available to a third party. + + 1.1. "Contributor" means each entity that creates or contr... [truncated message content] |
From: <chr...@us...> - 2006-04-06 22:54:24
|
Revision: 19 Author: christianhujer Date: 2006-04-06 15:53:59 -0700 (Thu, 06 Apr 2006) ViewCVS: http://svn.sourceforge.net/japi/?rev=19&view=rev Log Message: ----------- Changed build.xml to support subversion instead of cvs. Modified Paths: -------------- trunk/build.xml Added Paths: ----------- trunk/lib/LICENSE-svnClientAdapter.jar trunk/lib/LICENSE-svnant.jar trunk/lib/svnClientAdapter.jar trunk/lib/svnant.jar Modified: trunk/build.xml =================================================================== --- trunk/build.xml 2006-04-06 00:04:52 UTC (rev 18) +++ trunk/build.xml 2006-04-06 22:53:59 UTC (rev 19) @@ -18,7 +18,25 @@ <property name="javac.args" value="-Xlint:all,-path,-unchecked,-fallthrough,-serial" /> <property name="user.javadoc.link" value="http://java.sun.com/j2se/1.5.0/docs/api/" /> <property name="user.javadoc.javasrc" value="${user.javadoc.javahome}/src" /> + <property name="user.svn.javahl" value="false" /> + <property name="svn.baseUrl" value="https://svn.sourceforge.net/svnroot/japi" /> + <condition property="svnCreateBranch" value="true"> + <equals arg1="${project.version.patch}" arg2="0" /> + </condition> + <condition property="svn.branch.sourceUrl" value="${svn.baseUrl}/trunk"> + <equals arg1="${project.version.patch}" arg2="0" /> + </condition> + <condition property="svn.branch.targetUrl" value="${svn.baseUrl}/branches/${project.version.major}.${project.version.minor}"> + <equals arg1="${project.version.patch}" arg2="0" /> + </condition> + <condition property="svn.branch.message" value="Creating branch for version ${project.version.major}.${project.version.minor}"> + <equals arg1="${project.version.patch}" arg2="0" /> + </condition> + <property name="svn.tag.sourceUrl" value="${svn.baseUrl}/branches/${project.version.major}.${project.version.minor}" /> + <property name="svn.tag.targetUrl" value="${svn.baseUrl}/tags/${project.version.major}.${project.version.minor}.${project.version.patch}" /> + <property name="svn.tag.message" value="Creating release tag for version ${project.version.major}.${project.version.minor}.${project.version.patch}" /> + <taskdef name="megaxslt" classpath="lib/megaxslt.jar" classname="com.hujer.ant.tasks.megaxslt.MegaXsltTask" /> <taskdef name="rgzip" classpath="lib/megaxslt.jar" classname="com.hujer.ant.tasks.rgzip.RGZipTask" /> <taskdef name="pack200" classpath="lib/Pack200Task.jar" classname="com.sun.tools.apache.ant.pack200.Pack200Task" /> @@ -28,6 +46,11 @@ <pathelement path="lib/commons-codec-1.3.jar" /> </classpath> </taskdef> + <taskdef name="svn" classpath="lib/svnant.jar" classname="org.tigris.subversion.svnant.SvnTask"> + <classpath> + <pathelement path="lib/svnClientAdapter.jar" /> + </classpath> + </taskdef> &catalogForAnt; @@ -35,7 +58,9 @@ name = "update" if = "dev.autoupdate" > - <cvs command = "update" /> + <svn javahl="${user.svn.javahl}"> + <update dir="."/> + </svn> </target> <target @@ -344,7 +369,9 @@ <parameter name="project.version" value="${project.version}" /> <transformation stylesheet="src/doc/api/release.xslt" /> </megaxslt> - <cvs command="commit -m '' src/doc/api/start.xhtml" /> + <svn javahl="${user.svn.javahl}"> + <commit file="src/doc/api/start.xhtml" message="Updating API link to include ${project.version}." /> + </svn> <exec executable="rsync"> <arg line="-auzv -e ssh dest/doc/api/ ${user.rsync.username}@${user.rsync.host}:${user.rsync.dir}/htdocs/api/" /> </exec> @@ -363,7 +390,8 @@ > <fileset dir="dist" /> </ftp> - <cvs command="tag -c japi_${project.tag}" failonerror="true"/> + <antcall target="svnCreateBranch" /> + <antcall target="svnCreateTag" /> <antcall target="uploadDoc" /> </target> @@ -430,4 +458,22 @@ </cvschangelog> </target> + <target + name = "svnCreateBranch" + description = "Creates a release branch. This target shouldn't be invoked directly." + if = "svnCreateBranch" + > + <svn javahl="${user.svn.javahl}"> + <copy srcUrl="${svn.branch.sourceUrl}" desturl="${svn.branch.targetUrl}" message="${svn.branch.message}" /> + </svn> + </target> + + <target + name = "svnCreateTag" + description = "Creates a release tag. This target shouldn't be invoked directly." + > + <svn javahl="${user.svn.javahl}"> + <copy srcUrl="${svn.tag.sourceUrl}" desturl="${svn.tag.targetUrl}" message="${svn.tag.message}" /> + </svn> + </target> </project> Added: trunk/lib/LICENSE-svnClientAdapter.jar =================================================================== --- trunk/lib/LICENSE-svnClientAdapter.jar (rev 0) +++ trunk/lib/LICENSE-svnClientAdapter.jar 2006-04-06 22:53:59 UTC (rev 19) @@ -0,0 +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 + limitations under the License. Property changes on: trunk/lib/LICENSE-svnClientAdapter.jar ___________________________________________________________________ Name: svn:mime-type + text/plain Name: svn:eol-style + LF Added: trunk/lib/LICENSE-svnant.jar =================================================================== --- trunk/lib/LICENSE-svnant.jar (rev 0) +++ trunk/lib/LICENSE-svnant.jar 2006-04-06 22:53:59 UTC (rev 19) @@ -0,0 +1,58 @@ +/* ==================================================================== + * The Apache Software License, Version 1.1 + * + * Copyright (c) 2000 The Apache Software Foundation. All rights + * reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * 3. The end-user documentation included with the redistribution, + * if any, must include the following acknowledgment: + * "This product includes software developed by the + * Apache Software Foundation (http://www.apache.org/)." + * Alternately, this acknowledgment may appear in the software itself, + * if and wherever such third-party acknowledgments normally appear. + * + * 4. The names "Apache" and "Apache Software Foundation" must + * not be used to endorse or promote products derived from this + * software without prior written permission. For written + * permission, please contact ap...@ap.... + * + * 5. Products derived from this software may not be called "Apache", + * nor may "Apache" appear in their name, without prior written + * permission of the Apache Software Foundation. + * + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES + * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR + * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF + * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, + * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT + * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + * ==================================================================== + * + * This software consists of voluntary contributions made by many + * individuals on behalf of the Apache Software Foundation. For more + * information on the Apache Software Foundation, please see + * <http://www.apache.org/>. + * + * Portions of this software are based upon public domain software + * originally written at the National Center for Supercomputing Applications, + * University of Illinois, Urbana-Champaign. + */ + Property changes on: trunk/lib/LICENSE-svnant.jar ___________________________________________________________________ Name: svn:mime-type + text/plain Name: svn:eol-style + LF Added: trunk/lib/svnClientAdapter.jar =================================================================== (Binary files differ) Property changes on: trunk/lib/svnClientAdapter.jar ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/lib/svnant.jar =================================================================== (Binary files differ) Property changes on: trunk/lib/svnant.jar ___________________________________________________________________ Name: svn:mime-type + application/octet-stream This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <chr...@us...> - 2006-04-15 16:13:28
|
Revision: 66 Author: christianhujer Date: 2006-04-15 09:12:19 -0700 (Sat, 15 Apr 2006) ViewCVS: http://svn.sourceforge.net/japi/?rev=66&view=rev Log Message: ----------- Integrated checkstyle. Modified Paths: -------------- trunk/build.xml trunk/src/doc/tasks.xhtml Added Paths: ----------- trunk/lib/LICENSE-antlr.jar trunk/lib/LICENSE-checkstyle.jar trunk/lib/LICENSE-commons-beanutils-core.jar trunk/lib/antlr.jar trunk/lib/checkstyle.jar trunk/lib/commons-beanutils-core.jar Modified: trunk/build.xml =================================================================== --- trunk/build.xml 2006-04-15 16:09:52 UTC (rev 65) +++ trunk/build.xml 2006-04-15 16:12:19 UTC (rev 66) @@ -349,6 +349,14 @@ </target> <target + name = "checkDevSmtp" + description = "checks whether the developer defined his / her smtp host" + unless = "user.mail.smtp.host" + > + <fail message="You must define the property user.mail.smtp.host with your smtp host address in the file developer.properties." /> + </target> + + <target name = "releaseDist" description = "uploads distribution archives to sourceforge." if = "developer.email" @@ -467,4 +475,49 @@ <copy srcUrl="${svn.tag.sourceUrl}" desturl="${svn.tag.targetUrl}" message="${svn.tag.message}" /> </svn> </target> + + <target + name = "checkstyle" + description = "Runs checkstyle to stylecheck the source code" + > + <taskdef + resource = "checkstyletask.properties" + classpath = "lib/checkstyle.jar" + > + <classpath> + <pathelement path="lib/antlr.jar" /> + <pathelement path="lib/commons-beanutils-core.jar" /> + </classpath> + </taskdef> + <checkstyle + config = "src/checkstyle.xml" + failOnViolation = "false" + > + <formatter type="xml" tofile="dest/doc/checkstyle_report.xml" /> + <formatter type="plain" tofile="dest/doc/checkstyle_report.txt" /> + <formatter type="plain" /> + <fileset dir="src/app" includes="**/*.java" /> + <fileset dir="src" includes="test/**/*.java" /> + </checkstyle> + <style + in = "dest/doc/checkstyle_report.xml" + out = "dest/doc/checkstyle_report.html" + style = "src/doc/checkstyle.xslt" + /> + </target> + + <target + name = "mailCheckstyle" + description = "Mails checkstyle results to the mailing list" + depends = "checkstyle, checkDevMail, checkDevSmtp" + > + <mail + from = "${developer.email}" + tolist = "jap...@li..." + mailhost = "${user.mail.smtp.host}" + subject = "Checkstyle violation(s) in JAPI" + files = "checkstyle_report.html" + /> + </target> + </project> Added: trunk/lib/LICENSE-antlr.jar =================================================================== --- trunk/lib/LICENSE-antlr.jar (rev 0) +++ trunk/lib/LICENSE-antlr.jar 2006-04-15 16:12:19 UTC (rev 66) @@ -0,0 +1,32 @@ + +SOFTWARE RIGHTS +$Id: RIGHTS.antlr,v 1.1 2001/06/22 13:11:01 oburn Exp $ + +ANTLR 1989-2000 Developed by jGuru.com (MageLang Institute), +http://www.ANTLR.org and http://www.jGuru.com + +We reserve no legal rights to the ANTLR--it is fully in the +public domain. An individual or company may do whatever +they wish with source code distributed with ANTLR or the +code generated by ANTLR, including the incorporation of +ANTLR, or its output, into commerical software. + +We encourage users to develop software with ANTLR. However, +we do ask that credit is given to us for developing +ANTLR. By "credit", we mean that if you use ANTLR or +incorporate any source code into one of your programs +(commercial product, research project, or otherwise) that +you acknowledge this fact somewhere in the documentation, +research report, etc... If you like ANTLR and have +developed a nice tool with the output, please mention that +you developed it using ANTLR. In addition, we ask that the +headers remain intact in our source code. As long as these +guidelines are kept, we expect to continue enhancing this +system and expect to make other tools available as they are +completed. + +The primary ANTLR guy: + +Terence Parr +http://www.jGuru.com +p...@jg... Property changes on: trunk/lib/LICENSE-antlr.jar ___________________________________________________________________ Name: svn:mime-type + text/plain Name: svn:eol-style + LF Added: trunk/lib/LICENSE-checkstyle.jar =================================================================== --- trunk/lib/LICENSE-checkstyle.jar (rev 0) +++ trunk/lib/LICENSE-checkstyle.jar 2006-04-15 16:12:19 UTC (rev 66) @@ -0,0 +1,504 @@ + GNU LESSER GENERAL PUBLIC LICENSE + Version 2.1, February 1999 + + Copyright (C) 1991, 1999 Free Software Foundation, Inc. + 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + +[This is the first released version of the Lesser GPL. It also counts + as the successor of the GNU Library Public License, version 2, hence + the version number 2.1.] + + Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +Licenses are intended to guarantee your freedom to share and change +free software--to make sure the software is free for all its users. + + This license, the Lesser General Public License, applies to some +specially designated software packages--typically libraries--of the +Free Software Foundation and other authors who decide to use it. You +can use it too, but we suggest you first think carefully about whether +this license or the ordinary General Public License is the better +strategy to use in any particular case, based on the explanations below. + + When we speak of free software, we are referring to freedom of use, +not price. Our General Public Licenses are designed to make sure that +you have the freedom to distribute copies of free software (and charge +for this service if you wish); that you receive source code or can get +it if you want it; that you can change the software and use pieces of +it in new free programs; and that you are informed that you can do +these things. + + To protect your rights, we need to make restrictions that forbid +distributors to deny you these rights or to ask you to surrender these +rights. These restrictions translate to certain responsibilities for +you if you distribute copies of the library or if you modify it. + + For example, if you distribute copies of the library, whether gratis +or for a fee, you must give the recipients all the rights that we gave +you. You must make sure that they, too, receive or can get the source +code. If you link other code with the library, you must provide +complete object files to the recipients, so that they can relink them +with the library after making changes to the library and recompiling +it. And you must show them these terms so they know their rights. + + We protect your rights with a two-step method: (1) we copyright the +library, and (2) we offer you this license, which gives you legal +permission to copy, distribute and/or modify the library. + + To protect each distributor, we want to make it very clear that +there is no warranty for the free library. Also, if the library is +modified by someone else and passed on, the recipients should know +that what they have is not the original version, so that the original +author's reputation will not be affected by problems that might be +introduced by others. + + Finally, software patents pose a constant threat to the existence of +any free program. We wish to make sure that a company cannot +effectively restrict the users of a free program by obtaining a +restrictive license from a patent holder. Therefore, we insist that +any patent license obtained for a version of the library must be +consistent with the full freedom of use specified in this license. + + Most GNU software, including some libraries, is covered by the +ordinary GNU General Public License. This license, the GNU Lesser +General Public License, applies to certain designated libraries, and +is quite different from the ordinary General Public License. We use +this license for certain libraries in order to permit linking those +libraries into non-free programs. + + When a program is linked with a library, whether statically or using +a shared library, the combination of the two is legally speaking a +combined work, a derivative of the original library. The ordinary +General Public License therefore permits such linking only if the +entire combination fits its criteria of freedom. The Lesser General +Public License permits more lax criteria for linking other code with +the library. + + We call this license the "Lesser" General Public License because it +does Less to protect the user's freedom than the ordinary General +Public License. It also provides other free software developers Less +of an advantage over competing non-free programs. These disadvantages +are the reason we use the ordinary General Public License for many +libraries. However, the Lesser license provides advantages in certain +special circumstances. + + For example, on rare occasions, there may be a special need to +encourage the widest possible use of a certain library, so that it becomes +a de-facto standard. To achieve this, non-free programs must be +allowed to use the library. A more frequent case is that a free +library does the same job as widely used non-free libraries. In this +case, there is little to gain by limiting the free library to free +software only, so we use the Lesser General Public License. + + In other cases, permission to use a particular library in non-free +programs enables a greater number of people to use a large body of +free software. For example, permission to use the GNU C Library in +non-free programs enables many more people to use the whole GNU +operating system, as well as its variant, the GNU/Linux operating +system. + + Although the Lesser General Public License is Less protective of the +users' freedom, it does ensure that the user of a program that is +linked with the Library has the freedom and the wherewithal to run +that program using a modified version of the Library. + + The precise terms and conditions for copying, distribution and +modification follow. Pay close attention to the difference between a +"work based on the library" and a "work that uses the library". The +former contains code derived from the library, whereas the latter must +be combined with the library in order to run. + + GNU LESSER GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License Agreement applies to any software library or other +program which contains a notice placed by the copyright holder or +other authorized party saying it may be distributed under the terms of +this Lesser General Public License (also called "this License"). +Each licensee is addressed as "you". + + A "library" means a collection of software functions and/or data +prepared so as to be conveniently linked with application programs +(which use some of those functions and data) to form executables. + + The "Library", below, refers to any such software library or work +which has been distributed under these terms. A "work based on the +Library" means either the Library or any derivative work under +copyright law: that is to say, a work containing the Library or a +portion of it, either verbatim or with modifications and/or translated +straightforwardly into another language. (Hereinafter, translation is +included without limitation in the term "modification".) + + "Source code" for a work means the preferred form of the work for +making modifications to it. For a library, complete source code means +all the source code for all modules it contains, plus any associated +interface definition files, plus the scripts used to control compilation +and installation of the library. + + Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of +running a program using the Library is not restricted, and output from +such a program is covered only if its contents constitute a work based +on the Library (independent of the use of the Library in a tool for +writing it). Whether that is true depends on what the Library does +and what the program that uses the Library does. + + 1. You may copy and distribute verbatim copies of the Library's +complete source code as you receive it, in any medium, provided that +you conspicuously and appropriately publish on each copy an +appropriate copyright notice and disclaimer of warranty; keep intact +all the notices that refer to this License and to the absence of any +warranty; and distribute a copy of this License along with the +Library. + + You may charge a fee for the physical act of transferring a copy, +and you may at your option offer warranty protection in exchange for a +fee. + + 2. You may modify your copy or copies of the Library or any portion +of it, thus forming a work based on the Library, and copy and +distribute such modifications or work under the terms of Section 1 +above, provided that you also meet all of these conditions: + + a) The modified work must itself be a software library. + + b) You must cause the files modified to carry prominent notices + stating that you changed the files and the date of any change. + + c) You must cause the whole of the work to be licensed at no + charge to all third parties under the terms of this License. + + d) If a facility in the modified Library refers to a function or a + table of data to be supplied by an application program that uses + the facility, other than as an argument passed when the facility + is invoked, then you must make a good faith effort to ensure that, + in the event an application does not supply such function or + table, the facility still operates, and performs whatever part of + its purpose remains meaningful. + + (For example, a function in a library to compute square roots has + a purpose that is entirely well-defined independent of the + application. Therefore, Subsection 2d requires that any + application-supplied function or table used by this function must + be optional: if the application does not supply it, the square + root function must still compute square roots.) + +These requirements apply to the modified work as a whole. If +identifiable sections of that work are not derived from the Library, +and can be reasonably considered independent and separate works in +themselves, then this License, and its terms, do not apply to those +sections when you distribute them as separate works. But when you +distribute the same sections as part of a whole which is a work based +on the Library, the distribution of the whole must be on the terms of +this License, whose permissions for other licensees extend to the +entire whole, and thus to each and every part regardless of who wrote +it. + +Thus, it is not the intent of this section to claim rights or contest +your rights to work written entirely by you; rather, the intent is to +exercise the right to control the distribution of derivative or +collective works based on the Library. + +In addition, mere aggregation of another work not based on the Library +with the Library (or with a work based on the Library) on a volume of +a storage or distribution medium does not bring the other work under +the scope of this License. + + 3. You may opt to apply the terms of the ordinary GNU General Public +License instead of this License to a given copy of the Library. To do +this, you must alter all the notices that refer to this License, so +that they refer to the ordinary GNU General Public License, version 2, +instead of to this License. (If a newer version than version 2 of the +ordinary GNU General Public License has appeared, then you can specify +that version instead if you wish.) Do not make any other change in +these notices. + + Once this change is made in a given copy, it is irreversible for +that copy, so the ordinary GNU General Public License applies to all +subsequent copies and derivative works made from that copy. + + This option is useful when you wish to copy part of the code of +the Library into a program that is not a library. + + 4. You may copy and distribute the Library (or a portion or +derivative of it, under Section 2) in object code or executable form +under the terms of Sections 1 and 2 above provided that you accompany +it with the complete corresponding machine-readable source code, which +must be distributed under the terms of Sections 1 and 2 above on a +medium customarily used for software interchange. + + If distribution of object code is made by offering access to copy +from a designated place, then offering equivalent access to copy the +source code from the same place satisfies the requirement to +distribute the source code, even though third parties are not +compelled to copy the source along with the object code. + + 5. A program that contains no derivative of any portion of the +Library, but is designed to work with the Library by being compiled or +linked with it, is called a "work that uses the Library". Such a +work, in isolation, is not a derivative work of the Library, and +therefore falls outside the scope of this License. + + However, linking a "work that uses the Library" with the Library +creates an executable that is a derivative of the Library (because it +contains portions of the Library), rather than a "work that uses the +library". The executable is therefore covered by this License. +Section 6 states terms for distribution of such executables. + + When a "work that uses the Library" uses material from a header file +that is part of the Library, the object code for the work may be a +derivative work of the Library even though the source code is not. +Whether this is true is especially significant if the work can be +linked without the Library, or if the work is itself a library. The +threshold for this to be true is not precisely defined by law. + + If such an object file uses only numerical parameters, data +structure layouts and accessors, and small macros and small inline +functions (ten lines or less in length), then the use of the object +file is unrestricted, regardless of whether it is legally a derivative +work. (Executables containing this object code plus portions of the +Library will still fall under Section 6.) + + Otherwise, if the work is a derivative of the Library, you may +distribute the object code for the work under the terms of Section 6. +Any executables containing that work also fall under Section 6, +whether or not they are linked directly with the Library itself. + + 6. As an exception to the Sections above, you may also combine or +link a "work that uses the Library" with the Library to produce a +work containing portions of the Library, and distribute that work +under terms of your choice, provided that the terms permit +modification of the work for the customer's own use and reverse +engineering for debugging such modifications. + + You must give prominent notice with each copy of the work that the +Library is used in it and that the Library and its use are covered by +this License. You must supply a copy of this License. If the work +during execution displays copyright notices, you must include the +copyright notice for the Library among them, as well as a reference +directing the user to the copy of this License. Also, you must do one +of these things: + + a) Accompany the work with the complete corresponding + machine-readable source code for the Library including whatever + changes were used in the work (which must be distributed under + Sections 1 and 2 above); and, if the work is an executable linked + with the Library, with the complete machine-readable "work that + uses the Library", as object code and/or source code, so that the + user can modify the Library and then relink to produce a modified + executable containing the modified Library. (It is understood + that the user who changes the contents of definitions files in the + Library will not necessarily be able to recompile the application + to use the modified definitions.) + + b) Use a suitable shared library mechanism for linking with the + Library. A suitable mechanism is one that (1) uses at run time a + copy of the library already present on the user's computer system, + rather than copying library functions into the executable, and (2) + will operate properly with a modified version of the library, if + the user installs one, as long as the modified version is + interface-compatible with the version that the work was made with. + + c) Accompany the work with a written offer, valid for at + least three years, to give the same user the materials + specified in Subsection 6a, above, for a charge no more + than the cost of performing this distribution. + + d) If distribution of the work is made by offering access to copy + from a designated place, offer equivalent access to copy the above + specified materials from the same place. + + e) Verify that the user has already received a copy of these + materials or that you have already sent this user a copy. + + For an executable, the required form of the "work that uses the +Library" must include any data and utility programs needed for +reproducing the executable from it. However, as a special exception, +the materials to be distributed need not include anything that is +normally distributed (in either source or binary form) with the major +components (compiler, kernel, and so on) of the operating system on +which the executable runs, unless that component itself accompanies +the executable. + + It may happen that this requirement contradicts the license +restrictions of other proprietary libraries that do not normally +accompany the operating system. Such a contradiction means you cannot +use both them and the Library together in an executable that you +distribute. + + 7. You may place library facilities that are a work based on the +Library side-by-side in a single library together with other library +facilities not covered by this License, and distribute such a combined +library, provided that the separate distribution of the work based on +the Library and of the other library facilities is otherwise +permitted, and provided that you do these two things: + + a) Accompany the combined library with a copy of the same work + based on the Library, uncombined with any other library + facilities. This must be distributed under the terms of the + Sections above. + + b) Give prominent notice with the combined library of the fact + that part of it is a work based on the Library, and explaining + where to find the accompanying uncombined form of the same work. + + 8. You may not copy, modify, sublicense, link with, or distribute +the Library except as expressly provided under this License. Any +attempt otherwise to copy, modify, sublicense, link with, or +distribute the Library is void, and will automatically terminate your +rights under this License. However, parties who have received copies, +or rights, from you under this License will not have their licenses +terminated so long as such parties remain in full compliance. + + 9. You are not required to accept this License, since you have not +signed it. However, nothing else grants you permission to modify or +distribute the Library or its derivative works. These actions are +prohibited by law if you do not accept this License. Therefore, by +modifying or distributing the Library (or any work based on the +Library), you indicate your acceptance of this License to do so, and +all its terms and conditions for copying, distributing or modifying +the Library or works based on it. + + 10. Each time you redistribute the Library (or any work based on the +Library), the recipient automatically receives a license from the +original licensor to copy, distribute, link with or modify the Library +subject to these terms and conditions. You may not impose any further +restrictions on the recipients' exercise of the rights granted herein. +You are not responsible for enforcing compliance by third parties with +this License. + + 11. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), +conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot +distribute so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you +may not distribute the Library at all. For example, if a patent +license would not permit royalty-free redistribution of the Library by +all those who receive copies directly or indirectly through you, then +the only way you could satisfy both it and this License would be to +refrain entirely from distribution of the Library. + +If any portion of this section is held invalid or unenforceable under any +particular circumstance, the balance of the section is intended to apply, +and the section as a whole is intended to apply in other circumstances. + +It is not the purpose of this section to induce you to infringe any +patents or other property right claims or to contest validity of any +such claims; this section has the sole purpose of protecting the +integrity of the free software distribution system which is +implemented by public license practices. Many people have made +generous contributions to the wide range of software distributed +through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing +to distribute software through any other system and a licensee cannot +impose that choice. + +This section is intended to make thoroughly clear what is believed to +be a consequence of the rest of this License. + + 12. If the distribution and/or use of the Library is restricted in +certain countries either by patents or by copyrighted interfaces, the +original copyright holder who places the Library under this License may add +an explicit geographical distribution limitation excluding those countries, +so that distribution is permitted only in or among countries not thus +excluded. In such case, this License incorporates the limitation as if +written in the body of this License. + + 13. The Free Software Foundation may publish revised and/or new +versions of the Lesser General Public License from time to time. +Such new versions will be similar in spirit to the present version, +but may differ in detail to address new problems or concerns. + +Each version is given a distinguishing version number. If the Library +specifies a version number of this License which applies to it and +"any later version", you have the option of following the terms and +conditions either of that version or of any later version published by +the Free Software Foundation. If the Library does not specify a +license version number, you may choose any version ever published by +the Free Software Foundation. + + 14. If you wish to incorporate parts of the Library into other free +programs whose distribution conditions are incompatible with these, +write to the author to ask for permission. For software which is +copyrighted by the Free Software Foundation, write to the Free +Software Foundation; we sometimes make exceptions for this. Our +decision will be guided by the two goals of preserving the free status +of all derivatives of our free software and of promoting the sharing +and reuse of software generally. + + NO WARRANTY + + 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO +WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. +EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR +OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY +KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE +LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME +THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + + 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN +WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY +AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU +FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR +CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE +LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING +RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A +FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF +SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH +DAMAGES. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Libraries + + If you develop a new library, and you want it to be of the greatest +possible use to the public, we recommend making it free software that +everyone can redistribute and change. You can do so by permitting +redistribution under these terms (or, alternatively, under the terms of the +ordinary General Public License). + + To apply these terms, attach the following notices to the library. It is +safest to attach them to the start of each source file to most effectively +convey the exclusion of warranty; and each file should have at least the +"copyright" line and a pointer to where the full notice is found. + + <one line to give the library's name and a brief idea of what it does.> + Copyright (C) <year> <name of author> + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + +Also add information on how to contact you by electronic and paper mail. + +You should also get your employer (if you work as a programmer) or your +school, if any, to sign a "copyright disclaimer" for the library, if +necessary. Here is a sample; alter the names: + + Yoyodyne, Inc., hereby disclaims all copyright interest in the + library `Frob' (a library for tweaking knobs) written by James Random Hacker. + + <signature of Ty Coon>, 1 April 1990 + Ty Coon, President of Vice + +That's all there is to it! + + Property changes on: trunk/lib/LICENSE-checkstyle.jar ___________________________________________________________________ Name: svn:mime-type + text/plain Name: svn:eol-style + LF Added: trunk/lib/LICENSE-commons-beanutils-core.jar =================================================================== --- trunk/lib/LICENSE-commons-beanutils-core.jar (rev 0) +++ trunk/lib/LICENSE-commons-beanutils-core.jar 2006-04-15 16:12:19 UTC (rev 66) @@ -0,0 +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 + limitations under the License. Property changes on: trunk/lib/LICENSE-commons-beanutils-core.jar ___________________________________________________________________ Name: svn:mime-type + text/plain Name: svn:eol-style + LF Added: trunk/lib/antlr.jar =================================================================== (Binary files differ) Property changes on: trunk/lib/antlr.jar ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/lib/checkstyle.jar =================================================================== (Binary files differ) Property changes on: trunk/lib/checkstyle.jar ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/lib/commons-beanutils-core.jar =================================================================== (Binary files differ) Property changes on: trunk/lib/commons-beanutils-core.jar ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Modified: trunk/src/doc/tasks.xhtml =================================================================== --- trunk/src/doc/tasks.xhtml 2006-04-15 16:09:52 UTC (rev 65) +++ trunk/src/doc/tasks.xhtml 2006-04-15 16:12:19 UTC (rev 66) @@ -53,11 +53,6 @@ <dd> ToolbarLayout needs an improvement to allow toolbars to be placed next to each other. </dd> - <dt><!-- TODO -->Create Checkstyle Configuration</dt> - <dd> - JAPI needs a Checkstyle configuration. - An Ant Target running Checkstyle should also be added. - </dd> <dt><!-- TODO -->Create font browser tool</dt> <dd> This goes in tools/font This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <chr...@us...> - 2006-04-16 02:18:40
|
Revision: 72 Author: christianhujer Date: 2006-04-15 19:18:26 -0700 (Sat, 15 Apr 2006) ViewCVS: http://svn.sourceforge.net/japi/?rev=72&view=rev Log Message: ----------- Added Changelog. Modified Paths: -------------- trunk/build.xml trunk/src/doc/start.xhtml trunk/src/doc/tasks.xhtml Added Paths: ----------- trunk/src/doc/changelog.xslt Property Changed: ---------------- trunk/src/doc/ Modified: trunk/build.xml =================================================================== --- trunk/build.xml 2006-04-16 02:15:30 UTC (rev 71) +++ trunk/build.xml 2006-04-16 02:18:26 UTC (rev 72) @@ -520,4 +520,18 @@ /> </target> + <target + name = "changelog" + description = "Updates the changelog" + > + <exec executable="svn" output="src/doc/changelog.xml"> + <arg line="log --xml" /> + </exec> + <style + in = "src/doc/changelog.xml" + out = "src/doc/changelog.xhtml" + style = "src/doc/changelog.xslt" + /> + </target> + </project> Property changes on: trunk/src/doc ___________________________________________________________________ Name: svn:ignore + changelog.xml changelog.xhtml Added: trunk/src/doc/changelog.xslt =================================================================== --- trunk/src/doc/changelog.xslt (rev 0) +++ trunk/src/doc/changelog.xslt 2006-04-16 02:18:26 UTC (rev 72) @@ -0,0 +1,54 @@ +<?xml version="1.0" encoding="utf-8"?> +<xsl:transform + version="1.0" + xmlns:xml="http://www.w3.org/XML/1998/namespace" + xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:xi="http://www.w3.org/2001/XInclude" + xmlns="http://www.w3.org/1999/xhtml" + exclude-result-prefixes="xi xsl" +> + + <xsl:output + doctype-public="-//W3C//DTD XHTML 1.1//EN" + doctype-system="http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd" + encoding="utf-8" + indent="no" + method="xml" + omit-xml-declaration="no" + /> + + <xsl:template match="log"> + <html xml:lang="de"> + <head> + <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" /> + <meta name="Date" content="$Date$" /> + <title>JAPI Changelog</title> + </head> + <body> + <table border="border"> + <thead> + <tr> + <th>Revision</th> + <th>Developer</th> + <th>Date</th> + <th>Commit Message / Changeset Description</th> + </tr> + </thead> + <tbody> + <xsl:apply-templates select="logentry" /> + </tbody> + </table> + </body> + </html> + </xsl:template> + + <xsl:template match="logentry"> + <tr> + <td><xsl:value-of select="@revision" /></td> + <td><xsl:value-of select="author" /></td> + <td><xsl:value-of select="date" /></td> + <td><xsl:value-of select="msg" /></td> + </tr> + </xsl:template> + +</xsl:transform> Property changes on: trunk/src/doc/changelog.xslt ___________________________________________________________________ Name: svn:mime-type + text/xml Name: svn:eol-style + LF Modified: trunk/src/doc/start.xhtml =================================================================== --- trunk/src/doc/start.xhtml 2006-04-16 02:15:30 UTC (rev 71) +++ trunk/src/doc/start.xhtml 2006-04-16 02:18:26 UTC (rev 72) @@ -43,6 +43,7 @@ <li><a href="releasePlan">Release Plan</a></li> <li><a href="wontFixes">Known flaws that won't be fixed</a></li> <li><a href="subversion">Accessing JAPI's Subversion Repository</a></li> + <li><a href="changelog">Changelog</a></li> <li><a href="tasks">Open Tasks</a> (for JAPI developers)</li> </ul> <h2>Contact the developers</h2> Modified: trunk/src/doc/tasks.xhtml =================================================================== --- trunk/src/doc/tasks.xhtml 2006-04-16 02:15:30 UTC (rev 71) +++ trunk/src/doc/tasks.xhtml 2006-04-16 02:18:26 UTC (rev 72) @@ -14,11 +14,6 @@ They are here for public discussion before they become BUG / RFE entries in the bug tracker. </p> <dl> - <dt><!-- TODO -->Add Changelog Facility</dt> - <dd> - There should be an automatic changelog facility in build.xml that displays all changes made since the last release. - Because we use subversion now, this should be easy to do once subversion is integrated in Ant. - </dd> <dt><!-- TODO -->Create missing package descriptions</dt> <dd> Some packages lack package descriptions. This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <chr...@us...> - 2006-04-16 17:36:15
|
Revision: 80 Author: christianhujer Date: 2006-04-16 10:36:07 -0700 (Sun, 16 Apr 2006) ViewCVS: http://svn.sourceforge.net/japi/?rev=80&view=rev Log Message: ----------- Added path support to changelog. Modified Paths: -------------- trunk/build.xml trunk/src/doc/changelog.xslt Modified: trunk/build.xml =================================================================== --- trunk/build.xml 2006-04-16 16:06:08 UTC (rev 79) +++ trunk/build.xml 2006-04-16 17:36:07 UTC (rev 80) @@ -525,7 +525,7 @@ description = "Updates the changelog" > <exec executable="svn" output="src/doc/changelog.xml"> - <arg line="log --xml" /> + <arg line="log -v --xml" /> </exec> <style in = "src/doc/changelog.xml" Modified: trunk/src/doc/changelog.xslt =================================================================== --- trunk/src/doc/changelog.xslt 2006-04-16 16:06:08 UTC (rev 79) +++ trunk/src/doc/changelog.xslt 2006-04-16 17:36:07 UTC (rev 80) @@ -23,12 +23,45 @@ <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" /> <meta name="Date" content="$Date: {current-dateTime()}$" /> <title>JAPI Changelog</title> + <style type="text/css"> + .paths, .hide { + display:none; + } + .logTable td { + vertical-align:top; + } + .show, .hide { + color:#00f; + } + td.toggle { + text-align:center; + } + td.revision { + text-align:right; + } + .paths { + text-wrap:unrestricted; /* CSS Level 3, CSS3 Text Effects Module, 5. Text Wrapping */ + } + </style> + <script type="text/javascript"> + function show(revision) { + document.getElementById("show" + revision).style.display="none"; + document.getElementById("hide" + revision).style.display="inline"; + document.getElementById("path" + revision).style.display="block"; + } + function hide(revision) { + document.getElementById("show" + revision).style.display="inline"; + document.getElementById("hide" + revision).style.display="none"; + document.getElementById("path" + revision).style.display="none"; + } + </script> </head> <body> - <table border="border"> + <table class="logTable" border="border"> <thead> <tr> - <th>Revision</th> + <th /> + <th>Rev</th> <th>Developer</th> <th>Date</th> <th>Commit Message / Changeset Description</th> @@ -44,11 +77,30 @@ <xsl:template match="logentry"> <tr> - <td><xsl:value-of select="@revision" /></td> + <td class="toggle"> + <span class="show" id="show{@revision}" onclick="javascript:show({@revision});">[+]</span> + <span class="hide" id="hide{@revision}" onclick="javascript:hide({@revision});">[-]</span> + </td> + <td class="revision"><xsl:value-of select="@revision" /></td> <td><xsl:value-of select="author" /></td> <td><xsl:value-of select="date" /></td> - <td><xsl:value-of select="msg" /></td> + <td> + <xsl:value-of select="msg" /> + <xsl:apply-templates select="paths"/> + </td> </tr> </xsl:template> + <xsl:template match="paths"> + <ul id="path{../@revision}" class="paths"> + <xsl:apply-templates select="path" /> + </ul> + </xsl:template> + + <xsl:template match="path"> + <li> + <xsl:value-of select="@action" /><xsl:text> </xsl:text> + <code><xsl:value-of select="." /></code> + </li> + </xsl:template> </xsl:transform> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <chr...@us...> - 2006-04-16 22:09:20
|
Revision: 89 Author: christianhujer Date: 2006-04-16 15:09:12 -0700 (Sun, 16 Apr 2006) ViewCVS: http://svn.sourceforge.net/japi/?rev=89&view=rev Log Message: ----------- DTDs are now published on the website. Modified Paths: -------------- trunk/build.xml trunk/src/doc/dtd/xhtml11_xinclude10-model-1.mod Modified: trunk/build.xml =================================================================== --- trunk/build.xml 2006-04-16 22:08:07 UTC (rev 88) +++ trunk/build.xml 2006-04-16 22:09:12 UTC (rev 89) @@ -179,6 +179,9 @@ <fileset dir="src/doc"> <include name="**/.htaccess" /> <include name="**/*.html" /> + <include name="dtd/**/*.mod" /> + <include name="dtd/**/*.dtd" /> + <include name="dtd/**/*.xml" /> <include name="**/*.css" /> <include name="**/*.png" /> <exclude name="**/.xvpics/*.png" /> Modified: trunk/src/doc/dtd/xhtml11_xinclude10-model-1.mod =================================================================== --- trunk/src/doc/dtd/xhtml11_xinclude10-model-1.mod 2006-04-16 22:08:07 UTC (rev 88) +++ trunk/src/doc/dtd/xhtml11_xinclude10-model-1.mod 2006-04-16 22:09:12 UTC (rev 89) @@ -9,7 +9,7 @@ This DTD module is identified by the PUBLIC and SYSTEM identifiers: PUBLIC "-//JAPI//ENTITIES XHTML 1.1 + XInclude 1.0 Document Model 1.0//EN" - SYSTEM "http://www.w3.org/TR/xhtml11/DTD/xhtml11_xinclude10-model-1.mod" TODO + SYSTEM "http://japi.sourceforge.net/dtd/xhtml11_xinclude10-model-1.mod" Revisions: (none) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <chr...@us...> - 2006-08-30 18:13:03
|
Revision: 143 http://svn.sourceforge.net/japi/?rev=143&view=rev Author: christianhujer Date: 2006-08-30 11:12:35 -0700 (Wed, 30 Aug 2006) Log Message: ----------- Committing current state to prepare major repository restructuring. Modified Paths: -------------- trunk/build.xml trunk/src/app/net/sf/japi/io/args/ArgParser.java trunk/src/app/net/sf/japi/log/SimpleLogger.java trunk/src/app/net/sf/japi/util/Service.java trunk/src/doc/cleanupXhtml11.xslt trunk/src/doc/guide/io/src/GrepJAPI.java trunk/src/doc/guide/swing/action/fromScratch/start.xhtml trunk/src/doc/transform.xslt Added Paths: ----------- trunk/src/app/net/sf/japi/tools/ trunk/src/app/net/sf/japi/tools/Tool.java Modified: trunk/build.xml =================================================================== --- trunk/build.xml 2006-08-29 22:02:52 UTC (rev 142) +++ trunk/build.xml 2006-08-30 18:12:35 UTC (rev 143) @@ -37,8 +37,12 @@ <property name="svn.tag.targetUrl" value="${svn.baseUrl}/tags/${project.version.major}.${project.version.minor}.${project.version.patch}" /> <property name="svn.tag.message" value="Creating release tag for version ${project.version.major}.${project.version.minor}.${project.version.patch}" /> - <taskdef name="megaxslt" classpath="lib/megaxslt.jar" classname="com.hujer.ant.tasks.megaxslt.MegaXsltTask" /> - <taskdef name="rgzip" classpath="lib/megaxslt.jar" classname="com.hujer.ant.tasks.rgzip.RGZipTask" /> + <path id="xsltpath"> + <fileset dir="lib" includes="**/*.jar" /> + </path> + + <taskdef name="megaxslt" classpathref="xsltpath" classname="com.hujer.ant.tasks.megaxslt.MegaXsltTask" /> + <taskdef name="rgzip" classpathref="xsltpath" classname="com.hujer.ant.tasks.rgzip.RGZipTask" /> <taskdef name="pack200" classpath="lib/Pack200Task.jar" classname="com.sun.tools.apache.ant.pack200.Pack200Task" /> <taskdef name="freshmeat" classpath="lib/antmeat.jar" classname="de.frewert.ant.freshmeat.Announcement"> <classpath> @@ -157,6 +161,7 @@ validatesource="true" validatedest="true" ending="xhtml" + transformerFactoryImplementationClassName="net.sf.saxon.TransformerFactoryImpl" > <xmlcatalog refid="commonDTDs" /> <transformation stylesheet="src/doc/transform.xslt" /> @@ -170,6 +175,7 @@ validatedest="false" ending="html" converttocanonical="true" + transformerFactoryImplementationClassName="net.sf.saxon.TransformerFactoryImpl" > <xmlcatalog refid="commonDTDs" /> <transformation stylesheet="src/doc/xhtml2html.xslt" /> @@ -376,6 +382,7 @@ ending="xhtml" converttocanonical="true" checktimestamps="true" + transformerFactoryImplementationClassName="net.sf.saxon.TransformerFactoryImpl" > <xmlcatalog refid="commonDTDs" /> <parameter name="project.version" value="${project.version}" /> Modified: trunk/src/app/net/sf/japi/io/args/ArgParser.java =================================================================== --- trunk/src/app/net/sf/japi/io/args/ArgParser.java 2006-08-29 22:02:52 UTC (rev 142) +++ trunk/src/app/net/sf/japi/io/args/ArgParser.java 2006-08-30 18:12:35 UTC (rev 143) @@ -27,6 +27,7 @@ /** Parser for command line arguments. * @author <a href="mailto:ch...@ri...">Christian Hujer</a> + * TODO: arguments for options, argument conversion for the method invokation. */ public class ArgParser { Modified: trunk/src/app/net/sf/japi/log/SimpleLogger.java =================================================================== --- trunk/src/app/net/sf/japi/log/SimpleLogger.java 2006-08-29 22:02:52 UTC (rev 142) +++ trunk/src/app/net/sf/japi/log/SimpleLogger.java 2006-08-30 18:12:35 UTC (rev 143) @@ -35,17 +35,17 @@ defaultLogger.log(level, message); } - /** @see Logger#log(net.sf.japi.log.def.Level, String, Object...) */ + /** @see Logger#log(Level, String, Object...) */ public static void log(final Level level, final String message, final Object... params) { defaultLogger.log(level, message, params); } - /** @see Logger#log(net.sf.japi.log.def.Level, Throwable, String) */ + /** @see Logger#log(Level, Throwable, String) */ public static void log(final Level level, final Throwable t, final String message) { defaultLogger.log(level, t, message); } - /** @see Logger#log(net.sf.japi.log.def.Level, Throwable, String, Object...) */ + /** @see Logger#log(Level, Throwable, String, Object...) */ public static void log(final Level level, final Throwable t, final String message, final Object... params) { defaultLogger.log(level, t, message, params); } Added: trunk/src/app/net/sf/japi/tools/Tool.java =================================================================== --- trunk/src/app/net/sf/japi/tools/Tool.java (rev 0) +++ trunk/src/app/net/sf/japi/tools/Tool.java 2006-08-30 18:12:35 UTC (rev 143) @@ -0,0 +1,37 @@ +/* + * JAPI - (Yet another (hopefully) useful) Java API + * + * Copyright (C) 2006 Christian Hujer + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License as + * published by the Free Software Foundation; either version 2 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA + * 02111-1307, USA. + */ +package net.sf.japi.tools; + +import java.awt.Component; + +/** + * Interface for tools. + * @author <a href="mailto:ch...@ri...">Christian Hujer</a> + */ +public interface Tool { + + /** + * Get the component for this tool. + * @return component for this tool + */ + Component getComponent(); + +} // class Tool Property changes on: trunk/src/app/net/sf/japi/tools/Tool.java ___________________________________________________________________ Name: svn:mime-type + text/plain Name: svn:eol-style + LF Modified: trunk/src/app/net/sf/japi/util/Service.java =================================================================== --- trunk/src/app/net/sf/japi/util/Service.java 2006-08-29 22:02:52 UTC (rev 142) +++ trunk/src/app/net/sf/japi/util/Service.java 2006-08-30 18:12:35 UTC (rev 143) @@ -4,6 +4,9 @@ import java.lang.reflect.InvocationTargetException; +import org.jetbrains.annotations.NotNull; +import org.jetbrains.annotations.Nullable; + /** * Service serves as a Proxy for {@link java.util.ServiceLoader}, using {@link sun.misc.Service} as a fallback in case {@link java.util.ServiceLoader} is unavailable. * This allows programmers to write programs that use {@link java.util.ServiceLoader} features even on older Java VMs. @@ -17,7 +20,7 @@ * @return implementations found (lazy iterable) * @throws java.util.ServiceConfigurationError if running on Mustang and the service isn't configured properly */ - public static <T> Iterable<T> load(final Class<T> service) { + @NotNull public static <T> Iterable<T> load(@NotNull final Class<T> service) { try { ////Not using this because the code should also copmile with pre-Mustang // return java.util.Service.lookup(service); @@ -54,7 +57,7 @@ * @return implementations found (lazy iterable) * @throws java.util.ServiceConfigurationError if running on Mustang and the service isn't configured properly */ - public static <T> Iterable<T> load(final Class<T> service, final ClassLoader loader) { + @NotNull public static <T> Iterable<T> load(@NotNull final Class<T> service, @NotNull final ClassLoader loader) { try { ////Not using this because the code should also copmile with pre-Mustang // return java.util.Service.lookup(service, loader); @@ -83,4 +86,28 @@ } } + /** + * Lookup service class using Mustang. + * @param service Service class to look up + * @param loader Class loader to use + * @return implementations found (lazy iterable) + */ + @NotNull private static <T> Iterable<T> loadMustang(@NotNull final Class<T> service, @Nullable final ClassLoader loader) throws MustangUnavailableException { + try { + return (Iterable<T>) getMustangServiceClass().getMethod("load", Class.class, ClassLoader.class).invoke(null, service, loader); + } catch (final IllegalAccessException e) { + throw new MustangUnavailableException(); + } catch (final NoSuchMethodException e) { + throw new MustangUnavailableException(); + } catch (final ClassNotFoundException e) { + throw new MustangUnavailableException(); + } catch (final InvocationTargetException e) { + e.printStackTrace(); //To change body of catch statement use File | Settings | File Templates. + } + } + + /** Exception thrown when Mustang is unavailable. */ + private static class MustangUnavailableException extends Exception { + } + } // class Registry Modified: trunk/src/doc/cleanupXhtml11.xslt =================================================================== --- trunk/src/doc/cleanupXhtml11.xslt 2006-08-29 22:02:52 UTC (rev 142) +++ trunk/src/doc/cleanupXhtml11.xslt 2006-08-30 18:12:35 UTC (rev 143) @@ -74,17 +74,17 @@ <!--<xsl:template match="@xmlns:*"/>--> - <xsl:template match="text()"> - <xsl:value-of select="helper:normalize(., preceding::node()[1], following::node()[1], parent::node())"/> + <!--xsl:template match="text()"--> + <!--xsl:value-of select="helper:normalize(., preceding::node()[1], following::node()[1], parent::node())"/--> <!--xsl:choose> <xsl:when test=". = ' '"><xsl:text> </xsl:text></xsl:when> <xsl:otherwise> <xsl:if test="starts-with(., ' ') or starts-with(., '
')"><xsl:text> </xsl:text></xsl:if> <xsl:value-of select="normalize-space(.)"/> - <xsl:if test="ends-with(., ' ') or ends-with(., '
')"><xsl:text> </xsl:text></xsl:if--> - <!--xsl:if test="following-sibling::* and substring(., string-length(.)) = ' ' or substring(., string-length(.)) = '
'"><xsl:text> </xsl:text></xsl:if--> - <!--/xsl:otherwise> + <xsl:if test="ends-with(., ' ') or ends-with(., '
')"><xsl:text> </xsl:text></xsl:if> + <xsl:if test="following-sibling::* and substring(., string-length(.)) = ' ' or substring(., string-length(.)) = '
'"><xsl:text> </xsl:text></xsl:if> + </xsl:otherwise> </xsl:choose--> - </xsl:template> + <!--/xsl:template--> </xsl:transform> Modified: trunk/src/doc/guide/io/src/GrepJAPI.java =================================================================== --- trunk/src/doc/guide/io/src/GrepJAPI.java 2006-08-29 22:02:52 UTC (rev 142) +++ trunk/src/doc/guide/io/src/GrepJAPI.java 2006-08-30 18:12:35 UTC (rev 143) @@ -3,7 +3,6 @@ import java.util.regex.Matcher; import net.sf.japi.io.args.ArgParser; import net.sf.japi.io.args.Command; -import net.sf.japi.io.args.StopOption; import net.sf.japi.io.args.Option; import net.sf.japi.io.ARGV; Modified: trunk/src/doc/guide/swing/action/fromScratch/start.xhtml =================================================================== --- trunk/src/doc/guide/swing/action/fromScratch/start.xhtml 2006-08-29 22:02:52 UTC (rev 142) +++ trunk/src/doc/guide/swing/action/fromScratch/start.xhtml 2006-08-30 18:12:35 UTC (rev 143) @@ -10,7 +10,8 @@ </head> <body> <p> - This part of the guide demonstrates how to develop a Swing application using the JAPI library from scratch. + This part of the guide demonstrates how to develop a Swing application from scratch using the JAPI library, mainly the class + <code>ActionFactory</code>. </p> <p> Our example application shall be a simple text editor without any advanced features. @@ -20,7 +21,7 @@ <legend>Screenshots of sample application</legend> <img src="Editor.png" alt="Screenshot of sample editor application" class="screenshot" /> </fieldset> - <h2>Step 1: Identify Use Cases</h2> + <h2 id="Step1">Step 1: Identify Use Cases</h2> <p> The first step is to identify the use cases of the application. The following use cases are involved: @@ -50,33 +51,15 @@ </ul> <p> The use cases <em>Inserting text</em>, <em>Overwriting text</em> and <em>Deleting text</em> are already handled automatically by the Swing component JTextPane which we will to use for our text editor application. - A JTextPane can also be attached to a DefaultEditorKit which handles <em>Cutting text to the clipboard</em>, <em>Copying text to the clipboard</em> and <em>Pasting text from the clipboard</em>. + So there's nothing to do but simply use JTextPane for implementing them. </p> - <h2>Step 2: Defining the package</h2> <p> - Our package will be <code>net.sf.japi.examples.editor</code>. - Our main class will be <code>net.sf.japi.examples.editor.Editor</code>. - The first version will look like this: + A JTextPane can also be attached to a DefaultEditorKit which handles <em>Cutting text to the clipboard</em>, <em>Copying text to the clipboard</em> and <em>Pasting text from the clipboard</em>. + We will use this during <a href="#Step8">Step 8: Adding precreated actions</a>. </p> - <pre class="listing">package net.sf,japi.examples.editor; - -/** A Text Editor application. - * This is an example for developing an application with JAPI. - * @author <a href="mailto:ch...@ri...">Christian Hujer</a> - */ -public class Editor { - - /** Main program. - * @param args command line arguments (currently ignored) - */ - public static void main(final String... args) { - new Editor(); - } - -} // class Editor</pre> - <h2>Step 3: Menu Concept</h2> + <h2 id="Step2">Step 2: Menu Concept</h2> <p> - We will define the menu structure: + We define the menu structure as: </p> <ul> <li> @@ -85,7 +68,7 @@ <li>New</li> <li>Open</li> <li>Save</li> - <li>SaveAs</li> + <li>Save As</li> <li>Quit</li> </ul> </li> @@ -98,13 +81,63 @@ </ul> </li> </ul> - <h2>Step 4: Defining the menu</h2> + <h2 id="Step3">Step 3: Toolbar Concept</h2> <p> + We define the toolbar structure as: + </p> + <ul> + <li>New</li> + <li>Open</li> + <li>Save</li> + <li>Save As</li> + <li>(separator)</li> + <li>Cut</li> + <li>Copy</li> + <li>Paste</li> + </ul> + <h2 id="Step4">Step 4: Defining the package</h2> + <p> + Our package will be <code>net.sf.japi.examples.editor</code>. + Our main class will be <code>net.sf.japi.examples.editor.Editor</code>. + The first version will look like this: + </p> + <pre class="listing">package net.sf.japi.examples.editor; + +/** + * A Text Editor application. + * This is an example for developing an application with JAPI. + * @author <a href="mailto:ch...@ri...">Christian Hujer</a> + */ +public class Editor { + + /** Main program. + * @param args command line arguments (currently ignored) + */ + public static void main(final String... args) { + new Editor(); + } + +} // class Editor</pre> + <h2 id="Step5">Step 5: Understanding the logic behind <code>ActionFactory</code></h2> + <p> + <code>ActionFactory</code> is used for creating instances of <code>javax.swing.Action</code>. + All required information for such an <code>Action</code> is read from a properties file, except the action code itself. + When you use <code>ActionFactory</code> to create an Action that actually shall perform something, you provide an Object which <code>ActionFactory</code> will use using Reflection. + </p> + <p> + To achieve this, each <code>Action</code> is assigned a unique name. + </p> + <h2 id="Step5">Step 5: Defining the menu</h2> + <p> In Swing, a complete application menu is defined as a JMenuBar which contains JMenus, these JMenus contain JMenuItems as entries or other JMenus as sub menus. </p> <p> In JAPI, creating a complete application menu is a one liner in the Java code. - The complete menu is defined in a properties file named <code>action.properties</code>. + The complete menu is defined in one or more properties files, of which the central one is named <code>action.properties</code>. + The class <code>ActionFactory</code> is used to access these properties files and create menubars or toolbars from them. + The properties specify everything regarding the user interface representation of these menus and toolbars. + This includes: <em>Text</em>, <em>Mnemonic</em>, <em>KeyStroke (Shortcut)</em>, <em>Icon</em>, <em>Shortdescription (Tooltip Text)</em>. + Under the hood, <code>ActionFactory</code> loads these properties files as regular <code>ResourceBundle</code>, so everything that applies to normal <code>ResourceBundle</code>s / their properties files also applies to <code>ActionFactory</code>, including <abbr>i18n</abbr>/<abbr>l10n</abbr>. </p> <pre class="listing">editor.menuBar=file edit</pre> <p> @@ -132,7 +165,15 @@ Let's store a property for the frame title. </p> <pre class="listing">frame.title=Editor (JAPI usage example)</pre> - <h2>Step 5: Using the defined menu</h2> + <p> + It is a good idea to separate properties which are dependent on the locale from those that are locale independent. + To achieve this in a configurable way, <code>ActionFactory</code> knows properties for splitting the information over multiple properties files. + </p> + <pre class="listing">ActionFactory.additionalBundles=net.sf.japi.examples.editor.messages</pre> + <p> + This tells ActionFactory that it additionally has to look in a bundle named <code>net.sf.japi.examples.editor.messages</code>. + </p> + <h2 id="Step6">Step 6: Using the defined menu</h2> <pre class="listing">package net.sf.japi.examples.editor; import static javax.swing.WindowConstants.DISPOSE_ON_CLOSE; @@ -180,7 +221,7 @@ But how is code attached to the actions attached to the menu items? See next step. </p> - <h2>Step 6: Attaching Code to the actions</h2> + <h2 id="Step7">Step 7: Attaching Code to the actions</h2> <p> The name of an action is at the same time the name of the method that's invoked using Reflection. Such action methods must be public instance methods with empty parameter list and void return type. @@ -189,7 +230,7 @@ The action methods should be annotated as <code>@ActionMethod</code>. In future this will be used for a tool that performs a static code analysis and reports action methods not covered with action definitions and action definitions not covered with action methods. </p> - <h3>Step 6.1: Implementing <code>fileNew</code></h3> + <h3>Step 7.1: Implementing <code>fileNew</code></h3> <pre class="listing"> /** Action method. * @used */ @@ -197,7 +238,7 @@ textPane.setText(""); file = null; }</pre> - <h3>Step 6.2: Implementing <code>fileOpen</code></h3> + <h3>Step 7.2: Implementing <code>fileOpen</code></h3> <pre class="listing"> /** Action method. * @used */ @@ -218,7 +259,7 @@ } } }</pre> - <h2>Step 7: Adding precreated actions</h2> + <h2 id="Step8">Step 8: Adding precreated actions</h2> <p> For the edit actions <em>Cut</em>, <em>Copy</em> and <em>Paste</em> it would be nice if they were consistent with those provided by the editor kit. In fact it would be even better if we would use the Actions defined by the editor kit. Modified: trunk/src/doc/transform.xslt =================================================================== --- trunk/src/doc/transform.xslt 2006-08-29 22:02:52 UTC (rev 142) +++ trunk/src/doc/transform.xslt 2006-08-30 18:12:35 UTC (rev 143) @@ -65,6 +65,7 @@ <a href="http://sourceforge.net/donate/index.php?group_id=149894"><img src="http://sourceforge.net/images/project-support.jpg" width="88" height="32" alt="Support This Project" class="now" /></a> <a href="http://validator.w3.org/check?uri=referer"><img src="http://www.w3.org/Icons/valid-xhtml11" alt="Valid XHTML 1.1" height="31" width="88" class="now" /></a> <a href="http://jigsaw.w3.org/css-validator/check/referer"><img src="http://jigsaw.w3.org/css-validator/images/vcss" width="88" height="31" alt="Valid CSS!" /></a> + <!--<a href="http://java.com/java/download/index.jsp?cid=jdp89065"><img src="http://java.com/en/img/everywhere/getjava_sm.gif?cid=jdp89065" alt="GetJava Download Button" width="88" height="31" class="now" title="GetJava" /></a>--> <!--<a href="http://www.jetbrains.com/idea/"><img src="http://www.jetbrains.com/idea/opensource/img/banners/idea88x31_blue.gif" alt="The best Java IDE" width="88" height="31" /></a>--> Feedback: <a href="mailto:ch...@ri...">webmaster</a> <xsl:if test="/html:html/html:head/html:meta[@name='Date']"> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |