japi-cvs Mailing List for JAPI (Page 42)
Status: Beta
Brought to you by:
christianhujer
You can subscribe to this list here.
2006 |
Jan
|
Feb
|
Mar
|
Apr
(115) |
May
(11) |
Jun
(5) |
Jul
(2) |
Aug
(10) |
Sep
(35) |
Oct
(14) |
Nov
(49) |
Dec
(27) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2007 |
Jan
(57) |
Feb
(1) |
Mar
|
Apr
(2) |
May
(25) |
Jun
(134) |
Jul
(76) |
Aug
(34) |
Sep
(27) |
Oct
(5) |
Nov
|
Dec
(1) |
2008 |
Jan
(3) |
Feb
|
Mar
(2) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(63) |
Nov
(30) |
Dec
(43) |
2009 |
Jan
(10) |
Feb
(420) |
Mar
(67) |
Apr
(3) |
May
(61) |
Jun
(21) |
Jul
(19) |
Aug
|
Sep
(6) |
Oct
(16) |
Nov
(1) |
Dec
|
2010 |
Jan
(1) |
Feb
|
Mar
|
Apr
(7) |
May
(3) |
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(1) |
From: <chr...@us...> - 2007-06-09 18:06:10
|
Revision: 383 http://svn.sourceforge.net/japi/?rev=383&view=rev Author: christianhujer Date: 2007-06-09 11:06:09 -0700 (Sat, 09 Jun 2007) Log Message: ----------- Added IntelliJ IDEA module. Added Paths: ----------- tools/fontbrowser/trunk/fontbrowser.iml Added: tools/fontbrowser/trunk/fontbrowser.iml =================================================================== --- tools/fontbrowser/trunk/fontbrowser.iml (rev 0) +++ tools/fontbrowser/trunk/fontbrowser.iml 2007-06-09 18:06:09 UTC (rev 383) @@ -0,0 +1,205 @@ +<?xml version="1.0" encoding="UTF-8"?> +<module relativePaths="true" type="JAVA_MODULE" version="4"> + <component name="ModuleRootManager" /> + <component name="NewModuleRootManager" inherit-compiler-output="true"> + <exclude-output /> + <content url="file://$MODULE_DIR$"> + <sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" /> + </content> + <orderEntry type="inheritedJdk" /> + <orderEntry type="sourceFolder" forTests="false" /> + <orderEntry type="module-library"> + <library> + <CLASSES> + <root url="jar://$MODULE_DIR$/common/lib/annotations.jar!/" /> + </CLASSES> + <JAVADOC /> + <SOURCES /> + </library> + </orderEntry> + <orderEntry type="module-library"> + <library> + <CLASSES> + <root url="jar://$MODULE_DIR$/common/lib/junit.jar!/" /> + </CLASSES> + <JAVADOC /> + <SOURCES /> + </library> + </orderEntry> + <orderEntryProperties /> + </component> + <component name="copyright"> + <Base> + <setting name="state" value="1" /> + </Base> + <LanguageOptions name="$TEMPLATE$"> + <option name="templateOptions"> + <value> + <option name="block" value="true" /> + <option name="separateBefore" value="false" /> + <option name="separateAfter" value="false" /> + <option name="prefixLines" value="true" /> + <option name="lenBefore" value="80" /> + <option name="lenAfter" value="80" /> + <option name="box" value="false" /> + <option name="filler" value=" " /> + </value> + </option> + <option name="notice" value="Copyright (c) &#36;today.year, Your Corporation. All Rights Reserved." /> + <option name="keyword" value="Copyright" /> + <option name="fileTypeOverride" value="4" /> + <option name="relativeBefore" value="true" /> + <option name="addBlankAfter" value="true" /> + <option name="fileLocation" value="1" /> + <option name="useAlternate" value="false" /> + </LanguageOptions> + <LanguageOptions name="CSS"> + <option name="templateOptions"> + <value> + <option name="block" value="true" /> + <option name="separateBefore" value="false" /> + <option name="separateAfter" value="false" /> + <option name="prefixLines" value="true" /> + <option name="lenBefore" value="80" /> + <option name="lenAfter" value="80" /> + <option name="box" value="false" /> + <option name="filler" value=" " /> + </value> + </option> + <option name="notice" value="Copyright (c) &#36;today.year, Your Corporation. All Rights Reserved." /> + <option name="keyword" value="Copyright" /> + <option name="fileTypeOverride" value="2" /> + <option name="relativeBefore" value="true" /> + <option name="addBlankAfter" value="true" /> + <option name="fileLocation" value="1" /> + <option name="useAlternate" value="false" /> + </LanguageOptions> + <LanguageOptions name="HTML"> + <option name="templateOptions"> + <value> + <option name="block" value="true" /> + <option name="separateBefore" value="false" /> + <option name="separateAfter" value="false" /> + <option name="prefixLines" value="true" /> + <option name="lenBefore" value="80" /> + <option name="lenAfter" value="80" /> + <option name="box" value="false" /> + <option name="filler" value=" " /> + </value> + </option> + <option name="notice" value="Copyright (c) &#36;today.year, Your Corporation. All Rights Reserved." /> + <option name="keyword" value="Copyright" /> + <option name="fileTypeOverride" value="2" /> + <option name="relativeBefore" value="true" /> + <option name="addBlankAfter" value="true" /> + <option name="fileLocation" value="1" /> + <option name="useAlternate" value="false" /> + </LanguageOptions> + <LanguageOptions name="JAVA"> + <option name="templateOptions"> + <value> + <option name="block" value="true" /> + <option name="separateBefore" value="false" /> + <option name="separateAfter" value="false" /> + <option name="prefixLines" value="true" /> + <option name="lenBefore" value="80" /> + <option name="lenAfter" value="80" /> + <option name="box" value="false" /> + <option name="filler" value=" " /> + </value> + </option> + <option name="notice" value="Copyright (c) &#36;today.year, Your Corporation. All Rights Reserved." /> + <option name="keyword" value="Copyright" /> + <option name="fileTypeOverride" value="2" /> + <option name="relativeBefore" value="true" /> + <option name="addBlankAfter" value="true" /> + <option name="fileLocation" value="1" /> + <option name="useAlternate" value="false" /> + </LanguageOptions> + <LanguageOptions name="JSP"> + <option name="templateOptions"> + <value> + <option name="block" value="true" /> + <option name="separateBefore" value="false" /> + <option name="separateAfter" value="false" /> + <option name="prefixLines" value="true" /> + <option name="lenBefore" value="80" /> + <option name="lenAfter" value="80" /> + <option name="box" value="false" /> + <option name="filler" value=" " /> + </value> + </option> + <option name="notice" value="Copyright (c) &#36;today.year, Your Corporation. All Rights Reserved." /> + <option name="keyword" value="Copyright" /> + <option name="fileTypeOverride" value="2" /> + <option name="relativeBefore" value="true" /> + <option name="addBlankAfter" value="true" /> + <option name="fileLocation" value="1" /> + <option name="useAlternate" value="false" /> + </LanguageOptions> + <LanguageOptions name="JavaScript"> + <option name="templateOptions"> + <value> + <option name="block" value="true" /> + <option name="separateBefore" value="false" /> + <option name="separateAfter" value="false" /> + <option name="prefixLines" value="true" /> + <option name="lenBefore" value="80" /> + <option name="lenAfter" value="80" /> + <option name="box" value="false" /> + <option name="filler" value=" " /> + </value> + </option> + <option name="notice" value="Copyright (c) &#36;today.year, Your Corporation. All Rights Reserved." /> + <option name="keyword" value="Copyright" /> + <option name="fileTypeOverride" value="2" /> + <option name="relativeBefore" value="true" /> + <option name="addBlankAfter" value="true" /> + <option name="fileLocation" value="1" /> + <option name="useAlternate" value="false" /> + </LanguageOptions> + <LanguageOptions name="Properties"> + <option name="templateOptions"> + <value> + <option name="block" value="true" /> + <option name="separateBefore" value="false" /> + <option name="separateAfter" value="false" /> + <option name="prefixLines" value="true" /> + <option name="lenBefore" value="80" /> + <option name="lenAfter" value="80" /> + <option name="box" value="false" /> + <option name="filler" value=" " /> + </value> + </option> + <option name="notice" value="Copyright (c) &#36;today.year, Your Corporation. All Rights Reserved." /> + <option name="keyword" value="Copyright" /> + <option name="fileTypeOverride" value="2" /> + <option name="relativeBefore" value="true" /> + <option name="addBlankAfter" value="true" /> + <option name="fileLocation" value="1" /> + <option name="useAlternate" value="false" /> + </LanguageOptions> + <LanguageOptions name="XML"> + <option name="templateOptions"> + <value> + <option name="block" value="true" /> + <option name="separateBefore" value="false" /> + <option name="separateAfter" value="false" /> + <option name="prefixLines" value="true" /> + <option name="lenBefore" value="80" /> + <option name="lenAfter" value="80" /> + <option name="box" value="false" /> + <option name="filler" value=" " /> + </value> + </option> + <option name="notice" value="Copyright (c) &#36;today.year, Your Corporation. All Rights Reserved." /> + <option name="keyword" value="Copyright" /> + <option name="fileTypeOverride" value="2" /> + <option name="relativeBefore" value="true" /> + <option name="addBlankAfter" value="true" /> + <option name="fileLocation" value="1" /> + <option name="useAlternate" value="false" /> + </LanguageOptions> + </component> +</module> + Property changes on: tools/fontbrowser/trunk/fontbrowser.iml ___________________________________________________________________ Name: svn:mime-type + text/xml Name: svn:eol-style + LF This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <chr...@us...> - 2007-06-09 18:05:58
|
Revision: 382 http://svn.sourceforge.net/japi/?rev=382&view=rev Author: christianhujer Date: 2007-06-09 11:05:56 -0700 (Sat, 09 Jun 2007) Log Message: ----------- Added IntelliJ IDEA module. Added Paths: ----------- tools/keystrokes/trunk/keystrokes.iml Added: tools/keystrokes/trunk/keystrokes.iml =================================================================== --- tools/keystrokes/trunk/keystrokes.iml (rev 0) +++ tools/keystrokes/trunk/keystrokes.iml 2007-06-09 18:05:56 UTC (rev 382) @@ -0,0 +1,205 @@ +<?xml version="1.0" encoding="UTF-8"?> +<module relativePaths="true" type="JAVA_MODULE" version="4"> + <component name="ModuleRootManager" /> + <component name="NewModuleRootManager" inherit-compiler-output="true"> + <exclude-output /> + <content url="file://$MODULE_DIR$"> + <sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" /> + </content> + <orderEntry type="inheritedJdk" /> + <orderEntry type="sourceFolder" forTests="false" /> + <orderEntry type="module-library"> + <library> + <CLASSES> + <root url="jar://$MODULE_DIR$/common/lib/annotations.jar!/" /> + </CLASSES> + <JAVADOC /> + <SOURCES /> + </library> + </orderEntry> + <orderEntry type="module-library"> + <library> + <CLASSES> + <root url="jar://$MODULE_DIR$/common/lib/junit.jar!/" /> + </CLASSES> + <JAVADOC /> + <SOURCES /> + </library> + </orderEntry> + <orderEntryProperties /> + </component> + <component name="copyright"> + <Base> + <setting name="state" value="1" /> + </Base> + <LanguageOptions name="$TEMPLATE$"> + <option name="templateOptions"> + <value> + <option name="block" value="true" /> + <option name="separateBefore" value="false" /> + <option name="separateAfter" value="false" /> + <option name="prefixLines" value="true" /> + <option name="lenBefore" value="80" /> + <option name="lenAfter" value="80" /> + <option name="box" value="false" /> + <option name="filler" value=" " /> + </value> + </option> + <option name="notice" value="Copyright (c) &#36;today.year, Your Corporation. All Rights Reserved." /> + <option name="keyword" value="Copyright" /> + <option name="fileTypeOverride" value="4" /> + <option name="relativeBefore" value="true" /> + <option name="addBlankAfter" value="true" /> + <option name="fileLocation" value="1" /> + <option name="useAlternate" value="false" /> + </LanguageOptions> + <LanguageOptions name="CSS"> + <option name="templateOptions"> + <value> + <option name="block" value="true" /> + <option name="separateBefore" value="false" /> + <option name="separateAfter" value="false" /> + <option name="prefixLines" value="true" /> + <option name="lenBefore" value="80" /> + <option name="lenAfter" value="80" /> + <option name="box" value="false" /> + <option name="filler" value=" " /> + </value> + </option> + <option name="notice" value="Copyright (c) &#36;today.year, Your Corporation. All Rights Reserved." /> + <option name="keyword" value="Copyright" /> + <option name="fileTypeOverride" value="2" /> + <option name="relativeBefore" value="true" /> + <option name="addBlankAfter" value="true" /> + <option name="fileLocation" value="1" /> + <option name="useAlternate" value="false" /> + </LanguageOptions> + <LanguageOptions name="HTML"> + <option name="templateOptions"> + <value> + <option name="block" value="true" /> + <option name="separateBefore" value="false" /> + <option name="separateAfter" value="false" /> + <option name="prefixLines" value="true" /> + <option name="lenBefore" value="80" /> + <option name="lenAfter" value="80" /> + <option name="box" value="false" /> + <option name="filler" value=" " /> + </value> + </option> + <option name="notice" value="Copyright (c) &#36;today.year, Your Corporation. All Rights Reserved." /> + <option name="keyword" value="Copyright" /> + <option name="fileTypeOverride" value="2" /> + <option name="relativeBefore" value="true" /> + <option name="addBlankAfter" value="true" /> + <option name="fileLocation" value="1" /> + <option name="useAlternate" value="false" /> + </LanguageOptions> + <LanguageOptions name="JAVA"> + <option name="templateOptions"> + <value> + <option name="block" value="true" /> + <option name="separateBefore" value="false" /> + <option name="separateAfter" value="false" /> + <option name="prefixLines" value="true" /> + <option name="lenBefore" value="80" /> + <option name="lenAfter" value="80" /> + <option name="box" value="false" /> + <option name="filler" value=" " /> + </value> + </option> + <option name="notice" value="Copyright (c) &#36;today.year, Your Corporation. All Rights Reserved." /> + <option name="keyword" value="Copyright" /> + <option name="fileTypeOverride" value="2" /> + <option name="relativeBefore" value="true" /> + <option name="addBlankAfter" value="true" /> + <option name="fileLocation" value="1" /> + <option name="useAlternate" value="false" /> + </LanguageOptions> + <LanguageOptions name="JSP"> + <option name="templateOptions"> + <value> + <option name="block" value="true" /> + <option name="separateBefore" value="false" /> + <option name="separateAfter" value="false" /> + <option name="prefixLines" value="true" /> + <option name="lenBefore" value="80" /> + <option name="lenAfter" value="80" /> + <option name="box" value="false" /> + <option name="filler" value=" " /> + </value> + </option> + <option name="notice" value="Copyright (c) &#36;today.year, Your Corporation. All Rights Reserved." /> + <option name="keyword" value="Copyright" /> + <option name="fileTypeOverride" value="2" /> + <option name="relativeBefore" value="true" /> + <option name="addBlankAfter" value="true" /> + <option name="fileLocation" value="1" /> + <option name="useAlternate" value="false" /> + </LanguageOptions> + <LanguageOptions name="JavaScript"> + <option name="templateOptions"> + <value> + <option name="block" value="true" /> + <option name="separateBefore" value="false" /> + <option name="separateAfter" value="false" /> + <option name="prefixLines" value="true" /> + <option name="lenBefore" value="80" /> + <option name="lenAfter" value="80" /> + <option name="box" value="false" /> + <option name="filler" value=" " /> + </value> + </option> + <option name="notice" value="Copyright (c) &#36;today.year, Your Corporation. All Rights Reserved." /> + <option name="keyword" value="Copyright" /> + <option name="fileTypeOverride" value="2" /> + <option name="relativeBefore" value="true" /> + <option name="addBlankAfter" value="true" /> + <option name="fileLocation" value="1" /> + <option name="useAlternate" value="false" /> + </LanguageOptions> + <LanguageOptions name="Properties"> + <option name="templateOptions"> + <value> + <option name="block" value="true" /> + <option name="separateBefore" value="false" /> + <option name="separateAfter" value="false" /> + <option name="prefixLines" value="true" /> + <option name="lenBefore" value="80" /> + <option name="lenAfter" value="80" /> + <option name="box" value="false" /> + <option name="filler" value=" " /> + </value> + </option> + <option name="notice" value="Copyright (c) &#36;today.year, Your Corporation. All Rights Reserved." /> + <option name="keyword" value="Copyright" /> + <option name="fileTypeOverride" value="2" /> + <option name="relativeBefore" value="true" /> + <option name="addBlankAfter" value="true" /> + <option name="fileLocation" value="1" /> + <option name="useAlternate" value="false" /> + </LanguageOptions> + <LanguageOptions name="XML"> + <option name="templateOptions"> + <value> + <option name="block" value="true" /> + <option name="separateBefore" value="false" /> + <option name="separateAfter" value="false" /> + <option name="prefixLines" value="true" /> + <option name="lenBefore" value="80" /> + <option name="lenAfter" value="80" /> + <option name="box" value="false" /> + <option name="filler" value=" " /> + </value> + </option> + <option name="notice" value="Copyright (c) &#36;today.year, Your Corporation. All Rights Reserved." /> + <option name="keyword" value="Copyright" /> + <option name="fileTypeOverride" value="2" /> + <option name="relativeBefore" value="true" /> + <option name="addBlankAfter" value="true" /> + <option name="fileLocation" value="1" /> + <option name="useAlternate" value="false" /> + </LanguageOptions> + </component> +</module> + Property changes on: tools/keystrokes/trunk/keystrokes.iml ___________________________________________________________________ Name: svn:mime-type + text/xml Name: svn:eol-style + LF This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <chr...@us...> - 2007-06-09 18:05:54
|
Revision: 381 http://svn.sourceforge.net/japi/?rev=381&view=rev Author: christianhujer Date: 2007-06-09 11:05:50 -0700 (Sat, 09 Jun 2007) Log Message: ----------- Added IntelliJ IDEA module. Added Paths: ----------- tools/prefsbrowser/trunk/prefsbrowser.iml Added: tools/prefsbrowser/trunk/prefsbrowser.iml =================================================================== --- tools/prefsbrowser/trunk/prefsbrowser.iml (rev 0) +++ tools/prefsbrowser/trunk/prefsbrowser.iml 2007-06-09 18:05:50 UTC (rev 381) @@ -0,0 +1,205 @@ +<?xml version="1.0" encoding="UTF-8"?> +<module relativePaths="true" type="JAVA_MODULE" version="4"> + <component name="ModuleRootManager" /> + <component name="NewModuleRootManager" inherit-compiler-output="true"> + <exclude-output /> + <content url="file://$MODULE_DIR$"> + <sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" /> + </content> + <orderEntry type="inheritedJdk" /> + <orderEntry type="sourceFolder" forTests="false" /> + <orderEntry type="module-library"> + <library> + <CLASSES> + <root url="jar://$MODULE_DIR$/common/lib/annotations.jar!/" /> + </CLASSES> + <JAVADOC /> + <SOURCES /> + </library> + </orderEntry> + <orderEntry type="module-library"> + <library> + <CLASSES> + <root url="jar://$MODULE_DIR$/common/lib/junit.jar!/" /> + </CLASSES> + <JAVADOC /> + <SOURCES /> + </library> + </orderEntry> + <orderEntryProperties /> + </component> + <component name="copyright"> + <Base> + <setting name="state" value="1" /> + </Base> + <LanguageOptions name="$TEMPLATE$"> + <option name="templateOptions"> + <value> + <option name="block" value="true" /> + <option name="separateBefore" value="false" /> + <option name="separateAfter" value="false" /> + <option name="prefixLines" value="true" /> + <option name="lenBefore" value="80" /> + <option name="lenAfter" value="80" /> + <option name="box" value="false" /> + <option name="filler" value=" " /> + </value> + </option> + <option name="notice" value="Copyright (c) &#36;today.year, Your Corporation. All Rights Reserved." /> + <option name="keyword" value="Copyright" /> + <option name="fileTypeOverride" value="4" /> + <option name="relativeBefore" value="true" /> + <option name="addBlankAfter" value="true" /> + <option name="fileLocation" value="1" /> + <option name="useAlternate" value="false" /> + </LanguageOptions> + <LanguageOptions name="CSS"> + <option name="templateOptions"> + <value> + <option name="block" value="true" /> + <option name="separateBefore" value="false" /> + <option name="separateAfter" value="false" /> + <option name="prefixLines" value="true" /> + <option name="lenBefore" value="80" /> + <option name="lenAfter" value="80" /> + <option name="box" value="false" /> + <option name="filler" value=" " /> + </value> + </option> + <option name="notice" value="Copyright (c) &#36;today.year, Your Corporation. All Rights Reserved." /> + <option name="keyword" value="Copyright" /> + <option name="fileTypeOverride" value="2" /> + <option name="relativeBefore" value="true" /> + <option name="addBlankAfter" value="true" /> + <option name="fileLocation" value="1" /> + <option name="useAlternate" value="false" /> + </LanguageOptions> + <LanguageOptions name="HTML"> + <option name="templateOptions"> + <value> + <option name="block" value="true" /> + <option name="separateBefore" value="false" /> + <option name="separateAfter" value="false" /> + <option name="prefixLines" value="true" /> + <option name="lenBefore" value="80" /> + <option name="lenAfter" value="80" /> + <option name="box" value="false" /> + <option name="filler" value=" " /> + </value> + </option> + <option name="notice" value="Copyright (c) &#36;today.year, Your Corporation. All Rights Reserved." /> + <option name="keyword" value="Copyright" /> + <option name="fileTypeOverride" value="2" /> + <option name="relativeBefore" value="true" /> + <option name="addBlankAfter" value="true" /> + <option name="fileLocation" value="1" /> + <option name="useAlternate" value="false" /> + </LanguageOptions> + <LanguageOptions name="JAVA"> + <option name="templateOptions"> + <value> + <option name="block" value="true" /> + <option name="separateBefore" value="false" /> + <option name="separateAfter" value="false" /> + <option name="prefixLines" value="true" /> + <option name="lenBefore" value="80" /> + <option name="lenAfter" value="80" /> + <option name="box" value="false" /> + <option name="filler" value=" " /> + </value> + </option> + <option name="notice" value="Copyright (c) &#36;today.year, Your Corporation. All Rights Reserved." /> + <option name="keyword" value="Copyright" /> + <option name="fileTypeOverride" value="2" /> + <option name="relativeBefore" value="true" /> + <option name="addBlankAfter" value="true" /> + <option name="fileLocation" value="1" /> + <option name="useAlternate" value="false" /> + </LanguageOptions> + <LanguageOptions name="JSP"> + <option name="templateOptions"> + <value> + <option name="block" value="true" /> + <option name="separateBefore" value="false" /> + <option name="separateAfter" value="false" /> + <option name="prefixLines" value="true" /> + <option name="lenBefore" value="80" /> + <option name="lenAfter" value="80" /> + <option name="box" value="false" /> + <option name="filler" value=" " /> + </value> + </option> + <option name="notice" value="Copyright (c) &#36;today.year, Your Corporation. All Rights Reserved." /> + <option name="keyword" value="Copyright" /> + <option name="fileTypeOverride" value="2" /> + <option name="relativeBefore" value="true" /> + <option name="addBlankAfter" value="true" /> + <option name="fileLocation" value="1" /> + <option name="useAlternate" value="false" /> + </LanguageOptions> + <LanguageOptions name="JavaScript"> + <option name="templateOptions"> + <value> + <option name="block" value="true" /> + <option name="separateBefore" value="false" /> + <option name="separateAfter" value="false" /> + <option name="prefixLines" value="true" /> + <option name="lenBefore" value="80" /> + <option name="lenAfter" value="80" /> + <option name="box" value="false" /> + <option name="filler" value=" " /> + </value> + </option> + <option name="notice" value="Copyright (c) &#36;today.year, Your Corporation. All Rights Reserved." /> + <option name="keyword" value="Copyright" /> + <option name="fileTypeOverride" value="2" /> + <option name="relativeBefore" value="true" /> + <option name="addBlankAfter" value="true" /> + <option name="fileLocation" value="1" /> + <option name="useAlternate" value="false" /> + </LanguageOptions> + <LanguageOptions name="Properties"> + <option name="templateOptions"> + <value> + <option name="block" value="true" /> + <option name="separateBefore" value="false" /> + <option name="separateAfter" value="false" /> + <option name="prefixLines" value="true" /> + <option name="lenBefore" value="80" /> + <option name="lenAfter" value="80" /> + <option name="box" value="false" /> + <option name="filler" value=" " /> + </value> + </option> + <option name="notice" value="Copyright (c) &#36;today.year, Your Corporation. All Rights Reserved." /> + <option name="keyword" value="Copyright" /> + <option name="fileTypeOverride" value="2" /> + <option name="relativeBefore" value="true" /> + <option name="addBlankAfter" value="true" /> + <option name="fileLocation" value="1" /> + <option name="useAlternate" value="false" /> + </LanguageOptions> + <LanguageOptions name="XML"> + <option name="templateOptions"> + <value> + <option name="block" value="true" /> + <option name="separateBefore" value="false" /> + <option name="separateAfter" value="false" /> + <option name="prefixLines" value="true" /> + <option name="lenBefore" value="80" /> + <option name="lenAfter" value="80" /> + <option name="box" value="false" /> + <option name="filler" value=" " /> + </value> + </option> + <option name="notice" value="Copyright (c) &#36;today.year, Your Corporation. All Rights Reserved." /> + <option name="keyword" value="Copyright" /> + <option name="fileTypeOverride" value="2" /> + <option name="relativeBefore" value="true" /> + <option name="addBlankAfter" value="true" /> + <option name="fileLocation" value="1" /> + <option name="useAlternate" value="false" /> + </LanguageOptions> + </component> +</module> + Property changes on: tools/prefsbrowser/trunk/prefsbrowser.iml ___________________________________________________________________ Name: svn:mime-type + text/xml Name: svn:eol-style + LF This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <chr...@us...> - 2007-06-09 18:05:45
|
Revision: 380 http://svn.sourceforge.net/japi/?rev=380&view=rev Author: christianhujer Date: 2007-06-09 11:05:44 -0700 (Sat, 09 Jun 2007) Log Message: ----------- Added IntelliJ IDEA module. Added Paths: ----------- tools/jwget/trunk/jwget.iml Added: tools/jwget/trunk/jwget.iml =================================================================== --- tools/jwget/trunk/jwget.iml (rev 0) +++ tools/jwget/trunk/jwget.iml 2007-06-09 18:05:44 UTC (rev 380) @@ -0,0 +1,205 @@ +<?xml version="1.0" encoding="UTF-8"?> +<module relativePaths="true" type="JAVA_MODULE" version="4"> + <component name="ModuleRootManager" /> + <component name="NewModuleRootManager" inherit-compiler-output="true"> + <exclude-output /> + <content url="file://$MODULE_DIR$"> + <sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" /> + </content> + <orderEntry type="inheritedJdk" /> + <orderEntry type="sourceFolder" forTests="false" /> + <orderEntry type="module-library"> + <library> + <CLASSES> + <root url="jar://$MODULE_DIR$/common/lib/annotations.jar!/" /> + </CLASSES> + <JAVADOC /> + <SOURCES /> + </library> + </orderEntry> + <orderEntry type="module-library"> + <library> + <CLASSES> + <root url="jar://$MODULE_DIR$/common/lib/junit.jar!/" /> + </CLASSES> + <JAVADOC /> + <SOURCES /> + </library> + </orderEntry> + <orderEntryProperties /> + </component> + <component name="copyright"> + <Base> + <setting name="state" value="1" /> + </Base> + <LanguageOptions name="$TEMPLATE$"> + <option name="templateOptions"> + <value> + <option name="block" value="true" /> + <option name="separateBefore" value="false" /> + <option name="separateAfter" value="false" /> + <option name="prefixLines" value="true" /> + <option name="lenBefore" value="80" /> + <option name="lenAfter" value="80" /> + <option name="box" value="false" /> + <option name="filler" value=" " /> + </value> + </option> + <option name="notice" value="Copyright (c) &#36;today.year, Your Corporation. All Rights Reserved." /> + <option name="keyword" value="Copyright" /> + <option name="fileTypeOverride" value="4" /> + <option name="relativeBefore" value="true" /> + <option name="addBlankAfter" value="true" /> + <option name="fileLocation" value="1" /> + <option name="useAlternate" value="false" /> + </LanguageOptions> + <LanguageOptions name="CSS"> + <option name="templateOptions"> + <value> + <option name="block" value="true" /> + <option name="separateBefore" value="false" /> + <option name="separateAfter" value="false" /> + <option name="prefixLines" value="true" /> + <option name="lenBefore" value="80" /> + <option name="lenAfter" value="80" /> + <option name="box" value="false" /> + <option name="filler" value=" " /> + </value> + </option> + <option name="notice" value="Copyright (c) &#36;today.year, Your Corporation. All Rights Reserved." /> + <option name="keyword" value="Copyright" /> + <option name="fileTypeOverride" value="2" /> + <option name="relativeBefore" value="true" /> + <option name="addBlankAfter" value="true" /> + <option name="fileLocation" value="1" /> + <option name="useAlternate" value="false" /> + </LanguageOptions> + <LanguageOptions name="HTML"> + <option name="templateOptions"> + <value> + <option name="block" value="true" /> + <option name="separateBefore" value="false" /> + <option name="separateAfter" value="false" /> + <option name="prefixLines" value="true" /> + <option name="lenBefore" value="80" /> + <option name="lenAfter" value="80" /> + <option name="box" value="false" /> + <option name="filler" value=" " /> + </value> + </option> + <option name="notice" value="Copyright (c) &#36;today.year, Your Corporation. All Rights Reserved." /> + <option name="keyword" value="Copyright" /> + <option name="fileTypeOverride" value="2" /> + <option name="relativeBefore" value="true" /> + <option name="addBlankAfter" value="true" /> + <option name="fileLocation" value="1" /> + <option name="useAlternate" value="false" /> + </LanguageOptions> + <LanguageOptions name="JAVA"> + <option name="templateOptions"> + <value> + <option name="block" value="true" /> + <option name="separateBefore" value="false" /> + <option name="separateAfter" value="false" /> + <option name="prefixLines" value="true" /> + <option name="lenBefore" value="80" /> + <option name="lenAfter" value="80" /> + <option name="box" value="false" /> + <option name="filler" value=" " /> + </value> + </option> + <option name="notice" value="Copyright (c) &#36;today.year, Your Corporation. All Rights Reserved." /> + <option name="keyword" value="Copyright" /> + <option name="fileTypeOverride" value="2" /> + <option name="relativeBefore" value="true" /> + <option name="addBlankAfter" value="true" /> + <option name="fileLocation" value="1" /> + <option name="useAlternate" value="false" /> + </LanguageOptions> + <LanguageOptions name="JSP"> + <option name="templateOptions"> + <value> + <option name="block" value="true" /> + <option name="separateBefore" value="false" /> + <option name="separateAfter" value="false" /> + <option name="prefixLines" value="true" /> + <option name="lenBefore" value="80" /> + <option name="lenAfter" value="80" /> + <option name="box" value="false" /> + <option name="filler" value=" " /> + </value> + </option> + <option name="notice" value="Copyright (c) &#36;today.year, Your Corporation. All Rights Reserved." /> + <option name="keyword" value="Copyright" /> + <option name="fileTypeOverride" value="2" /> + <option name="relativeBefore" value="true" /> + <option name="addBlankAfter" value="true" /> + <option name="fileLocation" value="1" /> + <option name="useAlternate" value="false" /> + </LanguageOptions> + <LanguageOptions name="JavaScript"> + <option name="templateOptions"> + <value> + <option name="block" value="true" /> + <option name="separateBefore" value="false" /> + <option name="separateAfter" value="false" /> + <option name="prefixLines" value="true" /> + <option name="lenBefore" value="80" /> + <option name="lenAfter" value="80" /> + <option name="box" value="false" /> + <option name="filler" value=" " /> + </value> + </option> + <option name="notice" value="Copyright (c) &#36;today.year, Your Corporation. All Rights Reserved." /> + <option name="keyword" value="Copyright" /> + <option name="fileTypeOverride" value="2" /> + <option name="relativeBefore" value="true" /> + <option name="addBlankAfter" value="true" /> + <option name="fileLocation" value="1" /> + <option name="useAlternate" value="false" /> + </LanguageOptions> + <LanguageOptions name="Properties"> + <option name="templateOptions"> + <value> + <option name="block" value="true" /> + <option name="separateBefore" value="false" /> + <option name="separateAfter" value="false" /> + <option name="prefixLines" value="true" /> + <option name="lenBefore" value="80" /> + <option name="lenAfter" value="80" /> + <option name="box" value="false" /> + <option name="filler" value=" " /> + </value> + </option> + <option name="notice" value="Copyright (c) &#36;today.year, Your Corporation. All Rights Reserved." /> + <option name="keyword" value="Copyright" /> + <option name="fileTypeOverride" value="2" /> + <option name="relativeBefore" value="true" /> + <option name="addBlankAfter" value="true" /> + <option name="fileLocation" value="1" /> + <option name="useAlternate" value="false" /> + </LanguageOptions> + <LanguageOptions name="XML"> + <option name="templateOptions"> + <value> + <option name="block" value="true" /> + <option name="separateBefore" value="false" /> + <option name="separateAfter" value="false" /> + <option name="prefixLines" value="true" /> + <option name="lenBefore" value="80" /> + <option name="lenAfter" value="80" /> + <option name="box" value="false" /> + <option name="filler" value=" " /> + </value> + </option> + <option name="notice" value="Copyright (c) &#36;today.year, Your Corporation. All Rights Reserved." /> + <option name="keyword" value="Copyright" /> + <option name="fileTypeOverride" value="2" /> + <option name="relativeBefore" value="true" /> + <option name="addBlankAfter" value="true" /> + <option name="fileLocation" value="1" /> + <option name="useAlternate" value="false" /> + </LanguageOptions> + </component> +</module> + Property changes on: tools/jwget/trunk/jwget.iml ___________________________________________________________________ Name: svn:mime-type + text/xml Name: svn:eol-style + LF This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <chr...@us...> - 2007-06-09 17:54:08
|
Revision: 379 http://svn.sourceforge.net/japi/?rev=379&view=rev Author: christianhujer Date: 2007-06-09 10:54:06 -0700 (Sat, 09 Jun 2007) Log Message: ----------- Added structure for fontbrowser. Added Paths: ----------- tools/fontbrowser/ tools/fontbrowser/branches/ tools/fontbrowser/tags/ tools/fontbrowser/trunk/ Property changes on: tools/fontbrowser/trunk ___________________________________________________________________ Name: svn:externals + common https://japi.svn.sourceforge.net/svnroot/japi/common/trunk This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <chr...@us...> - 2007-06-09 17:53:54
|
Revision: 378 http://svn.sourceforge.net/japi/?rev=378&view=rev Author: christianhujer Date: 2007-06-09 10:53:53 -0700 (Sat, 09 Jun 2007) Log Message: ----------- Added structure for keystrokes. Added Paths: ----------- tools/keystrokes/ tools/keystrokes/branches/ tools/keystrokes/tags/ tools/keystrokes/trunk/ Property changes on: tools/keystrokes/trunk ___________________________________________________________________ Name: svn:externals + common https://japi.svn.sourceforge.net/svnroot/japi/common/trunk This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <chr...@us...> - 2007-06-09 17:53:42
|
Revision: 377 http://svn.sourceforge.net/japi/?rev=377&view=rev Author: christianhujer Date: 2007-06-09 10:53:41 -0700 (Sat, 09 Jun 2007) Log Message: ----------- Added structure for jwget. Added Paths: ----------- tools/jwget/ tools/jwget/branches/ tools/jwget/tags/ tools/jwget/trunk/ Property changes on: tools/jwget/trunk ___________________________________________________________________ Name: svn:externals + common https://japi.svn.sourceforge.net/svnroot/japi/common/trunk This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <chr...@us...> - 2007-06-09 17:53:27
|
Revision: 376 http://svn.sourceforge.net/japi/?rev=376&view=rev Author: christianhujer Date: 2007-06-09 10:53:25 -0700 (Sat, 09 Jun 2007) Log Message: ----------- Added structure for prefsbrowser. Added Paths: ----------- tools/prefsbrowser/ tools/prefsbrowser/branches/ tools/prefsbrowser/tags/ tools/prefsbrowser/trunk/ Property changes on: tools/prefsbrowser/trunk ___________________________________________________________________ Name: svn:externals + common https://japi.svn.sourceforge.net/svnroot/japi/common/trunk This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <chr...@us...> - 2007-06-09 17:39:23
|
Revision: 375 http://svn.sourceforge.net/japi/?rev=375&view=rev Author: christianhujer Date: 2007-06-09 10:39:21 -0700 (Sat, 09 Jun 2007) Log Message: ----------- Fixed compile error. Modified Paths: -------------- progs/jeduca/trunk/src/net/sf/japi/progs/jeduca/jtest/gui/ProgramFrame.java Modified: progs/jeduca/trunk/src/net/sf/japi/progs/jeduca/jtest/gui/ProgramFrame.java =================================================================== --- progs/jeduca/trunk/src/net/sf/japi/progs/jeduca/jtest/gui/ProgramFrame.java 2007-06-09 13:27:33 UTC (rev 374) +++ progs/jeduca/trunk/src/net/sf/japi/progs/jeduca/jtest/gui/ProgramFrame.java 2007-06-09 17:39:21 UTC (rev 375) @@ -108,6 +108,7 @@ * @param program Program object to create frame for */ public ProgramFrame(final Program program) { + super(""); setProgram(program); initUI(); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <chr...@us...> - 2007-06-09 13:27:34
|
Revision: 374 http://svn.sourceforge.net/japi/?rev=374&view=rev Author: christianhujer Date: 2007-06-09 06:27:33 -0700 (Sat, 09 Jun 2007) Log Message: ----------- Added encoding property and memory for previous physical mode. Modified Paths: -------------- tools/cstyle/trunk/src/net/sf/japi/cstyle/CStyle.java tools/cstyle/trunk/src/test/net/sf/japi/cstyle/CStyleTest.java Added Paths: ----------- tools/cstyle/trunk/src/net/sf/japi/cstyle/CStyle.properties Modified: tools/cstyle/trunk/src/net/sf/japi/cstyle/CStyle.java =================================================================== --- tools/cstyle/trunk/src/net/sf/japi/cstyle/CStyle.java 2007-06-08 21:21:12 UTC (rev 373) +++ tools/cstyle/trunk/src/net/sf/japi/cstyle/CStyle.java 2007-06-09 13:27:33 UTC (rev 374) @@ -30,6 +30,7 @@ import java.util.List; import net.sf.japi.io.args.ArgParser; import net.sf.japi.io.args.BasicCommand; +import net.sf.japi.io.args.Option; import org.jetbrains.annotations.NotNull; /** CStyle is a simple program that checks whether a C source or header file adhers to a specific code convention. @@ -50,9 +51,28 @@ */ @NotNull private String encoding = Charset.defaultCharset().name(); + /** The previous physicalMode of the parser. */ + @NotNull private PhysicalMode previousPhysicalMode = PhysicalMode.NORMAL; + /** The current physicalMode of the parser. */ @NotNull private PhysicalMode physicalMode = PhysicalMode.NORMAL; + /** The current token of the parser. */ + @NotNull private final StringBuilder currentToken = new StringBuilder(); + + /** Creates a CStyle command. */ + public CStyle() { + reset(); + } + + /** Sets the encoding to use when reading source files. + * @param encoding Encoding to use + */ + @Option({"e", "encoding"}) + public void setEncoding(@NotNull final String encoding) { + this.encoding = Charset.forName(encoding).name(); + } + /** {@inheritDoc} */ @SuppressWarnings({"InstanceMethodNamingConvention"}) public int run(@NotNull final List<String> args) throws Exception { @@ -106,13 +126,17 @@ /** Reset the parser to its initial state. */ public void reset() { physicalMode = PhysicalMode.NORMAL; + previousPhysicalMode = PhysicalMode.NORMAL; + currentToken.setLength(0); } /** Processes a single character in the parser. * @param c Character to parse */ public void parse(final char c) { - switch (physicalMode) { + previousPhysicalMode = physicalMode; + // Step 1: Parse the character and determine the new mode. + switch (previousPhysicalMode) { case NORMAL: switch (c) { case '\\': physicalMode = PhysicalMode.ESCAPE; break; @@ -169,8 +193,19 @@ default: assert false; } + // Step 2: Tokenize + switch (physicalMode) { + case NORMAL: + } } + /** Returns the previous physicalMode of the parser. + * @return The previous physicalMode of the parser. + */ + @NotNull public PhysicalMode getPreviousPhysicalMode() { + return previousPhysicalMode; + } + /** Returns the current physicalMode of the parser. * @return The current physicalMode of the parser. */ Added: tools/cstyle/trunk/src/net/sf/japi/cstyle/CStyle.properties =================================================================== --- tools/cstyle/trunk/src/net/sf/japi/cstyle/CStyle.properties (rev 0) +++ tools/cstyle/trunk/src/net/sf/japi/cstyle/CStyle.properties 2007-06-09 13:27:33 UTC (rev 374) @@ -0,0 +1,20 @@ +# +# CStyle is a program that verifies that a C source code adheres to a specific coding convention. +# Copyright (C) 2007 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., +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. +# + +setEncoding=Specify the encoding to use when reading the sources. Defaults to the underlying platform's default encoding. \ No newline at end of file Property changes on: tools/cstyle/trunk/src/net/sf/japi/cstyle/CStyle.properties ___________________________________________________________________ Name: svn:mime-type + text/plain Name: svn:eol-style + LF Modified: tools/cstyle/trunk/src/test/net/sf/japi/cstyle/CStyleTest.java =================================================================== --- tools/cstyle/trunk/src/test/net/sf/japi/cstyle/CStyleTest.java 2007-06-08 21:21:12 UTC (rev 373) +++ tools/cstyle/trunk/src/test/net/sf/japi/cstyle/CStyleTest.java 2007-06-09 13:27:33 UTC (rev 374) @@ -43,9 +43,11 @@ @Test public void testReset() { final CStyle testling = new CStyle(); testling.parse('\''); + Assert.assertEquals("previous mode must stay NORMAL.", CStyle.PhysicalMode.NORMAL, testling.getPreviousPhysicalMode()); Assert.assertEquals("mode now must be CHAR.", CStyle.PhysicalMode.CHAR, testling.getPhysicalMode()); testling.reset(); Assert.assertEquals("After reset, mode must be NORMAL", CStyle.PhysicalMode.NORMAL, testling.getPhysicalMode()); + Assert.assertEquals("After reset, previous mode must be NORMAL", CStyle.PhysicalMode.NORMAL, testling.getPreviousPhysicalMode()); } } // class CStyleTest This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <chr...@us...> - 2007-06-08 21:21:14
|
Revision: 373 http://svn.sourceforge.net/japi/?rev=373&view=rev Author: christianhujer Date: 2007-06-08 14:21:12 -0700 (Fri, 08 Jun 2007) Log Message: ----------- Added code with command and physical parser. Added Paths: ----------- tools/cstyle/trunk/src/net/sf/japi/cstyle/CStyle.java tools/cstyle/trunk/src/test/net/sf/japi/cstyle/CStyleTest.java Added: tools/cstyle/trunk/src/net/sf/japi/cstyle/CStyle.java =================================================================== --- tools/cstyle/trunk/src/net/sf/japi/cstyle/CStyle.java (rev 0) +++ tools/cstyle/trunk/src/net/sf/japi/cstyle/CStyle.java 2007-06-08 21:21:12 UTC (rev 373) @@ -0,0 +1,195 @@ +/* + * CStyle is a program that verifies that a C source code adheres to a specific coding convention. + * Copyright (C) 2007 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., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + */ + +package net.sf.japi.cstyle; + +import java.io.BufferedReader; +import java.io.File; +import java.io.FileInputStream; +import java.io.IOException; +import java.io.InputStream; +import java.io.InputStreamReader; +import java.io.Reader; +import java.nio.charset.Charset; +import java.util.List; +import net.sf.japi.io.args.ArgParser; +import net.sf.japi.io.args.BasicCommand; +import org.jetbrains.annotations.NotNull; + +/** CStyle is a simple program that checks whether a C source or header file adhers to a specific code convention. + * This is work under progress, so don't expect too much from it yet. + * @author <a href="mailto:ch...@ri...">Christian Hujer</a> + */ +public class CStyle extends BasicCommand { + + /** Main program. + * @param args Command line arguments. + */ + public static void main(final String... args) { + ArgParser.simpleParseAndRun(new CStyle(), args); + } + + /** The encoding to use when reading file. + * Defaults to the system's default encoding. + */ + @NotNull private String encoding = Charset.defaultCharset().name(); + + /** The current physicalMode of the parser. */ + @NotNull private PhysicalMode physicalMode = PhysicalMode.NORMAL; + + /** {@inheritDoc} */ + @SuppressWarnings({"InstanceMethodNamingConvention"}) + public int run(@NotNull final List<String> args) throws Exception { + if (args.size() == 0) { + check(System.in); + } + return 0; + } + + /** Checks a single file. + * @param filename Name of the file to read from. + * @throws IOException In case of I/O problems. + */ + public void check(final String filename) throws IOException { + check(new File(filename)); + } + + /** Checks a single file. + * @param file File to read from. + * @throws IOException In case of I/O problems. + */ + public void check(final File file) throws IOException { + final InputStream in = new FileInputStream(file); + try { + check(in); + } finally { + in.close(); + } + } + + /** Checks a single stream. + * @param stream Stream to read from. + * @throws IOException In case of I/O problems. + */ + public void check(final InputStream stream) throws IOException { + final BufferedReader in = new BufferedReader(new InputStreamReader(stream, encoding)); + check(in); + } + + /** Checks a single reader. + * @param in Reader to read from. + * @throws IOException In case of I/O problems. + */ + public void check(final Reader in) throws IOException { + physicalMode = PhysicalMode.NORMAL; + for (int c; (c = in.read()) != -1;) { + parse((char) c); + } + } + + /** Reset the parser to its initial state. */ + public void reset() { + physicalMode = PhysicalMode.NORMAL; + } + + /** Processes a single character in the parser. + * @param c Character to parse + */ + public void parse(final char c) { + switch (physicalMode) { + case NORMAL: + switch (c) { + case '\\': physicalMode = PhysicalMode.ESCAPE; break; + case '/': physicalMode = PhysicalMode.SLASH; break; + case '"': physicalMode = PhysicalMode.STRING; break; + case '\'': physicalMode = PhysicalMode.CHAR; break; + } + break; + case ESCAPE: + physicalMode = PhysicalMode.NORMAL; + break; + case SLASH: + switch (c) { + case '/': physicalMode = PhysicalMode.EOL_COMMENT; break; + case '*': physicalMode = PhysicalMode.ML_COMMENT; break; + default: physicalMode = PhysicalMode.NORMAL; break; + } + break; + case EOL_COMMENT: + switch (c) { + case '\n': physicalMode = PhysicalMode.NORMAL; break; + } + break; + case ML_COMMENT: + switch (c) { + case '*': physicalMode = PhysicalMode.ML_COMMENT_STAR; break; + } + break; + case ML_COMMENT_STAR: + switch (c) { + case '/': physicalMode = PhysicalMode.NORMAL; break; + case '*': physicalMode = PhysicalMode.ML_COMMENT_STAR; break; + default: physicalMode = PhysicalMode.ML_COMMENT; break; + } + break; + case STRING: + switch (c) { + case '"': physicalMode = PhysicalMode.NORMAL; break; + case '\\': physicalMode = PhysicalMode.STRING_ESCAPE; break; + } + break; + case STRING_ESCAPE: + physicalMode = PhysicalMode.STRING; + break; + case CHAR: + switch (c) { + case '\'': physicalMode = PhysicalMode.NORMAL; break; + case '\\': physicalMode = PhysicalMode.CHAR_ESCAPE; break; + } + break; + case CHAR_ESCAPE: + physicalMode = PhysicalMode.CHAR; + break; + default: + assert false; + } + } + + /** Returns the current physicalMode of the parser. + * @return The current physicalMode of the parser. + */ + @NotNull public PhysicalMode getPhysicalMode() { + return physicalMode; + } + + /** The physicalMode of the physical parser. */ + public enum PhysicalMode { + NORMAL, + ESCAPE, + SLASH, + EOL_COMMENT, + ML_COMMENT, + ML_COMMENT_STAR, + STRING, + STRING_ESCAPE, + CHAR, + CHAR_ESCAPE + } // enum PhysicalMode + +} // class CStyle Property changes on: tools/cstyle/trunk/src/net/sf/japi/cstyle/CStyle.java ___________________________________________________________________ Name: svn:mime-type + text/plain Name: svn:eol-style + LF Added: tools/cstyle/trunk/src/test/net/sf/japi/cstyle/CStyleTest.java =================================================================== --- tools/cstyle/trunk/src/test/net/sf/japi/cstyle/CStyleTest.java (rev 0) +++ tools/cstyle/trunk/src/test/net/sf/japi/cstyle/CStyleTest.java 2007-06-08 21:21:12 UTC (rev 373) @@ -0,0 +1,51 @@ +/* + * CStyle is a program that verifies that a C source code adheres to a specific coding convention. + * Copyright (C) 2007 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., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + */ + +package test.net.sf.japi.cstyle; + +import net.sf.japi.cstyle.CStyle; +import org.junit.Test; +import org.junit.Assert; + +/** Unit test for {@link CStyle}. + * @author <a href="mailto:ch...@ri...">Christian Hujer</a> + */ +public class CStyleTest { + + /** Tests whether {@link CStyle#parse(char)} works. */ + @Test public void testParse() { + final CStyle testling = new CStyle(); + final String testString = "if (foo > 'x') { // check x\n printf(\"%d\");\n}"; + final char[] chars = testString.toCharArray(); + for (final char c : chars) { + testling.parse(c); + } + Assert.assertEquals("mode now must be NORMAL.", CStyle.PhysicalMode.NORMAL, testling.getPhysicalMode()); + } + + /** Tests whether {@link CStyle#reset()} works. */ + @Test public void testReset() { + final CStyle testling = new CStyle(); + testling.parse('\''); + Assert.assertEquals("mode now must be CHAR.", CStyle.PhysicalMode.CHAR, testling.getPhysicalMode()); + testling.reset(); + Assert.assertEquals("After reset, mode must be NORMAL", CStyle.PhysicalMode.NORMAL, testling.getPhysicalMode()); + } + +} // class CStyleTest Property changes on: tools/cstyle/trunk/src/test/net/sf/japi/cstyle/CStyleTest.java ___________________________________________________________________ Name: svn:mime-type + text/plain Name: svn:eol-style + LF This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <chr...@us...> - 2007-06-08 20:55:39
|
Revision: 372 http://svn.sourceforge.net/japi/?rev=372&view=rev Author: christianhujer Date: 2007-06-08 13:55:34 -0700 (Fri, 08 Jun 2007) Log Message: ----------- Added test package. Modified Paths: -------------- tools/cstyle/trunk/cstyle.iml Added Paths: ----------- tools/cstyle/trunk/src/test/ tools/cstyle/trunk/src/test/net/ tools/cstyle/trunk/src/test/net/sf/ tools/cstyle/trunk/src/test/net/sf/japi/ tools/cstyle/trunk/src/test/net/sf/japi/cstyle/ Modified: tools/cstyle/trunk/cstyle.iml =================================================================== --- tools/cstyle/trunk/cstyle.iml 2007-06-08 20:22:45 UTC (rev 371) +++ tools/cstyle/trunk/cstyle.iml 2007-06-08 20:55:34 UTC (rev 372) @@ -5,6 +5,7 @@ <exclude-output /> <content url="file://$MODULE_DIR$"> <sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" /> + <sourceFolder url="file://$MODULE_DIR$/src/test" isTestSource="true" packagePrefix="test" /> </content> <orderEntry type="inheritedJdk" /> <orderEntry type="sourceFolder" forTests="false" /> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <chr...@us...> - 2007-06-08 20:22:46
|
Revision: 371 http://svn.sourceforge.net/japi/?rev=371&view=rev Author: christianhujer Date: 2007-06-08 13:22:45 -0700 (Fri, 08 Jun 2007) Log Message: ----------- Updated copyright module settings. Modified Paths: -------------- tools/cstyle/trunk/cstyle.iml Modified: tools/cstyle/trunk/cstyle.iml =================================================================== --- tools/cstyle/trunk/cstyle.iml 2007-06-08 20:18:53 UTC (rev 370) +++ tools/cstyle/trunk/cstyle.iml 2007-06-08 20:22:45 UTC (rev 371) @@ -31,7 +31,7 @@ </component> <component name="copyright"> <Base> - <setting name="state" value="1" /> + <setting name="state" value="0" /> </Base> <LanguageOptions name="$TEMPLATE$"> <option name="templateOptions"> @@ -46,7 +46,7 @@ <option name="filler" value=" " /> </value> </option> - <option name="notice" value="Copyright (c) &#36;today.year, Your Corporation. All Rights Reserved." /> + <option name="notice" value="CStyle is a program that verifies that a C source code adheres to a specific coding convention. Copyright (C) &#36;today.year 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA." /> <option name="keyword" value="Copyright" /> <option name="fileTypeOverride" value="4" /> <option name="relativeBefore" value="true" /> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <chr...@us...> - 2007-06-08 20:18:56
|
Revision: 370 http://svn.sourceforge.net/japi/?rev=370&view=rev Author: christianhujer Date: 2007-06-08 13:18:53 -0700 (Fri, 08 Jun 2007) Log Message: ----------- Added argparser module dependency. Modified Paths: -------------- tools/cstyle/trunk/cstyle.iml Modified: tools/cstyle/trunk/cstyle.iml =================================================================== --- tools/cstyle/trunk/cstyle.iml 2007-06-08 20:15:58 UTC (rev 369) +++ tools/cstyle/trunk/cstyle.iml 2007-06-08 20:18:53 UTC (rev 370) @@ -26,6 +26,7 @@ <SOURCES /> </library> </orderEntry> + <orderEntry type="module" module-name="libs-argparser" /> <orderEntryProperties /> </component> <component name="copyright"> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <chr...@us...> - 2007-06-08 20:16:00
|
Revision: 369 http://svn.sourceforge.net/japi/?rev=369&view=rev Author: christianhujer Date: 2007-06-08 13:15:58 -0700 (Fri, 08 Jun 2007) Log Message: ----------- Added junit and annotations module library. Modified Paths: -------------- tools/cstyle/trunk/cstyle.iml Modified: tools/cstyle/trunk/cstyle.iml =================================================================== --- tools/cstyle/trunk/cstyle.iml 2007-06-08 20:09:26 UTC (rev 368) +++ tools/cstyle/trunk/cstyle.iml 2007-06-08 20:15:58 UTC (rev 369) @@ -8,6 +8,24 @@ </content> <orderEntry type="inheritedJdk" /> <orderEntry type="sourceFolder" forTests="false" /> + <orderEntry type="module-library"> + <library> + <CLASSES> + <root url="jar://$MODULE_DIR$/common/lib/junit.jar!/" /> + </CLASSES> + <JAVADOC /> + <SOURCES /> + </library> + </orderEntry> + <orderEntry type="module-library"> + <library> + <CLASSES> + <root url="jar://$MODULE_DIR$/common/lib/annotations.jar!/" /> + </CLASSES> + <JAVADOC /> + <SOURCES /> + </library> + </orderEntry> <orderEntryProperties /> </component> <component name="copyright"> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <chr...@us...> - 2007-06-08 20:09:40
|
Revision: 368 http://svn.sourceforge.net/japi/?rev=368&view=rev Author: christianhujer Date: 2007-06-08 13:09:26 -0700 (Fri, 08 Jun 2007) Log Message: ----------- Set externals. Property Changed: ---------------- tools/cstyle/trunk/ Property changes on: tools/cstyle/trunk ___________________________________________________________________ Name: svn:externals + common https://japi.svn.sourceforge.net/svnroot/japi/common/trunk This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <chr...@us...> - 2007-06-08 20:00:49
|
Revision: 367 http://svn.sourceforge.net/japi/?rev=367&view=rev Author: christianhujer Date: 2007-06-08 12:59:48 -0700 (Fri, 08 Jun 2007) Log Message: ----------- Added IntelliJ IDEA project file. Added Paths: ----------- tools/cstyle/trunk/cstyle.iml Added: tools/cstyle/trunk/cstyle.iml =================================================================== --- tools/cstyle/trunk/cstyle.iml (rev 0) +++ tools/cstyle/trunk/cstyle.iml 2007-06-08 19:59:48 UTC (rev 367) @@ -0,0 +1,187 @@ +<?xml version="1.0" encoding="UTF-8"?> +<module relativePaths="true" type="JAVA_MODULE" version="4"> + <component name="ModuleRootManager" /> + <component name="NewModuleRootManager" inherit-compiler-output="true"> + <exclude-output /> + <content url="file://$MODULE_DIR$"> + <sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" /> + </content> + <orderEntry type="inheritedJdk" /> + <orderEntry type="sourceFolder" forTests="false" /> + <orderEntryProperties /> + </component> + <component name="copyright"> + <Base> + <setting name="state" value="1" /> + </Base> + <LanguageOptions name="$TEMPLATE$"> + <option name="templateOptions"> + <value> + <option name="block" value="true" /> + <option name="separateBefore" value="false" /> + <option name="separateAfter" value="false" /> + <option name="prefixLines" value="true" /> + <option name="lenBefore" value="80" /> + <option name="lenAfter" value="80" /> + <option name="box" value="false" /> + <option name="filler" value=" " /> + </value> + </option> + <option name="notice" value="Copyright (c) &#36;today.year, Your Corporation. All Rights Reserved." /> + <option name="keyword" value="Copyright" /> + <option name="fileTypeOverride" value="4" /> + <option name="relativeBefore" value="true" /> + <option name="addBlankAfter" value="true" /> + <option name="fileLocation" value="1" /> + <option name="useAlternate" value="false" /> + </LanguageOptions> + <LanguageOptions name="CSS"> + <option name="templateOptions"> + <value> + <option name="block" value="true" /> + <option name="separateBefore" value="false" /> + <option name="separateAfter" value="false" /> + <option name="prefixLines" value="true" /> + <option name="lenBefore" value="80" /> + <option name="lenAfter" value="80" /> + <option name="box" value="false" /> + <option name="filler" value=" " /> + </value> + </option> + <option name="notice" value="Copyright (c) &#36;today.year, Your Corporation. All Rights Reserved." /> + <option name="keyword" value="Copyright" /> + <option name="fileTypeOverride" value="2" /> + <option name="relativeBefore" value="true" /> + <option name="addBlankAfter" value="true" /> + <option name="fileLocation" value="1" /> + <option name="useAlternate" value="false" /> + </LanguageOptions> + <LanguageOptions name="HTML"> + <option name="templateOptions"> + <value> + <option name="block" value="true" /> + <option name="separateBefore" value="false" /> + <option name="separateAfter" value="false" /> + <option name="prefixLines" value="true" /> + <option name="lenBefore" value="80" /> + <option name="lenAfter" value="80" /> + <option name="box" value="false" /> + <option name="filler" value=" " /> + </value> + </option> + <option name="notice" value="Copyright (c) &#36;today.year, Your Corporation. All Rights Reserved." /> + <option name="keyword" value="Copyright" /> + <option name="fileTypeOverride" value="2" /> + <option name="relativeBefore" value="true" /> + <option name="addBlankAfter" value="true" /> + <option name="fileLocation" value="1" /> + <option name="useAlternate" value="false" /> + </LanguageOptions> + <LanguageOptions name="JAVA"> + <option name="templateOptions"> + <value> + <option name="block" value="true" /> + <option name="separateBefore" value="false" /> + <option name="separateAfter" value="false" /> + <option name="prefixLines" value="true" /> + <option name="lenBefore" value="80" /> + <option name="lenAfter" value="80" /> + <option name="box" value="false" /> + <option name="filler" value=" " /> + </value> + </option> + <option name="notice" value="Copyright (c) &#36;today.year, Your Corporation. All Rights Reserved." /> + <option name="keyword" value="Copyright" /> + <option name="fileTypeOverride" value="2" /> + <option name="relativeBefore" value="true" /> + <option name="addBlankAfter" value="true" /> + <option name="fileLocation" value="1" /> + <option name="useAlternate" value="false" /> + </LanguageOptions> + <LanguageOptions name="JSP"> + <option name="templateOptions"> + <value> + <option name="block" value="true" /> + <option name="separateBefore" value="false" /> + <option name="separateAfter" value="false" /> + <option name="prefixLines" value="true" /> + <option name="lenBefore" value="80" /> + <option name="lenAfter" value="80" /> + <option name="box" value="false" /> + <option name="filler" value=" " /> + </value> + </option> + <option name="notice" value="Copyright (c) &#36;today.year, Your Corporation. All Rights Reserved." /> + <option name="keyword" value="Copyright" /> + <option name="fileTypeOverride" value="2" /> + <option name="relativeBefore" value="true" /> + <option name="addBlankAfter" value="true" /> + <option name="fileLocation" value="1" /> + <option name="useAlternate" value="false" /> + </LanguageOptions> + <LanguageOptions name="JavaScript"> + <option name="templateOptions"> + <value> + <option name="block" value="true" /> + <option name="separateBefore" value="false" /> + <option name="separateAfter" value="false" /> + <option name="prefixLines" value="true" /> + <option name="lenBefore" value="80" /> + <option name="lenAfter" value="80" /> + <option name="box" value="false" /> + <option name="filler" value=" " /> + </value> + </option> + <option name="notice" value="Copyright (c) &#36;today.year, Your Corporation. All Rights Reserved." /> + <option name="keyword" value="Copyright" /> + <option name="fileTypeOverride" value="2" /> + <option name="relativeBefore" value="true" /> + <option name="addBlankAfter" value="true" /> + <option name="fileLocation" value="1" /> + <option name="useAlternate" value="false" /> + </LanguageOptions> + <LanguageOptions name="Properties"> + <option name="templateOptions"> + <value> + <option name="block" value="true" /> + <option name="separateBefore" value="false" /> + <option name="separateAfter" value="false" /> + <option name="prefixLines" value="true" /> + <option name="lenBefore" value="80" /> + <option name="lenAfter" value="80" /> + <option name="box" value="false" /> + <option name="filler" value=" " /> + </value> + </option> + <option name="notice" value="Copyright (c) &#36;today.year, Your Corporation. All Rights Reserved." /> + <option name="keyword" value="Copyright" /> + <option name="fileTypeOverride" value="2" /> + <option name="relativeBefore" value="true" /> + <option name="addBlankAfter" value="true" /> + <option name="fileLocation" value="1" /> + <option name="useAlternate" value="false" /> + </LanguageOptions> + <LanguageOptions name="XML"> + <option name="templateOptions"> + <value> + <option name="block" value="true" /> + <option name="separateBefore" value="false" /> + <option name="separateAfter" value="false" /> + <option name="prefixLines" value="true" /> + <option name="lenBefore" value="80" /> + <option name="lenAfter" value="80" /> + <option name="box" value="false" /> + <option name="filler" value=" " /> + </value> + </option> + <option name="notice" value="Copyright (c) &#36;today.year, Your Corporation. All Rights Reserved." /> + <option name="keyword" value="Copyright" /> + <option name="fileTypeOverride" value="2" /> + <option name="relativeBefore" value="true" /> + <option name="addBlankAfter" value="true" /> + <option name="fileLocation" value="1" /> + <option name="useAlternate" value="false" /> + </LanguageOptions> + </component> +</module> + Property changes on: tools/cstyle/trunk/cstyle.iml ___________________________________________________________________ Name: svn:mime-type + text/xml Name: svn:eol-style + LF This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <chr...@us...> - 2007-06-08 19:59:01
|
Revision: 366 http://svn.sourceforge.net/japi/?rev=366&view=rev Author: christianhujer Date: 2007-06-08 12:58:56 -0700 (Fri, 08 Jun 2007) Log Message: ----------- Added src tree. Added Paths: ----------- tools/cstyle/trunk/src/ tools/cstyle/trunk/src/net/ tools/cstyle/trunk/src/net/sf/ tools/cstyle/trunk/src/net/sf/japi/ tools/cstyle/trunk/src/net/sf/japi/cstyle/ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <chr...@us...> - 2007-06-08 19:48:28
|
Revision: 365 http://svn.sourceforge.net/japi/?rev=365&view=rev Author: christianhujer Date: 2007-06-08 12:48:18 -0700 (Fri, 08 Jun 2007) Log Message: ----------- Added ttb for cstyle tool. Added Paths: ----------- tools/cstyle/ tools/cstyle/branches/ tools/cstyle/tags/ tools/cstyle/trunk/ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <chr...@us...> - 2007-06-07 20:06:38
|
Revision: 364 http://svn.sourceforge.net/japi/?rev=364&view=rev Author: christianhujer Date: 2007-06-07 13:06:37 -0700 (Thu, 07 Jun 2007) Log Message: ----------- Added common external to all japi libs. Property Changed: ---------------- libs/finance/trunk/ libs/lang/trunk/ libs/logging/trunk/ libs/registry/trunk/ libs/swing-about/trunk/ libs/swing-action/trunk/ libs/swing-app/trunk/ libs/swing-bookmarks/trunk/ libs/swing-extlib/trunk/ libs/swing-font/trunk/ libs/swing-keyprefs/trunk/ libs/swing-misc/trunk/ libs/swing-prefs/trunk/ libs/swing-proxyprefs/trunk/ libs/swing-recent/trunk/ libs/swing-tod/trunk/ libs/swing-treetable/trunk/ libs/taglets/trunk/ libs/util/trunk/ libs/xml/trunk/ Property changes on: libs/finance/trunk ___________________________________________________________________ Name: svn:externals + common https://japi.svn.sourceforge.net/svnroot/japi/common/trunk Property changes on: libs/lang/trunk ___________________________________________________________________ Name: svn:externals + common https://japi.svn.sourceforge.net/svnroot/japi/common/trunk Property changes on: libs/logging/trunk ___________________________________________________________________ Name: svn:externals + common https://japi.svn.sourceforge.net/svnroot/japi/common/trunk Property changes on: libs/registry/trunk ___________________________________________________________________ Name: svn:externals + common https://japi.svn.sourceforge.net/svnroot/japi/common/trunk Property changes on: libs/swing-about/trunk ___________________________________________________________________ Name: svn:externals + common https://japi.svn.sourceforge.net/svnroot/japi/common/trunk Property changes on: libs/swing-action/trunk ___________________________________________________________________ Name: svn:externals + common https://japi.svn.sourceforge.net/svnroot/japi/common/trunk Property changes on: libs/swing-app/trunk ___________________________________________________________________ Name: svn:externals + common https://japi.svn.sourceforge.net/svnroot/japi/common/trunk Property changes on: libs/swing-bookmarks/trunk ___________________________________________________________________ Name: svn:externals + common https://japi.svn.sourceforge.net/svnroot/japi/common/trunk Property changes on: libs/swing-extlib/trunk ___________________________________________________________________ Name: svn:externals + common https://japi.svn.sourceforge.net/svnroot/japi/common/trunk Property changes on: libs/swing-font/trunk ___________________________________________________________________ Name: svn:externals + common https://japi.svn.sourceforge.net/svnroot/japi/common/trunk Property changes on: libs/swing-keyprefs/trunk ___________________________________________________________________ Name: svn:externals + common https://japi.svn.sourceforge.net/svnroot/japi/common/trunk Property changes on: libs/swing-misc/trunk ___________________________________________________________________ Name: svn:externals + common https://japi.svn.sourceforge.net/svnroot/japi/common/trunk Property changes on: libs/swing-prefs/trunk ___________________________________________________________________ Name: svn:externals + common https://japi.svn.sourceforge.net/svnroot/japi/common/trunk Property changes on: libs/swing-proxyprefs/trunk ___________________________________________________________________ Name: svn:externals + common https://japi.svn.sourceforge.net/svnroot/japi/common/trunk Property changes on: libs/swing-recent/trunk ___________________________________________________________________ Name: svn:externals + common https://japi.svn.sourceforge.net/svnroot/japi/common/trunk Property changes on: libs/swing-tod/trunk ___________________________________________________________________ Name: svn:externals + common https://japi.svn.sourceforge.net/svnroot/japi/common/trunk Property changes on: libs/swing-treetable/trunk ___________________________________________________________________ Name: svn:externals + common https://japi.svn.sourceforge.net/svnroot/japi/common/trunk Property changes on: libs/taglets/trunk ___________________________________________________________________ Name: svn:externals + common https://japi.svn.sourceforge.net/svnroot/japi/common/trunk Property changes on: libs/util/trunk ___________________________________________________________________ Name: svn:externals + common https://japi.svn.sourceforge.net/svnroot/japi/common/trunk Property changes on: libs/xml/trunk ___________________________________________________________________ Name: svn:externals + common https://japi.svn.sourceforge.net/svnroot/japi/common/trunk This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <chr...@us...> - 2007-06-07 19:52:39
|
Revision: 363 http://svn.sourceforge.net/japi/?rev=363&view=rev Author: christianhujer Date: 2007-06-07 12:52:37 -0700 (Thu, 07 Jun 2007) Log Message: ----------- Changed README. It was describing common instead of libs/argparser. Modified Paths: -------------- libs/argparser/trunk/README Modified: libs/argparser/trunk/README =================================================================== --- libs/argparser/trunk/README 2007-06-07 19:47:50 UTC (rev 362) +++ libs/argparser/trunk/README 2007-06-07 19:52:37 UTC (rev 363) @@ -1,7 +1,7 @@ -JAPI COMMON README -================== +JAPI ARGPARSER README +===================== -This file contains some important information about Japi Common. You should +This file contains some important information about Japi ArgParser. You should read it first. @@ -20,8 +20,10 @@ PROJECT DESCRIPTION ------------------- -Japi Common is a set of libraries and build modules useful for Java projects. -It is part of the Japi project. +Japi ArgParser is a subproject of Japi. +Japi ArgParser is an API for writing commands in Java with a focus on unified, +easy to implement command line argument parsing. +Japi is a set of APIs for various purposes. PROJECT WEBSITE @@ -29,7 +31,7 @@ Project homepage: http://japi.sourceforge.net/ Project website: http://sourceforge.net/projects/japi/ Project statistics: http://cia.navi.cx/projects/japi -Subproject homepage: http://japi.sourceforge.net/common/ +Subproject homepage: http://japi.sourceforge.net/libs/argparser/ SYSTEM REQUIREMENTS @@ -49,17 +51,17 @@ The build file to build the project with Ant. COPYING - Japi Common license conditions. Note: applies to Japi Common only, not - third party libraries. + Japi ArgParser license conditions. Note: applies to Japi ArgParser only, + not third party libraries. CREDITS List of project contributors. See also MAINTAINERS. INSTALL - Description of how to build and install Japi Common. + Description of how to build and install Japi ArgParser. lib/ - Directory containing third party libraries used to build Japi Common. + Directory containing third party libraries used to build Japi ArgParser. Please note that these thrid party libraries have their own license conditions. The licenses of the third party libraries are included in the lib/ directory. This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <chr...@us...> - 2007-06-07 19:47:51
|
Revision: 362 http://svn.sourceforge.net/japi/?rev=362&view=rev Author: christianhujer Date: 2007-06-07 12:47:50 -0700 (Thu, 07 Jun 2007) Log Message: ----------- Added antmeat / freshmeat task for Ant. Modified Paths: -------------- common/trunk/commonBuild.xml Added Paths: ----------- common/trunk/lib/LICENSE-antmeat.jar common/trunk/lib/LICENSE-xmlrpc-2.0.jar common/trunk/lib/antmeat.jar common/trunk/lib/xmlrpc-2.0.jar Modified: common/trunk/commonBuild.xml =================================================================== --- common/trunk/commonBuild.xml 2007-06-07 19:46:51 UTC (rev 361) +++ common/trunk/commonBuild.xml 2007-06-07 19:47:50 UTC (rev 362) @@ -6,6 +6,7 @@ ~ @author <a href="mailto:ch...@ri...">Christian Hujer</a> --> <taskdef name="pack200" classpath="common/lib/Pack200Task.jar" classname="com.sun.tools.apache.ant.pack200.Pack200Task" /> +<taskdef name="freshmeat" classpath="common/lib/antmeat.jar" classname="de.frewert.ant.freshmeat.Announcement" /> <target name = "clean" Added: common/trunk/lib/LICENSE-antmeat.jar =================================================================== --- common/trunk/lib/LICENSE-antmeat.jar (rev 0) +++ common/trunk/lib/LICENSE-antmeat.jar 2007-06-07 19:47:50 UTC (rev 362) @@ -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: common/trunk/lib/LICENSE-antmeat.jar ___________________________________________________________________ Name: svn:mime-type + text/plain Name: svn:eol-style + LF Added: common/trunk/lib/LICENSE-xmlrpc-2.0.jar =================================================================== --- common/trunk/lib/LICENSE-xmlrpc-2.0.jar (rev 0) +++ common/trunk/lib/LICENSE-xmlrpc-2.0.jar 2007-06-07 19:47:50 UTC (rev 362) @@ -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: common/trunk/lib/LICENSE-xmlrpc-2.0.jar ___________________________________________________________________ Name: svn:mime-type + text/plain Name: svn:eol-style + LF Added: common/trunk/lib/antmeat.jar =================================================================== (Binary files differ) Property changes on: common/trunk/lib/antmeat.jar ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: common/trunk/lib/xmlrpc-2.0.jar =================================================================== (Binary files differ) Property changes on: common/trunk/lib/xmlrpc-2.0.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...> - 2007-06-07 19:46:52
|
Revision: 361 http://svn.sourceforge.net/japi/?rev=361&view=rev Author: christianhujer Date: 2007-06-07 12:46:51 -0700 (Thu, 07 Jun 2007) Log Message: ----------- Made tests a test path in IntelliJ IDEA module. Modified Paths: -------------- libs/argparser/trunk/libs-argparser.iml Modified: libs/argparser/trunk/libs-argparser.iml =================================================================== --- libs/argparser/trunk/libs-argparser.iml 2007-06-07 19:40:27 UTC (rev 360) +++ libs/argparser/trunk/libs-argparser.iml 2007-06-07 19:46:51 UTC (rev 361) @@ -6,6 +6,7 @@ <content url="file://$MODULE_DIR$"> <sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" /> <sourceFolder url="file://$MODULE_DIR$/src/doc" isTestSource="false" /> + <sourceFolder url="file://$MODULE_DIR$/src/test" isTestSource="true" packagePrefix="test" /> </content> <orderEntry type="inheritedJdk" /> <orderEntry type="sourceFolder" forTests="false" /> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <chr...@us...> - 2007-06-07 19:40:28
|
Revision: 360 http://svn.sourceforge.net/japi/?rev=360&view=rev Author: christianhujer Date: 2007-06-07 12:40:27 -0700 (Thu, 07 Jun 2007) Log Message: ----------- Updated copyright and libraries in IntelliJ IDEA module. Modified Paths: -------------- tools/findLongestPath/trunk/findLongestPath.iml Modified: tools/findLongestPath/trunk/findLongestPath.iml =================================================================== --- tools/findLongestPath/trunk/findLongestPath.iml 2007-06-07 19:40:04 UTC (rev 359) +++ tools/findLongestPath/trunk/findLongestPath.iml 2007-06-07 19:40:27 UTC (rev 360) @@ -8,11 +8,30 @@ </content> <orderEntry type="inheritedJdk" /> <orderEntry type="sourceFolder" forTests="false" /> + <orderEntry type="module-library"> + <library> + <CLASSES> + <root url="jar://$MODULE_DIR$/common/lib/junit.jar!/" /> + </CLASSES> + <JAVADOC /> + <SOURCES /> + </library> + </orderEntry> + <orderEntry type="module-library"> + <library> + <CLASSES> + <root url="jar://$MODULE_DIR$/common/lib/annotations.jar!/" /> + </CLASSES> + <JAVADOC /> + <SOURCES /> + </library> + </orderEntry> + <orderEntry type="module" module-name="libs-argparser" /> <orderEntryProperties /> </component> <component name="copyright"> <Base> - <setting name="state" value="1" /> + <setting name="state" value="0" /> </Base> <LanguageOptions name="$TEMPLATE$"> <option name="templateOptions"> @@ -27,7 +46,7 @@ <option name="filler" value=" " /> </value> </option> - <option name="notice" value="Copyright (c) &#36;today.year, Your Corporation. All Rights Reserved." /> + <option name="notice" value="FindLongestPath recursively finds the longest pathname in directories. Copyright (C) &#36;today.year 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA." /> <option name="keyword" value="Copyright" /> <option name="fileTypeOverride" value="4" /> <option name="relativeBefore" value="true" /> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <chr...@us...> - 2007-06-07 19:40:05
|
Revision: 359 http://svn.sourceforge.net/japi/?rev=359&view=rev Author: christianhujer Date: 2007-06-07 12:40:04 -0700 (Thu, 07 Jun 2007) Log Message: ----------- Added main class. Added Paths: ----------- tools/findLongestPath/trunk/src/net/sf/japi/findLongestPath/FindLongestPath.java Added: tools/findLongestPath/trunk/src/net/sf/japi/findLongestPath/FindLongestPath.java =================================================================== --- tools/findLongestPath/trunk/src/net/sf/japi/findLongestPath/FindLongestPath.java (rev 0) +++ tools/findLongestPath/trunk/src/net/sf/japi/findLongestPath/FindLongestPath.java 2007-06-07 19:40:04 UTC (rev 359) @@ -0,0 +1,95 @@ +/* + * FindLongestPath recursively finds the longest pathname in directories. + * Copyright (C) 2007 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., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + */ + +package net.sf.japi.findLongestPath; + +import net.sf.japi.io.args.BasicCommand; +import net.sf.japi.io.args.ArgParser; +import net.sf.japi.io.args.Option; +import org.jetbrains.annotations.NotNull; +import java.util.List; +import java.io.File; + +/** Program that finds the longest path name. + * @author <a href="mailto:ch...@ri...">Christian Hujer</a> + */ +public class FindLongestPath extends BasicCommand { + + /** Runs the program. + * @param args Command line arguments. + */ + public static void main(final String... args) { + ArgParser.simpleParseAndRun(new FindLongestPath(), args); + } + + private String maxPathname; + + private int maxLength; + + private boolean absolute; + + public FindLongestPath() { + reset(); + } + + public void reset() { + maxPathname = ""; + maxLength = 0; + } + + /** {@inheritDoc} */ + @SuppressWarnings({"InstanceMethodNamingConvention"}) + public int run(@NotNull List<String> args) throws Exception { + if (args.size() == 0) { + find("."); + System.out.println(this); + } else { + for (final String arg : args) { + find(arg); + System.out.println(this); + reset(); + } + } + return 0; + } + + @Option({"a", "absolute"}) + public void setAbsolute(final boolean absolute) { + this.absolute = absolute; + } + + private void find(final String pathname) { + find(new File(pathname)); + } + + private void find(final File path) { + final String pathname = absolute ? path.getAbsolutePath() : path.getPath(); + final int length = pathname.length(); + if (length > maxLength) { + maxLength = length; + maxPathname = pathname; + } + } + + /** {@inheritDoc} */ + public String toString() { + return maxPathname + ":" + maxLength; + } + +} // class FindLongestPath Property changes on: tools/findLongestPath/trunk/src/net/sf/japi/findLongestPath/FindLongestPath.java ___________________________________________________________________ Name: svn:mime-type + text/plain Name: svn:eol-style + LF This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |