mocklib-checkins Mailing List for mocklib (Page 7)
Brought to you by:
bittwidler,
fastdragon
You can subscribe to this list here.
2005 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(6) |
Jul
(1) |
Aug
(5) |
Sep
(3) |
Oct
|
Nov
|
Dec
(46) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2006 |
Jan
(54) |
Feb
(120) |
Mar
(31) |
Apr
(11) |
May
(8) |
Jun
(5) |
Jul
|
Aug
(22) |
Sep
(295) |
Oct
(6) |
Nov
(10) |
Dec
|
2007 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(9) |
Jun
|
Jul
(2) |
Aug
(2) |
Sep
|
Oct
|
Nov
(2) |
Dec
(8) |
2008 |
Jan
|
Feb
(1) |
Mar
|
Apr
(8) |
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(2) |
Nov
|
Dec
|
2009 |
Jan
|
Feb
(17) |
Mar
|
Apr
|
May
(3) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Nobody <fas...@us...> - 2006-09-12 01:21:12
|
Update of /cvsroot/mocklib/gwtmocklib/input/javasrc/com/google/gwt/sample/dynatable In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv23230/input/javasrc/com/google/gwt/sample/dynatable Added Files: DynaTable.gwt.xml COPYING Log Message: first commit of gwtmocklib module. --- NEW FILE: COPYING --- 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 --- NEW FILE: DynaTable.gwt.xml --- <module> <!-- Inherit the core Web Toolkit stuff. --> <inherits name='com.google.gwt.user.User'/> <!-- Specify the app entry point class. --> <entry-point class='com.google.gwt.sample.dynatable.client.DynaTable'/> <servlet path='/gwtrpc/calendar' class='com.google.gwt.sample.dynatable.server.SchoolCalendarServiceImpl'/> </module> |
From: Nobody <fas...@us...> - 2006-09-12 01:21:12
|
Update of /cvsroot/mocklib/gwtmocklib/tools/findbugs/plugin In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv23230/tools/findbugs/plugin Added Files: coreplugin.jar Log Message: first commit of gwtmocklib module. --- NEW FILE: coreplugin.jar --- (This appears to be a binary file; contents omitted.) |
From: Nobody <fas...@us...> - 2006-09-12 01:21:12
|
Update of /cvsroot/mocklib/gwtmocklib/input/schemas In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv23230/input/schemas Added Files: README.txt Log Message: first commit of gwtmocklib module. --- NEW FILE: README.txt --- This is where all the xsd's go if you are using schemas. |
From: Nobody <fas...@us...> - 2006-09-12 01:21:12
|
Update of /cvsroot/mocklib/gwtmocklib/input/libinclude In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv23230/input/libinclude Added Files: README.txt gwt-user.jar Log Message: first commit of gwtmocklib module. --- NEW FILE: gwt-user.jar --- (This appears to be a binary file; contents omitted.) --- NEW FILE: README.txt --- This folder is where jars go that 1. Are needed for the application to run. 2. need to be packaged with the application For normal applications, jars in this directory will be delivered along with your jar to output/jardist directory For web applications, jars in this directory will be put in the war file. For osgi bundles, jars in this diretory will be put in the osgi bundle Examples of jars that don't belong in this directory are junit.jar, mocklib.jar, osgi's framework.jar, servlet.jar, etc. etc. |
From: Nobody <fas...@us...> - 2006-09-12 01:21:11
|
Update of /cvsroot/mocklib/gwtmocklib/tools/ant-junit In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv23230/tools/ant-junit Added Files: README.txt ant-junit.jar junit.jar Log Message: first commit of gwtmocklib module. --- NEW FILE: junit.jar --- (This appears to be a binary file; contents omitted.) --- NEW FILE: ant-junit.jar --- (This appears to be a binary file; contents omitted.) --- NEW FILE: README.txt --- Why put ant optional tasks here. Well first read the FAQ at ant.apache.org http://ant.apache.org/faq.html#delegating-classloader. I am following option 2. If I don't, I have to put junit.jar in two places tools/ant/lib with the ant-junit task AND input/lib for application developers to use the junit.jar Instead, I separate out the ant-junit.jar and put it in the tools/ant-optional folder. Then I taskdef junit against the ant-junit.jar with junit in it's classpath which I put in input/lib/tools If anyone has a better suggestion, I am all ears as this is not the optimal solution I think. nonetheless, it works for now. Also, junit.jar is a special version of junit. It is 3.8.1 plus a change that Kent Beck made for me. IT should be checked into cvs though the change he checked in was not mine and broke junit very badly. I have to request a fix from him. The break was every test passing no matter what. thanks, dean |
From: Nobody <fas...@us...> - 2006-09-12 01:21:11
|
Update of /cvsroot/mocklib/gwtmocklib/input/native In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv23230/input/native Added Files: README.txt Log Message: first commit of gwtmocklib module. --- NEW FILE: README.txt --- This is the directory where Makefile should be put. If a Makefile exists it will be called. |
From: Nobody <fas...@us...> - 2006-09-12 01:21:11
|
Update of /cvsroot/mocklib/gwtmocklib/bldfiles In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv23230/bldfiles Added Files: directory.properties build.xml ant.properties design.xml Log Message: first commit of gwtmocklib module. --- NEW FILE: design.xml --- <design> <!-- See the documentation of the ant-contrib project to fill in the package design here ant-contrib is at http://sourceforge.net/projects/ant-contrib. Currently, this template is using a version from the CVS head, and the docs are up to date on the CVS head, but not in the latest download yet as I have not asked for a new release on ant-contrib yet(wanted to finish a few more things), but this is stable and works. I just want to add one more feature--> <!-- DO NOT MODIFY THE NEXT LINES --> <package name="manifest" package="biz.xsoftware.manifest" needdeclarations="true" subpackages="include" needdepends="false"/> <package name="junit" package="junit" subpackages="include" needdeclarations="false"/> <package name="mocklib" package="biz.xsoftware.mock" subpackages="include" needdeclarations="false"/> <!-- should erase the following... --> <package name="biz" package="biz" subpackages="include" needdepends="false"/> <package name="com" package="com" subpackages="include" needdepends="false"/> <package name="org" package="org" subpackages="include" needdepends="false"/> <package name="net" package="net" subpackages="include" needdepends="false"/> <!-- should use something like this instead on a per project basis --> <package name="api" package="biz.xsoftware.api" subpackages="include"/> <package name="testapi" package="biz.xsoftware.test" subpackages="include" depends="api"/> <package name="impl" package="biz.xsoftware.impl" subpackages="include" depends="api"/> </design> --- NEW FILE: ant.properties --- #----------------------------------------------------------------------- # MANIFEST and JAR properties - Make sure you change these to your settings. #----------------------------------------------------------------------- name =gwtrpc #used as the jar file name(ie. ${name}.jar) #used as zip file name(ie. ${name}-version.jar) #used as the directory staging name #version info may be retrieved using java -jar ${name}.jar -version webapp.enabled =true #if set to true, will build a war file with all jar files in input/libinclude #and will also contain all files from input/webroot #and will also contain all the classes from input/javasrc osgi.enabled =false #if set to true, will build an osgi jar file with all the jar files from #input/libinclude and all the classes from input/javasrc imports =[bundle.emptystring] exports =[bundle.emptystring] impl.pattern =biz/**,com/**,net/** #The packages to make private build.source=5 manifest.mainclass = TOOLS.JAVA.Main #The class that is run when java -jar xxxx.jar is run manifest.title = Ant Build Template manifest.vendor = http://sourceforge.net/projects/vmaster manifest.builder = Dean Hiller manifest.description = Put a project description in bldfiles/ant.properties manifest.icon = copyright = Copyright © 2000 Dean Hiller All Rights Reserved. javadoc.title = Build Template javadoc.bottom = If you would like a shared copyright, contact me at dea...@us...<br> \ <a href=http://sourceforge.net> \ <IMG src=http://sourceforge.net/sflogo.php?group_id=113040 width=210 height=62 border=0 alt=SourceForge Logo> \ </a> #----------------------------------------------------------------------- # Properties to run the program using the "run" target in build.xml(ie. build run) # Just try ./build run to execute org.NO.MAIN.YET below(of course, that class # doesn't exist, so I would suggest changing that. #----------------------------------------------------------------------- client.to.run = org.NO.MAIN.YET #Class run when "build run" target is used client.args = #params to the java app for the run target to run the application client.jvm.args = -enableassertions #params to the JVM for the run target to run the application ########################################################### # If you need JNI header files, uncomment the following property # and put the classes that need to generate header files # in this property(a comma delimted list) ########################################################## # #javah.classes=com.avaya.example.callinfo.mci.MCI # ########################################################### #If you need to use castor set 'xsd.start' to the name #of your main xsd file, and uncomment the line ########################################################## # #xsd.start=yourName.xsd # --- NEW FILE: build.xml --- <?xml version="1.0"?> <!-- Run "ant -projecthelp" to view all the possible targets and descriptions. --> <project name="std_buildfile" default="all" basedir=".."> <!-- Now allow any of the properties to be overridden --> <property file="${user.home}/ant.properties" /> <property file="bldfiles/ant.properties" /> <property file="bldfiles/directory.properties" /> <available property="makeExists" file="${native}/Makefile" /> <!--convert the lib file separators to this file system for later use in pathconvert to put together the manifest file --> <!--we can't do this if there are tool jars in the lib as we don't want tool jars in the manifest classpath???? or do we? --> <property name="full.lib.path" location="${lib}" /> <property name="jar.name" value="${name}.jar" /> <description> This is a generic build file template. All the customizable properties are in ant.properties file. All the directories used by this template are in directory.properties file. </description> <!-- *********************************************************************** TASK DEFINITIONS *********************************************************************** --> <property name="junit.location" location="${tool.dir}/ant-junit" /> <path id="junit.lib"> <pathelement path="${junit.location}/ant-junit.jar" /> <pathelement path="${junit.location}/junit.jar" /> </path> <property name="antcontrib.location" location="${tool.dir}/ant-contrib" /> <path id="antcontrib.lib"> <fileset dir="${antcontrib.location}"> <include name="**/*.jar" /> </fileset> </path> <!-- directory that contains emma.jar and emma_ant.jar: --> <property name="emma.dir" value="${tool.dir}/emma" /> <path id="emma.lib"> <fileset dir="${emma.dir}"> <include name="**/*.jar" /> </fileset> </path> <property name="findbugs.dir" value="${tool.dir}/findbugs" /> <path id="findbugs.lib"> <fileset dir="${findbugs.dir}/lib"> <include name="**/*.jar" /> </fileset> </path> <property name="checkstyle.dir" value="${tool.dir}/checkstyle" /> <property name="osgi.location" location="${tool.dir}/ant-osgi" /> <path id="osgi.ant.lib"> <fileset dir="${osgi.location}"> <include name="**/*.jar" /> </fileset> </path> <!-- *********************************************************************** PATH DEFINITIONS *********************************************************************** --> <path id="lib.include"> <fileset dir="${lib}"> <include name="**/*.jar" /> </fileset> </path> <!-- all Third Party jars and tool jars this module needs to compile --> <path id="lib.jars"> <path refid="lib.include" /> <fileset dir="${libexclude}"> <include name="**/*.jar" /> </fileset> </path> <!-- must keep junit jars separate for ease of creating classpath in manifest --> <path id="tool.and.lib"> <path refid="lib.jars" /> <fileset dir="${junit.location}"> <include name="**/*.jar" /> </fileset> </path> <path id="gwt"> <fileset dir="tools/gwt"> <include name="**/*.jar" /> </fileset> </path> <path id="classes.classpath"> <pathelement location="${build}" /> </path> <path id="testall.classpath"> <fileset dir="${codecov.jar}" includes="**/*.jar" /> <!--pathelement location="${codecov.temp}"/--> <path refid="tool.and.lib" /> <path refid="classes.classpath" /> </path> <!-- *********************************************************************** INIT TASKS *********************************************************************** --> <target name="taskdefs"> <tstamp> <format property="manifest.date" pattern="EE MMMM d yyyy, HH:mm:ss" locale="en" /> </tstamp> <!-- Override this property to build official release --> <property name="version" value="0.0.0" /> <echo message="***************************USING THIS ANT************************" /> <echo message="ant.home=${ant.home}" /> <echo message="*****************************************************************" /> <!--Just a convenient pathconvert to debug paths above by converting to string and printing --> <pathconvert dirsep="/" pathsep=" " property="temp.somepath" refid="junit.lib" setonempty="true" /> <echo message="junit.lib=${temp.somepath}" /> <taskdef name="junit" classname="org.apache.tools.ant.taskdefs.optional.junit.JUnitTask" classpathref="junit.lib" /> <taskdef resource="net/sf/antcontrib/antlib.xml" classpathref="antcontrib.lib" /> <taskdef resource="emma_ant.properties" classpathref="emma.lib" /> <taskdef name="findbugs" classname="edu.umd.cs.findbugs.anttask.FindBugsTask" classpathref="findbugs.lib" /> <!-- for some reason, I can't use resource="checkstyletask.properties" as it fails here--> <taskdef name="checkstyle" classname="com.puppycrawl.tools.checkstyle.CheckStyleTask"> <classpath> <fileset dir="${checkstyle.dir}"> <include name="**/*.jar" /> </fileset> </classpath> </taskdef> <taskdef name="bundleinfo" classname="org.knopflerfish.ant.taskdefs.bundle.BundleInfoTask" classpathref="osgi.ant.lib" /> <taskdef name="bundlemanifest" classname="org.knopflerfish.ant.taskdefs.bundle.BundleManifestTask" classpathref="osgi.ant.lib" /> <taskdef name="bundlehtml" classname="org.knopflerfish.ant.taskdefs.bundle.BundleHTMLExtractorTask" classpathref="osgi.ant.lib" /> <taskdef name="bundleobr" classname="org.knopflerfish.ant.taskdefs.bundle.OBRExtractorTask" classpathref="osgi.ant.lib" /> </target> <!-- *********************************************************************** BEGIN TARGETS *********************************************************************** --> <!-- Just creates the input directories this build file uses if they are not already created --> <target name="create-src" depends="taskdefs"> <mkdir dir="${javacode}" /> <mkdir dir="${lib}" /> <mkdir dir="${libexclude}" /> <mkdir dir="${native}" /> <mkdir dir="${schemas}" /> <mkdir dir="${jardist}" /> <!-- classpath for the jars needed to run application Used in testall, test, and run targets--> <path id="classpath.application"> <fileset dir="${jardist}"> <include name="**/*.jar" /> </fileset> <pathelement path="${jardist}" /> </path> </target> <!-- *********************************************************************** COMPILE TARGET *********************************************************************** --> <target name="compile" depends="create-src"> <mkdir dir="${build}" /> <pathconvert property="compile.classpath" pathsep=":"> <path refid="tool.and.lib" /> </pathconvert> <echo message="Compiling files in ${javacode}" /> <echo message="Putting the class files in ${build}" /> <echo message="classpath=${compile.classpath}" /> <!-- Compile the java code from ${javacode} into ${build} --> <javac srcdir="${javacode}" destdir="${build}" deprecation="yes" debug="on"> <classpath> <path refid="tool.and.lib" /> </classpath> </javac> <property name="gwt.module" value="com.google.gwt.sample.dynatable.DynaTable"/> <!-- compile java to javascript here --> <java failonerror="true" classname="com.google.gwt.dev.GWTCompiler" fork="true"> <classpath> <pathelement path="${javacode}" /> <path refid="gwt" /> </classpath> <arg value="-out" /> <arg value="output/gwt" /> <arg value="${gwt.module}" /> </java> <!-- copy all misc. files over(config.jaas, etc.) from the ${javacode} directory--> <!-- Will not copy over *.jpg, *.gif, *.html for here(those are for javadoc)--> <copy todir="${build}"> <fileset dir="${javacode}"> <exclude name="**/*.java" /> <exclude name="**/*.htm" /> <exclude name="**/*.html" /> <exclude name="**/doc_*.jpg" /> <exclude name="**/doc_*.gif" /> <exclude name="**/*.bak" /> <exclude name="**/*~" /> <exclude name="**/vssver*.*" /> <exclude name="**/.nbattrs" /> </fileset> </copy> <!-- convert any asian languages from UTF-8 to ascii so they can be used--> <native2ascii encoding="UTF-8" src="${javacode}" dest="${build}" includes="**/*.utf8-properties" ext=".properties" /> <!--check for rmi stubs so if there are we will do the next target--> <fileset dir="${build}" id="rmi.fileset"> <include name="**/RMI*.class" /> </fileset> <pathconvert pathsep="\r\n" property="have.rmi.files" refid="rmi.fileset" setonempty="false" /> </target> <!-- *********************************************************************** GWT SHELL *********************************************************************** --> <target name="gwtShell" depends="compile"> <echo message="HELLLLLLO"/> <java failonerror="true" classname="com.google.gwt.dev.GWTShell" fork="true"> <classpath> <pathelement path="${javacode}" /> <pathelement path="${build}"/> <path refid="gwt" /> </classpath> <arg value="-out" /> <arg value="output/gwt" /> <arg value="${gwt.module}/index.html" /> </java> </target> <!-- *********************************************************************** RMI TARGET - This target is automatically skipped if there are no RMI files *********************************************************************** --> <target name="rmi-stubs" depends="compile" if="have.rmi.files"> <echo message="******************RMI FILES TO COMPILE********************" /> <echo message="rmifiles=${have.rmi.files}" /> <echo message="**********************************************************" /> <mkdir dir="${rmi.stubs}" /> <rmic base="${build}" includes="**\RMI*.class" debug="yes"> <classpath> <pathelement path="${build}" /> <fileset dir="${lib}"> <include name="**/*.jar" /> </fileset> </classpath> </rmic> <copy todir="${rmi.stubs}"> <fileset dir="${build}" includes="**\Remote*.class" /> <fileset dir="${build}" includes="**\*_Stub.class" /> <fileset dir="${build}" includes="**\*_Skel.class" /> </copy> </target> <!-- *********************************************************************** OSGI specific stuff *********************************************************************** --> <target name="key1" if="exports" depends="compile"> <property name="export" value="Export-Package" /> </target> <target name="key2" unless="exports" depends="key1"> <property name="export" value="No-Export-Package" /> </target> <!-- *********************************************************************** MANIFEST TARGET *********************************************************************** --> <target name="manifest" depends="key2"> <mkdir dir="${manifest}" /> <!-- convert cvs tag to osgi compatible version number --> <propertyregex property="tmp10" input="${version}" regexp="-" replace="." defaultValue="${version}" /> <propertyregex property="realVersion" input="${tmp10}" regexp="r" replace="" defaultValue="${version}" /> <echo message="v=${realVersion}" /> <property name="bundle.uuid" value="biz.xsoftware:${name}:${version}:all" /> <property name="ee.check.foundation" value="false" /> <property name="bundle.emptystring" value="[bundle.emptystring]" /> <!--generate classpath to add to manifest using all jars in lib and main jar--> <pathconvert dirsep="/" pathsep="," property="manifest.classpath" refid="lib.include" setonempty="true"> <!--The map takes away the beginning of the path just leaving the jar file name --> <map from="${full.lib.path}${file.separator}" to="" /> </pathconvert> <property name="bundle.classpath" value=".,${manifest.classpath}" /> <echo message="bundle.classpath=${bundle.classpath}" /> <!-- the following is for osgi pojo's. You don't need to depend on osgi to use it, but the manifest has to have some entries!!! --> <bundleinfo exports="export.package" checkFoundationEE="${ee.check.foundation}"> <fileset dir="${build}" includes="${api.pattern}" /> </bundleinfo> <bundleinfo activator="bundle.activator" imports="import.package" stdimports="${ignore.imports}" checkFoundationEE="${ee.check.foundation}"> <fileset dir="${build}" includes="${impl.pattern}" /> </bundleinfo> <echo message="export=${export}" /> <bundlemanifest file="${manifest}/MANIFEST.MF"> <attribute name="Bundle-Name" value="${name}" /> <attribute name="Bundle-SymbolicName" value="${name}" /> <attribute name="Bundle-Version" value="${realVersion}" /> <attribute name="Bundle-Description" value="${manifest.description}" /> <attribute name="Bundle-Vendor" value="${manifest.vendor}" /> <attribute name="Bundle-DocURL" value="${manifest.vendor}" /> <attribute name="Bundle-ContactAddress" value="${manifest.vendor}" /> <attribute name="Service-Component" value="descriptors/metadata.xml" /> <attribute name="Bundle-Category" value="${bundle.emptystring}" /> <attribute name="Bundle-Config" value="${bundle.emptystring}" /> <attribute name="Bundle-Classpath" value="${bundle.classpath}" /> <attribute name="Export-Service" value="${bundle.emptystring}" /> <attribute name="Import-Service" value="${bundle.emptystring}" /> <attribute name="${export}" value="${exports}" /> <attribute name="Import-Package" value="${imports}" /> <attribute name="Bundle-UUID" value="${bundle.uuid}" /> <attribute name="Built-From" value="${manifest.builder}" /> <attribute name="Build-Date" value="${manifest.date}" /> <attribute name="Application-Icon" value="${manifest.icon}" /> <attribute name="Bundle-SubversionURL" value="${manifest.vendor}" /> <attribute name="Bundle-APIVendor" value="${manifest.vendor}" /> <attribute name="Built-By" value="${manifest.builder}" /> <!--can't do this with osgi, nor war files probably --> <!--attribute name="Main-Class" value="biz.xsoftware.manifest.ManifestInfo"/--> <attribute name="Class-Path" value="${manifest.classpath}" /> <!-- <attribute name="Specification-Title" value="${spec.title}"/> <attribute name="Specification-Version" value="${spec.version}"/> <attribute name="Specification-Vendor" value="${spec.vendor}"/> --> <attribute name="Implementation-Title" value="${manifest.title}" /> <attribute name="Implementation-Version" value="${version} ${TODAY}" /> <attribute name="Implementation-Vendor" value="${manifest.vendor}" /> <!-- non-standard manifest attributes --> <attribute name="SubMain-Class" value="${manifest.mainclass}" /> <attribute name="JarVersion" value="${version} ${TODAY}" /> <!-- <section name="common/class1.class"> <attribute name="Sealed" value="false"/> </section> --> </bundlemanifest> </target> <target name="copyForJar" depends="manifest"> <echo message="osgi.enabled=${osgi.enabled}" /> <echo message="webapp.enabled=${webapp.enabled}" /> <if> <ispropertytrue property="osgi.enabled" /> <then> <!-- copy all jars that need to be in this osgi bundle jar into the directory that will be jarred up--> <copy todir="${build}"> <fileset dir="${lib}" includes="**" /> </copy> </then> <elseif> <ispropertytrue property="webapp.enabled" /> <then> <property name="run.war.target" value="true" /> </then> </elseif> <else> <!-- Also, copy over all needed jars from ${lib} to ${jardist} --> <copy todir="${jardist}"> <fileset dir="${lib}" includes="**" /> </copy> </else> </if> </target> <!-- *********************************************************************** JAR TARGET *********************************************************************** --> <target name="jar" depends="copyForJar, make" description="Builds a jar file"> <!-- Create the distribution directory --> <mkdir dir="${jardist}" /> <!-- Put all implementation classes from ${build} into the jar file --> <jar jarfile="${jardist}/${jar.name}" basedir="${build}" manifest="${manifest}/MANIFEST.MF" /> <verifydesign jar="${jardist}/${jar.name}" design="bldfiles/design.xml" /> </target> <!-- *********************************************************************** WAR TARGET *********************************************************************** --> <target name="war" depends="jar" if="run.war.target" description="Builds a war file"> <mkdir dir="${wardist}" /> <war destfile="${wardist}/${name}.war" webxml="${webroot}/WEB-INF/web.xml"> <lib dir="${lib}"> <include name="**/*.jar" /> </lib> <classes dir="${build}" /> <fileset dir="${webroot}" /> <fileset dir="output/gwt/${gwt.module}"/> </war> </target> <!-- ================================================================================ Creates the distribution ================================================================================ --> <target name="createdist" depends="war"> <mkdir dir="${dist}" /> <mkdir dir="${staging}" /> </target> <!-- *********************************************************************** START APPLICATION TARGET *********************************************************************** --> <target name="run" depends="war"> <pathconvert property="application.classpath" pathsep=":"> <path refid="classpath.application" /> </pathconvert> <echo message="Forking of the program...${client.to.run}" /> <echo message="classpath=${application.classpath}" /> <echo message="codebase=${basedir}\${rmi.stubs}" /> <echo message="jvmargs=${client.jvm.args}" /> <echo message="program args=${client.args}" /> <java classname="${client.to.run}" fork="yes" dir="."> <jvmarg line="${client.jvm.args}" /> <arg line="${client.args}" /> <classpath> <path refid="classpath.application" /> </classpath> </java> </target> <!-- *********************************************************************** INSTRUMENTATION TARGET *********************************************************************** --> <target name="instrumentation" depends="war"> <property name="emma.enabled" value="true" /> <mkdir dir="${codecov.temp}" /> <mkdir dir="${codecov.classes}" /> <mkdir dir="${codecov.jar}" /> <mkdir dir="${codecov.report}" /> <pathconvert property="instr.classpath" pathsep=":"> <path refid="classes.classpath" /> </pathconvert> <echo message="instr.classpath=${instr.classpath}" /> <emma enabled="${emma.enabled}"> <instr instrpathref="classes.classpath" destdir="${codecov.classes}" metadatafile="${codecov.temp}/metadata.emma" merge="true" /> </emma> <jar destfile="${codecov.jar}/${name}-instrumented.jar" duplicate="preserve" manifest="${manifest}/MANIFEST.MF"> <fileset dir="${codecov.classes}" includes="**" /> <fileset dir="${build}" includes="**" /> </jar> </target> <!-- *********************************************************************** TEST TARGET *********************************************************************** --> <target name="test" depends="createdist"> <input message="Input test class name. (ie. org.awt.TestEdgeLayout):" addproperty="test" /> <echo message="looking for file named ${test}" /> <available classname="${test}" property="test.exists"> <classpath> <path refid="classpath.application" /> </classpath> </available> <echo message="value=${test.exists}" /> <pathconvert property="search.classpath" pathsep=":"> <path refid="classpath.application" /> </pathconvert> <fail unless="test.exists"> The test case '${test}.class' cannot be found in the classpath. Check all files in the classpath and make sure the appropriate class file exists. The classpath is=${search.classpath} </fail> <mkdir dir="${junit.results}" /> <pathconvert property="junit.classpath" pathsep=":"> <path refid="classpath.application" /> </pathconvert> <echo message="About to run JUnit test(${test})..." /> <echo message="current directory=${basedir}" /> <echo message="classpath=${junit.classpath}" /> <junit fork="yes" haltonfailure="yes" dir="${basedir}"> <classpath> <path refid="classpath.application" /> </classpath> <jvmarg value="-Djar.name=${jardist}/${jar.name}" /> <jvmarg value="-Dversion=${version}" /> <formatter type="plain" usefile="false" /> <formatter type="xml" /> <test name="${test}" todir="${junit.results}" /> </junit> </target> <!-- *********************************************************************** TEST ALL TARGET *********************************************************************** --> <target name="testall" depends="instrumentation" description="Run ALL junit and abbot tests after compiling code"> <mkdir dir="${junit.results}" /> <pathconvert property="junit.classpath" pathsep=":"> <path refid="classpath.application" /> </pathconvert> <echo message="About to run JUnit tests..." /> <echo message="pattern1=${junit.pattern1}" /> <echo message="pattern2=${junit.pattern2}" /> <echo message="current directory=${basedir}" /> <echo message="classpath=${junit.classpath}" /> <!-- must be forked for instrumentation to work!!! --> <junit fork="yes" haltonfailure="yes" failureproperty="is.test.fail" dir="${basedir}" printsummary="withOutAndErr"> <classpath> <path refid="testall.classpath" /> <path refid="emma.lib" /> </classpath> <jvmarg value="-Demma.coverage.out.file=${codecov.temp}/coverage.emma" /> <jvmarg value="-Demma.coverage.out.merge=true" /> <jvmarg value="-Djar.name=${jardist}/${jar.name}" /> <jvmarg value="-Dversion=${version}" /> <formatter type="plain" usefile="false" /> <formatter type="xml" /> <batchtest todir="${junit.results}"> <fileset dir="${build}"> <patternset> <include name="biz/xsoftware/manifest/Test*.class" /> <include name="${junit.pattern1}" /> <include name="${junit.pattern2}" /> <exclude name="**/*$$*.class" /> </patternset> </fileset> </batchtest> </junit> <!-- not used because this is good for automated build but bad for developer. Developer doesn't want to look through 100 test cases to see which one is failing. To use this gain haltonfailure above needs to be off--> <!-- after all tests are run, this makes the build fail--> <fail if="is.test.fail" /> <!--autobuilds will not work without this while normal build will because for some reason basedir was not being used property--> <property name="report.tmp" location="${codecov.report}" /> <echo message="report=${report.tmp}" /> <emma enabled="${emma.enabled}"> <report sourcepath="${javacode}:${versioning.src}"> <fileset dir="${codecov.temp}"> <include name="*.emma" /> </fileset> <txt outfile="${report.tmp}/coverage.txt" /> <html outfile="${report.tmp}/index.html" /> </report> </emma> <!--delete dir="${codecov.temp}"/--> </target> <!-- *********************************************************************** FINDBUGS TARGET *********************************************************************** --> <target name="findbugs" depends="war" description="Runs findbugs against the code"> <mkdir dir="${findbugs.report}" /> <findbugs home="${findbugs.dir}" output="html" outputFile="${findbugs.report}/index.html"> <class location="${jardist}/${jar.name}" /> </findbugs> </target> <!-- *********************************************************************** CHECKSTYLE TARGET *********************************************************************** --> <target name="checkstyle" depends="compile" description="Runs checkstyle against the code"> <mkdir dir="${checkstyle.report}" /> <checkstyle config="${checkstyle.dir}/config.xml"> <classpath> <path refid="tool.and.lib" /> <path refid="classes.classpath" /> </classpath> <fileset dir="${javacode}" includes="**/*.java" /> <formatter type="plain" toFile="${checkstyle.report}/index.html" /> </checkstyle> </target> <!-- *********************************************************************** ALL TARGET *********************************************************************** --> <target name="all" depends="war,testall,checkstyle,findbugs,javadoc" description="compiles, runs tests, checkstyle, findbugs, and javadoc"> </target> <!-- *********************************************************************** AUTOBUILD TARGET *********************************************************************** --> <target name="autobuild" depends="clean, all"> <cvs command="tag -R ${label}" failonerror="true" /> </target> <!-- *********************************************************************** JAVAH TARGET - Creates JNI C header files if needed *********************************************************************** --> <target name="javah" depends="compile" if="javah.classes"> <javah class="${javah.classes}" destdir="${native}"> <classpath refid="build.classpath" /> </javah> </target> <!-- *********************************************************************** Runs make on the C++/C code if a Makefile exists in the proper directory *********************************************************************** --> <target name="make" depends="javah" if="makeExists"> <echo message="make in ${native}" /> <exec executable="make" dir="${native}" /> </target> <target name="tomcatTasks"> <fail unless="tomcat.home" message="PLEASE make sure you have a ${user.home}/ant.properties file with the property tomcat.home set" /> <fail unless="tomcat.username" message="PLEASE make sure you have a ${user.home}/ant.properties file with the property tomcat.username set" /> <fail unless="tomcat.password" message="PLEASE make sure you have a ${user.home}/ant.properties file with the property tomcat.password set" /> <fail unless="tomcat.url" message="PLEASE make sure you have a ${user.home}/ant.properties file with the property tomcat.url set" /> <property name="tomcat.manager.url" value="${tomcat.url}/manager" /> <path id="tomcat.classpath"> <fileset dir="${tomcat.home}/server/lib/"> <include name="catalina-ant.jar" /> </fileset> </path> <!--Just a convenient pathconvert to debug paths above by converting to string and printing --> <pathconvert dirsep="/" pathsep=" " property="temp.tomcat" refid="tomcat.classpath" setonempty="true" /> <echo message="tomcat ant task jars=${temp.tomcat}" /> <taskdef resource="org/apache/catalina/ant/antlib.xml" classpathref="tomcat.classpath" /> </target> <target name="deploy" description="Install application in Tomcat" depends="tomcatTasks, war"> <deploy url="${tomcat.manager.url}" username="${tomcat.username}" password="${tomcat.password}" path="/${name}" war="${wardist}/${name}.war" /> </target> <target name="undeploy" description="Remove application in Tomcat" depends="tomcatTasks"> <undeploy url="${tomcat.manager.url}" username="${tomcat.username}" password="${tomcat.password}" path="/${name}" /> </target> <target name="redeploy" description="Reload application in Tomcat" depends="war, undeploy, deploy"> </target> <target name="start" description="Start Tomcat application" depends="tomcatTasks"> <start url="${tomcat.manager.url}" username="${tomcat.username}" password="${tomcat.password}" path="/${name}" /> </target> <target name="stop" description="Stop Tomcat application" depends="tomcatTasks"> <stop url="${tomcat.manager.url}" username="${tomcat.username}" password="${tomcat.password}" path="/${name}" /> </target> <target name="tomcatInfo" description="List Tomcat applications" depends="tomcatTasks"> <list url="${tomcat.manager.url}" username="${tomcat.username}" password="${tomcat.password}" /> <roles url="${tomcat.manager.url}" username="${tomcat.username}" password="${tomcat.password}" /> <resources url="${tomcat.manager.url}" username="${tomcat.username}" password="${tomcat.password}" /> <sessions url="${tomcat.manager.url}" username="${tomcat.username}" password="${tomcat.password}" path="/${name}" /> </target> <!-- *********************************************************************** JAVADOC TARGET *********************************************************************** --> <target name="javadoc" description="Generate JavaDoc"> <mkdir dir="${javadoc}" /> <!-- copy all package.html files, img's etc for javadoc --> <copy todir="${javadoc}"> <fileset dir="${javacode}" excludes="**/*.java" /> </copy> <echo message="package lists in=${package.list}" /> <javadoc sourcepath="${javacode}" destdir="${javadoc}" author="true" version="true" use="true" public="yes" overview="${javacode}/overview.html" windowtitle="${javadoc.title} ${version}" doctitle="${javadoc.title} ${version}" Verbose="true"> <!-- classpath needed to link up to third_party libs without 100's of warnings --> <classpath> <path refid="tool.and.lib" /> </classpath> <fileset dir="${javacode}"> <include name="${javadoc.pattern}" /> </fileset> <doctitle> <![CDATA[<h1>${javadoc.title} ${version}</h1>]]></doctitle> <bottom> <![CDATA[<i>${copyright}</i> <br>${javadoc.bottom}]]></bottom> <link offline="true" href="http://java.sun.com/j2se/1.4.2/docs/api" packagelistLoc="${package.list}/jdk" /> <link offline="true" href="http://www.junit.org/junit/javadoc/3.8.1" packagelistLoc="${package.list}/junit" /> </javadoc> </target> <!-- *********************************************************************** CLEAN TARGET *********************************************************************** --> <target name="clean" depends="create-src" description="Clean all generated files"> <!-- Delete everything in the ${generated} directory tree --> <delete dir="${generated}" /> </target> </project> --- NEW FILE: directory.properties --- #---------------------------------------------------------------------- #DO NOT MAKE CHANGES TO THIS FILE, this file is overwriten #every time build is run. To personalize make changes to #ant.properties, dependencies.xml, and #release.xml. All which are in the [basedir]/bldfiles directory #---------------------------------------------------------------------- #----------------------------------------------------------------------- # OUTPUT DIRECTORIES #----------------------------------------------------------------------- generated =output manifest =${generated}/manifest #will contain a generated manifest build =${generated}/classes #will contain all the *.class files after compile #will contain all the *.jpg files from ${properties} #will contain all the *.properties files from ${properties} #will contain all the *.gif files from ${properties} #will contain all the *.html files from ${properties} #will contain all the *.* files from ${properties} #will NOT contain *.html, *.htm, *.jpg, *.gif from ${javacode} jardist =${generated}/jardist #will contain a *.jar containing everything in ${build} wardist =${generated}/wardist #will contain a *.war containing everything in ${build} and ${webroot} dist =${generated}/dist #contains the release that gets released to the world reports =${generated}/reports codecov.report =${reports}/codecoverage #contains the code coverage reports of what the unit tests #covered findbugs.report =${reports}/findbugs checkstyle.report=${reports}/checkstyle javadoc =${reports}/javadoc #contains the javadoc of biz.xsoftware.api allcodecov =${generated}/codecoverage codecov.temp =${allcodecov}/misc codecov.classes =${allcodecov}/instrumented-classes #intermediate directory that contains instrumented classes to #run testall against so a code coverage report can be spit out. codecov.jar =${allcodecov}/instrumented-jar junit.results =${generated}/test_results #contains junit test results staging =${generated}/staging projstaging =${generated}/staging/${name} #will contain all *.html generated by javadoc #will contain all *.html from ${javacode} directory(such as package.html) #will contain all *.jpg from ${javacode} directory #will contain all *.gif from ${javacode} directory rmi.stubs =${generated}/rmistubs #contains all Remote*.class files copied from ${build} #contains all *_stub.class files copied from ${build} #contains all *_skel.class files copied from ${build} #this directory is only created if RMI*.class exists test.area =${generated}/tests #This is sometimes created by JUnit tests to do temporary #testing. It usually gets deleted afterwards. gen.src =${generated}/src #generated source code #----------------------------------------------------------------------- # INPUT DIRECTORIES - don't change these after the project is started. #----------------------------------------------------------------------- input =input #contains all stuff that is an input into the build config =bldfiles #contains build.xml for the module, and any other build scripts #plus build property files javacode =${input}/javasrc #Contains all *.java source files #Contains all *.properties files that will go into the jar #Contains all *.xml files that will go into the jar #Contains all *.* that will go into the jar except doc_*.gif and doc_*.jpg #Contains all *.html files needed by javadoc #Contains all doc_*.jpg files needed by javadoc #Contains all doc_*.gif files needed by javadoc #Contains all *.* files needed by javadoc webroot =${input}/webroot #Contains all html, jsp, gif, jpg's, WEB-INF/web.xml, WEB-INF/faces-config.xml, etc. etc lib =${input}/libinclude #contains all *.jar needed to run the app and that need to be deployed with the app #does not contain *.jars needed to compile the app(such as junit.jar) libexclude =${input}/libexclude #contains all the *.jar that are not needed to run the app. They are for testing or #would already be deployed as services in the framework as in the case of an osgi logging #service for example native =${input}/native #contains JNI C header file schemas =${input}/schemas #contains xsd schemas #----------------------------------------------------------------------- # MISCELLANEOUS #----------------------------------------------------------------------- junit.pattern1=**/Test*.class #junit.pattern2=**/test/IntegTest*.class javadoc.pattern=**/*.java tool.dir=tools package.list=${tool.dir}/package-list build.sysclasspath=ignore # Change this value and I call you a complete idiot(cp = classpath) # ignore - trust build file to get the cp right # first - concatenate build file cp AFTER build runners cp # last - concatenate build runners cp AFTER build file cp #output = build.log #uncomment this to activate the logging |
From: Nobody <fas...@us...> - 2006-09-12 01:21:11
|
Update of /cvsroot/mocklib/gwtmocklib/tools/checkstyle In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv23230/tools/checkstyle Added Files: config.xml checkstyle-all-4.1.jar Log Message: first commit of gwtmocklib module. --- NEW FILE: config.xml --- <?xml version="1.0"?> <!DOCTYPE module PUBLIC "-//Puppy Crawl//DTD Check Configuration 1.2//EN" "http://www.puppycrawl.com/dtds/configuration_1_2.dtd"> <!-- Checkstyle configuration that checks the sun coding conventions from: - the Java Language Specification at http://java.sun.com/docs/books/jls/second_edition/html/index.html - the Sun Code Conventions at http://java.sun.com/docs/codeconv/ - the Javadoc guidelines at http://java.sun.com/j2se/javadoc/writingdoccomments/index.html - the JDK Api documentation http://java.sun.com/j2se/docs/api/index.html - some best practices Checkstyle is very configurable. Be sure to read the documentation at http://checkstyle.sf.net (or in your downloaded distribution). Most Checks are configurable, be sure to consult the documentation. To completely disable a check, just comment it out or delete it from the file. Finally, it is worth reading the documentation. --> <module name="Checker"> <!-- Checks that a package.html file exists for each package. --> <!-- See http://checkstyle.sf.net/config_javadoc.html#PackageHtml --> <!--module name="PackageHtml"/--> <!-- Checks whether files end with a new line. --> <!-- See http://checkstyle.sf.net/config_misc.html#NewlineAtEndOfFile --> <!--module name="NewlineAtEndOfFile"/--> <!-- Checks that property files contain the same keys. --> <!-- See http://checkstyle.sf.net/config_misc.html#Translation --> <module name="Translation"/> <module name="TreeWalker"> <!-- Checks for Javadoc comments. --> <!-- See http://checkstyle.sf.net/config_javadoc.html --> <!--module name="JavadocMethod"/> <module name="JavadocType"/> <module name="JavadocVariable"/> <module name="JavadocStyle"/--> <!-- Checks for Naming Conventions. --> <!-- See http://checkstyle.sf.net/config_naming.html --> <module name="ConstantName"> <property name="format" value="^[A-Z][A-Z0-9]*(_[A-Z0-9]+)*$|^log$|^apiLog$"/> </module> <module name="LocalFinalVariableName"/> <module name="LocalVariableName"/> <module name="MemberName"/> <module name="MethodName"/> <module name="PackageName"/> <module name="ParameterName"/> <module name="StaticVariableName"/> <module name="TypeName"/> <module name="ParameterAssignment"/> <!-- Checks for Headers --> <!-- See http://checkstyle.sf.net/config_header.html --> <!-- <module name="Header"> --> <!-- The follow property value demonstrates the ability --> <!-- to have access to ANT properties. In this case it uses --> <!-- the ${basedir} property to allow Checkstyle to be run --> <!-- from any directory within a project. See property --> <!-- expansion, --> <!-- http://checkstyle.sf.net/config.html#properties --> <!-- <property --> <!-- name="headerFile" --> <!-- value="${basedir}/java.header"/> --> <!-- </module> --> <!-- Following interprets the header file as regular expressions. --> <!-- <module name="RegexpHeader"/> --> <!-- Checks for imports --> <!-- See http://checkstyle.sf.net/config_import.html --> <module name="AvoidStarImport"/> <module name="IllegalImport"/> <!-- defaults to sun.* packages --> <module name="RedundantImport"/> <module name="UnusedImports"/> <!-- Checks for Size Violations. --> <!-- See http://checkstyle.sf.net/config_sizes.html --> <module name="FileLength"> <property name="max" value="700"/> </module> <module name="LineLength"> <property name="max" value="150"/> </module> <module name="MethodLength"> <property name="max" value="75"/> </module> <module name="ParameterNumber"/> <!-- Checks for whitespace --> <!-- See http://checkstyle.sf.net/config_whitespace.html --> <!--module name="EmptyForIteratorPad"/> <module name="MethodParamPad"/> <module name="NoWhitespaceAfter"/> <module name="NoWhitespaceBefore"/> <module name="OperatorWrap"/> <module name="ParenPad"/> <module name="TypecastParenPad"/> <module name="TabCharacter"/> <module name="WhitespaceAfter"/> <module name="WhitespaceAround"/--> <!-- Modifier Checks --> <!-- See http://checkstyle.sf.net/config_modifiers.html --> <module name="ModifierOrder"/> <!--module name="RedundantModifier"/--> <!-- Checks for blocks. You know, those {}'s --> <!-- See http://checkstyle.sf.net/config_blocks.html --> <!--module name="AvoidNestedBlocks"/> <module name="EmptyBlock"/> <module name="LeftCurly"/> <module name="NeedBraces"/> <module name="RightCurly"/--> <!-- Checks for common coding problems --> <!-- See http://checkstyle.sf.net/config_coding.html --> <module name="AvoidInlineConditionals"/> <module name="DoubleCheckedLocking"/> <!-- MY FAVOURITE --> <module name="EmptyStatement"/> <module name="EqualsHashCode"/> <!--module name="HiddenField"/--> <module name="IllegalInstantiation"/> <module name="InnerAssignment"/> <!--module name="MagicNumber"/--> <module name="MissingSwitchDefault"/> <module name="RedundantThrows"/> <module name="SimplifyBooleanExpression"/> <module name="SimplifyBooleanReturn"/> <!-- Checks for class design --> <!-- See http://checkstyle.sf.net/config_design.html --> <!--module name="DesignForExtension"/--> <module name="FinalClass"/> <module name="HideUtilityClassConstructor"/> <module name="InterfaceIsType"/> <module name="VisibilityModifier"> <property name="protectedAllowed" value="true"/> </module> <!-- Miscellaneous other checks. --> <!-- See http://checkstyle.sf.net/config_misc.html --> <module name="ArrayTypeStyle"/> <!--module name="FinalParameters"/--> <!--module name="GenericIllegalRegexp"> <property name="format" value="System\.out\.println"/> <property name="message" value="User Logger class instead."/> </module--> <!--module name="GenericIllegalRegexp"> <property name="format" value="\s+$"/> <property name="message" value="Line has trailing spaces."/> </module--> <!--module name="TodoComment"/--> <module name="UpperEll"/> </module> </module> --- NEW FILE: checkstyle-all-4.1.jar --- (This appears to be a binary file; contents omitted.) |
From: Nobody <fas...@us...> - 2006-09-12 01:21:10
|
Update of /cvsroot/mocklib/gwtmocklib/input/libexclude In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv23230/input/libexclude Added Files: README.txt servlet-api.jar Log Message: first commit of gwtmocklib module. --- NEW FILE: servlet-api.jar --- (This appears to be a binary file; contents omitted.) --- NEW FILE: README.txt --- This folder is where jars go that 1. are not needed during runtime OR 2. are needed at runtime, but the jars are part of the runtime already and do not need to be delivered For normal applications, jars in this directory are not delivered to output/jardist For web applications, jars in this directory are not put in the war file For osgi bundles, jars in this directory are not put in the osgi bundle Examples of jars that belong in this directory are mocklib.jar, osgi's framework.jar, servlet.jar, etc. etc. |
From: Nobody <fas...@us...> - 2006-09-12 01:21:09
|
Update of /cvsroot/mocklib/gwtmocklib/tools In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv23230/tools Added Files: version-r1-0-15.txt Log Message: first commit of gwtmocklib module. --- NEW FILE: version-r1-0-15.txt --- |
From: Nobody <fas...@us...> - 2006-09-12 01:21:09
|
Update of /cvsroot/mocklib/gwtmocklib/tools/findbugs/bin/deprecated In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv23230/tools/findbugs/bin/deprecated Added Files: updateBugs bugHistory unionBugs unionResults Log Message: first commit of gwtmocklib module. --- NEW FILE: updateBugs --- #! /bin/sh # Merge a historical bug collection and a bug collection, producing an updated # historical bug collection program="$0" # Follow symlinks until we get to the actual file. while [ -h "$program" ]; do link=`ls -ld "$program"` link=`expr "$link" : '.*-> \(.*\)'` if [ "`expr "$link" : '/.*'`" = 0 ]; then # Relative dir=`dirname "$program"` program="$dir/$link" else # Absolute program="$link" fi done # Assume findbugs home directory is the parent # of the directory containing the script (which should # normally be "$findbugs_home/bin"). dir=`dirname $program` findbugs_home="$dir/.." # Handle FHS-compliant installations (e.g., Fink) if [ -d "$findbugs_home/share/findbugs" ]; then findbugs_home="$findbugs_home/share/findbugs" fi # Make absolute findbugs_home=`cd $findbugs_home && /bin/pwd` fb_pathsep=':' # Handle cygwin, courtesy of Peter D. Stout fb_osname=`uname` if [ `expr "$fb_osname" : CYGWIN` -ne 0 ]; then findbugs_home=`cygpath --mixed "$findbugs_home"` fb_pathsep=';' fi if [ ! -d "$findbugs_home" ]; then echo "The path $findbugs_home," echo "which is where I think FindBugs is located," echo "does not seem to be a directory." exit 1 fi # Choose default java binary fb_javacmd=java if [ ! -z "$JAVA_HOME" ] && [ -x "$JAVA_HOME/bin/java" ]; then fb_javacmd=$JAVA_HOME/bin/java fi fb_mainclass=edu.umd.cs.findbugs.workflow.Update fb_javacmd=${fb_javacmd:-"java"} fb_maxheap=${fb_maxheap:-"-Xmx256m"} fb_appjar=${fb_appjar:-"$findbugs_home/lib/findbugs.jar"} set -f #echo command: \ exec $fb_javacmd \ -classpath $fb_appjar$fb_pathsep$CLASSPATH \ -Dfindbugs.home="$findbugs_home"\ $fb_maxheap $fb_jvmargs $fb_mainclass ${@:+"$@"} $fb_appargs # vim:ts=3 --- NEW FILE: unionResults --- #! /bin/sh # Deprecated # Create the union of two results files, preserving # annotations in both files in the result. program="$0" # Follow symlinks until we get to the actual file. while [ -h "$program" ]; do link=`ls -ld "$program"` link=`expr "$link" : '.*-> \(.*\)'` if [ "`expr "$link" : '/.*'`" = 0 ]; then # Relative dir=`dirname "$program"` program="$dir/$link" else # Absolute program="$link" fi done # Assume findbugs home directory is the parent # of the directory containing the script (which should # normally be "$findbugs_home/bin"). dir=`dirname $program` findbugs_home="$dir/.." # Handle FHS-compliant installations (e.g., Fink) if [ -d "$findbugs_home/share/findbugs" ]; then findbugs_home="$findbugs_home/share/findbugs" fi # Make absolute findbugs_home=`cd $findbugs_home && /bin/pwd` fb_pathsep=':' # Handle cygwin, courtesy of Peter D. Stout fb_osname=`uname` if [ `expr "$fb_osname" : CYGWIN` -ne 0 ]; then findbugs_home=`cygpath --mixed "$findbugs_home"` fb_pathsep=';' fi if [ ! -d "$findbugs_home" ]; then echo "The path $findbugs_home," echo "which is where I think FindBugs is located," echo "does not seem to be a directory." exit 1 fi # Choose default java binary fb_javacmd=java if [ ! -z "$JAVA_HOME" ] && [ -x "$JAVA_HOME/bin/java" ]; then fb_javacmd=$JAVA_HOME/bin/java fi fb_mainclass=edu.umd.cs.findbugs.workflow.UnionResults fb_javacmd=${fb_javacmd:-"java"} fb_maxheap=${fb_maxheap:-"-Xmx256m"} fb_appjar=${fb_appjar:-"$findbugs_home/lib/findbugs.jar"} set -f #echo command: \ exec $fb_javacmd \ -classpath $fb_appjar$fb_pathsep$CLASSPATH \ -Dfindbugs.home="$findbugs_home"\ $fb_maxheap $fb_jvmargs $fb_mainclass ${@:+"$@"} $fb_appargs # vim:ts=3 --- NEW FILE: bugHistory --- #! /bin/sh program="$0" # Follow symlinks until we get to the actual file. while [ -h "$program" ]; do link=`ls -ld "$program"` link=`expr "$link" : '.*-> \(.*\)'` if [ "`expr "$link" : '/.*'`" = 0 ]; then # Relative dir=`dirname "$program"` program="$dir/$link" else # Absolute program="$link" fi done # Assume findbugs home directory is the parent # of the directory containing the script (which should # normally be "$findbugs_home/bin"). dir=`dirname $program` findbugs_home="$dir/.." # Handle FHS-compliant installations (e.g., Fink) if [ -d "$findbugs_home/share/findbugs" ]; then findbugs_home="$findbugs_home/share/findbugs" fi # Make absolute findbugs_home=`cd $findbugs_home && /bin/pwd` fb_pathsep=':' # Handle cygwin, courtesy of Peter D. Stout fb_osname=`uname` if [ `expr "$fb_osname" : CYGWIN` -ne 0 ]; then findbugs_home=`cygpath --mixed "$findbugs_home"` fb_pathsep=';' fi if [ ! -d "$findbugs_home" ]; then echo "The path $findbugs_home," echo "which is where I think FindBugs is located," echo "does not seem to be a directory." exit 1 fi # Choose default java binary fb_javacmd=java if [ ! -z "$JAVA_HOME" ] && [ -x "$JAVA_HOME/bin/java" ]; then fb_javacmd=$JAVA_HOME/bin/java fi fb_mainclass=edu.umd.cs.findbugs.workflow.BugHistory fb_javacmd=${fb_javacmd:-"java"} fb_maxheap=${fb_maxheap:-"-Xmx256m"} fb_appjar=${fb_appjar:-"$findbugs_home/lib/findbugs.jar"} set -f #echo command: \ exec $fb_javacmd \ -classpath $fb_appjar$fb_pathsep$CLASSPATH \ -Dfindbugs.home="$findbugs_home"\ $fb_maxheap $fb_jvmargs $fb_mainclass ${@:+"$@"} $fb_appargs # vim:ts=3 --- NEW FILE: unionBugs --- #! /bin/sh # Create the union of two results files, preserving # annotations in both files in the result. program="$0" # Follow symlinks until we get to the actual file. while [ -h "$program" ]; do link=`ls -ld "$program"` link=`expr "$link" : '.*-> \(.*\)'` if [ "`expr "$link" : '/.*'`" = 0 ]; then # Relative dir=`dirname "$program"` program="$dir/$link" else # Absolute program="$link" fi done # Assume findbugs home directory is the parent # of the directory containing the script (which should # normally be "$findbugs_home/bin"). dir=`dirname $program` findbugs_home="$dir/.." # Handle FHS-compliant installations (e.g., Fink) if [ -d "$findbugs_home/share/findbugs" ]; then findbugs_home="$findbugs_home/share/findbugs" fi # Make absolute findbugs_home=`cd $findbugs_home && /bin/pwd` fb_pathsep=':' # Handle cygwin, courtesy of Peter D. Stout fb_osname=`uname` if [ `expr "$fb_osname" : CYGWIN` -ne 0 ]; then findbugs_home=`cygpath --mixed "$findbugs_home"` fb_pathsep=';' fi if [ ! -d "$findbugs_home" ]; then echo "The path $findbugs_home," echo "which is where I think FindBugs is located," echo "does not seem to be a directory." exit 1 fi # Choose default java binary fb_javacmd=java if [ ! -z "$JAVA_HOME" ] && [ -x "$JAVA_HOME/bin/java" ]; then fb_javacmd=$JAVA_HOME/bin/java fi fb_mainclass=edu.umd.cs.findbugs.UnionResults fb_javacmd=${fb_javacmd:-"java"} fb_maxheap=${fb_maxheap:-"-Xmx256m"} fb_appjar=${fb_appjar:-"$findbugs_home/lib/findbugs.jar"} set -f #echo command: \ exec $fb_javacmd \ -classpath $fb_appjar$fb_pathsep$CLASSPATH \ -Dfindbugs.home="$findbugs_home"\ $fb_maxheap $fb_jvmargs $fb_mainclass ${@:+"$@"} $fb_appargs # vim:ts=3 |
From: Nobody <fas...@us...> - 2006-09-12 01:21:09
|
Update of /cvsroot/mocklib/gwtmocklib/tools/emma In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv23230/tools/emma Added Files: emma.jar emma_ant.jar Log Message: first commit of gwtmocklib module. --- NEW FILE: emma.jar --- (This appears to be a binary file; contents omitted.) --- NEW FILE: emma_ant.jar --- (This appears to be a binary file; contents omitted.) |
From: Nobody <fas...@us...> - 2006-09-12 01:21:09
|
Update of /cvsroot/mocklib/gwtmocklib/tools/package-list/junit In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv23230/tools/package-list/junit Added Files: package-list Log Message: first commit of gwtmocklib module. --- NEW FILE: package-list --- junit.awtui junit.extensions junit.framework junit.runner junit.samples junit.samples.money junit.swingui junit.tests junit.tests.extensions junit.tests.framework junit.tests.runner junit.textui |
From: Nobody <fas...@us...> - 2006-09-12 01:21:08
|
Update of /cvsroot/mocklib/gwtmocklib/input/javasrc/com/google/gwt/sample/dynatable/server In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv23230/input/javasrc/com/google/gwt/sample/dynatable/server Added Files: SchoolCalendarServiceImpl.java Log Message: first commit of gwtmocklib module. --- NEW FILE: SchoolCalendarServiceImpl.java --- /* * Copyright 2006 Google Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file * except in compliance with the License. You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, * either express or implied. See the License for the specific language governing permissions and limitations under the * License. */ package com.google.gwt.sample.dynatable.server; import com.google.gwt.sample.dynatable.client.Person; import com.google.gwt.sample.dynatable.client.Professor; import com.google.gwt.sample.dynatable.client.Schedule; import com.google.gwt.sample.dynatable.client.SchoolCalendarService; import com.google.gwt.sample.dynatable.client.Student; import com.google.gwt.sample.dynatable.client.TimeSlot; import com.google.gwt.user.server.rpc.RemoteServiceServlet; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.Random; import java.util.logging.Logger; public class SchoolCalendarServiceImpl extends RemoteServiceServlet implements SchoolCalendarService { // The <code>serialVersionUID</code> private static final long serialVersionUID = 1L; private static final Logger log = Logger.getLogger(SchoolCalendarServiceImpl.class.getName()); private static final String[] FIRST_NAMES = new String[]{"Inman", "Sally", "Omar", "Teddy", "Jimmy", "Cathy", "Barney", "Fred", "Eddie", "Carlos"}; private static final String[] LAST_NAMES = new String[]{"Smith", "Jones", "Epps", "Gibbs", "Webber", "Blum", "Mendez", "Crutcher", "Needler", "Wilson", "Chase", "Edelstein"}; private static final String[] SUBJECTS = new String[]{"Chemistry", "Phrenology", "Geometry", "Underwater Basket Weaving", "Basketball", "Computer Science", "Statistics", "Materials Engineering", "English Literature", "Geology"}; private static final Person[] NO_PEOPLE = new Person[0]; public SchoolCalendarServiceImpl() { System.out.println("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"); log.info("zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz"); generateRandomPeople(); } public Person[] getPeople(int startIndex, int maxCount) { System.out.println("bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb"); log.info("yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy"); int peopleCount = people.size(); int start = startIndex; if(start >= peopleCount) { return NO_PEOPLE; } int end = Math.min(startIndex + maxCount, peopleCount); if(start == end) { return NO_PEOPLE; } int resultCount = end - start; Person[] results = new Person[resultCount]; for(int from = start, to = 0; to < resultCount; ++from, ++to) { results[to] = (Person)people.get(from); } return results; } private void generateRandomPeople() { for(int i = 0; i < MAX_PEOPLE; ++i) { Person person = generateRandomPerson(); people.add(person); } } private Person generateRandomPerson() { // 1 out of every so many people is a prof. // if(rnd.nextInt(STUDENTS_PER_PROF) == 1) { return generateRandomProfessor(); } else { return generateRandomStudent(); } } private Person generateRandomProfessor() { Professor prof = new Professor(); String firstName = pickRandomString(FIRST_NAMES); String lastName = pickRandomString(LAST_NAMES); prof.setName("Dr. " + firstName + " " + lastName); String subject = pickRandomString(SUBJECTS); prof.setDescription("Professor of " + subject); generateRandomSchedule(prof.getTeachingSchedule()); return prof; } private void generateRandomSchedule(Schedule sched) { int range = MAX_SCHED_ENTRIES - MIN_SCHED_ENTRIES + 1; int howMany = MIN_SCHED_ENTRIES + rnd.nextInt(range); TimeSlot[] timeSlots = new TimeSlot[howMany]; for(int i = 0; i < howMany; ++i) { int startHrs = 8 + rnd.nextInt(9); // 8 am - 5 pm int startMins = 15 * rnd.nextInt(4); // on the hour or some quarter int dayOfWeek = 1 + rnd.nextInt(5); // Mon - Fri int absStartMins = 60 * startHrs + startMins; // convert to minutes int absStopMins = absStartMins + CLASS_LENGTH_MINS; timeSlots[i] = new TimeSlot(dayOfWeek, absStartMins, absStopMins); } Arrays.sort(timeSlots); for(int i = 0; i < howMany; ++i) { sched.addTimeSlot(timeSlots[i]); } } private Person generateRandomStudent() { Student student = new Student(); String firstName = pickRandomString(FIRST_NAMES); String lastName = pickRandomString(LAST_NAMES); student.setName(firstName + " " + lastName); String subject = pickRandomString(SUBJECTS); student.setDescription("Majoring in " + subject); generateRandomSchedule(student.getClassSchedule()); return student; } private String pickRandomString(String[] a) { int i = rnd.nextInt(a.length); return a[i]; } /** * Write the serialized response out to stdout. This is a very unusual thing to do, but it allows us to create a * static file version of the response without deploying a servlet. */ protected void onAfterResponseSerialized(String serializedResponse) { System.out.println(serializedResponse); } private final List people = new ArrayList(); private final Random rnd = new Random(3); private static final int CLASS_LENGTH_MINS = 50; private static final int MAX_SCHED_ENTRIES = 5; private static final int MIN_SCHED_ENTRIES = 1; private static final int MAX_PEOPLE = 100; private static final int STUDENTS_PER_PROF = 5; } |
Update of /cvsroot/mocklib/gwtmocklib/tools/findbugs/lib In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv23230/tools/findbugs/lib Added Files: dom4j-full.jar findbugs-ant.jar buggy.icns findbugs.jar annotations.jar bcel.jar findbugsGUI.jar Log Message: first commit of gwtmocklib module. --- NEW FILE: findbugs.jar --- (This appears to be a binary file; contents omitted.) --- NEW FILE: findbugs-ant.jar --- (This appears to be a binary file; contents omitted.) --- NEW FILE: buggy.icns --- (This appears to be a binary file; contents omitted.) --- NEW FILE: bcel.jar --- (This appears to be a binary file; contents omitted.) --- NEW FILE: findbugsGUI.jar --- (This appears to be a binary file; contents omitted.) --- NEW FILE: dom4j-full.jar --- (This appears to be a binary file; contents omitted.) --- NEW FILE: annotations.jar --- (This appears to be a binary file; contents omitted.) |
From: Nobody <fas...@us...> - 2006-09-12 01:21:08
|
Update of /cvsroot/mocklib/gwtmocklib/input/javasrc In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv23230/input/javasrc Added Files: overview.html README.txt Log Message: first commit of gwtmocklib module. --- NEW FILE: overview.html --- <html> <body> </body> </html> --- NEW FILE: README.txt --- #Contains all *.java source files #Contains all *.properties files that will go into the jar #Contains all *.xml files that will go into the jar #Contains all *.* that will go into the jar except doc*.gif and dog*.jpg #Contains all *.html files needed by javadoc #Contains all doc_*.jpg files needed by javadoc #Contains all doc_*.gif files needed by javadoc #Contains all *.* files needed by javadoc |
From: Nobody <fas...@us...> - 2006-09-12 01:21:06
|
Update of /cvsroot/mocklib/gwtmocklib/tools/ant/bin In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv23230/tools/ant/bin Added Files: antenv.cmd envset.cmd complete-ant-cmd.pl runrc.cmd lcp.bat ant runant.py ant.cmd antRun.bat runant.pl antRun.pl antRun ant.bat Log Message: first commit of gwtmocklib module. --- NEW FILE: antRun.bat --- @echo off REM REM Copyright 2001-2002,2004 The Apache Software Foundation REM REM Licensed under the Apache License, Version 2.0 (the "License"); REM you may not use this file except in compliance with the License. REM You may obtain a copy of the License at REM REM http://www.apache.org/licenses/LICENSE-2.0 REM REM Unless required by applicable law or agreed to in writing, software REM distributed under the License is distributed on an "AS IS" BASIS, REM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. REM See the License for the specific language governing permissions and REM limitations under the License. REM REM if "%OS%"=="Windows_NT" @setlocal if ""%1""=="""" goto runCommand rem Change drive and directory to %1 if "%OS%"=="Windows_NT" cd /d ""%1"" if not "%OS%"=="Windows_NT" cd ""%1"" shift rem Slurp the command line arguments. This loop allows for an unlimited number rem of agruments (up to the command line limit, anyway). set ANT_RUN_CMD=%1 if ""%1""=="""" goto runCommand shift :loop if ""%1""=="""" goto runCommand set ANT_RUN_CMD=%ANT_RUN_CMD% %1 shift goto loop :runCommand rem echo %ANT_RUN_CMD% %ANT_RUN_CMD% if "%OS%"=="Windows_NT" @endlocal --- NEW FILE: runrc.cmd --- /* Copyright 2003-2004 The Apache Software Foundation 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. Run RC file, name is in the first arg, second arg is either PATH ENV or -r or nothing */ parse arg name path rest if name = '' then do say 'RC file name is missing' exit 1 end if rest \= '' then do say 'Too many parameters' exit 1 end call runit name path exit 0 runit: procedure parse arg name path dir if path \= '' & path \= '-r' then do dir = value(translate(path),,'OS2ENVIRONMENT') if dir = '' then return dir = translate(dir, '\', '/') /* change UNIX-like path to OS/2 */ end if dir = '' then dir = directory() if path = '-r' then do /* recursive call */ subdir = filespec('path', dir) if subdir \= '\' then do subdir = left(subdir, length(subdir)-1) call runit name path filespec('drive', dir) || subdir end end /* Look for the file and run it */ if right(dir, 1) \= '\' then dir = dir || '\' rcfile = stream(dir || name, 'c', 'query exists') if rcfile \= '' then interpret 'call "' || rcfile || '"' return --- NEW FILE: runant.py --- #!/usr/bin/python # Copyright 2001,2003-2004 The Apache Software Foundation # # 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. # """ runant.py This script is a translation of the runant.pl written by Steve Loughran. It runs ant with/out arguments, it should be quite portable (thanks to the python os library) This script has been tested with Python2.0/Win2K created: 2001-04-11 author: Pierre Dittgen pie...@cr... Assumptions: - the "java" executable/script is on the command path """ import os, os.path, string, sys # Change it to 1 to get extra debug information debug = 0 ####################################################################### # If ANT_HOME is not set default to script's parent directory if os.environ.has_key('ANT_HOME'): ANT_HOME = os.environ['ANT_HOME'] else: ANT_HOME = os.path.dirname(os.path.dirname(os.path.abspath(sys.argv[0]))) # set ANT_LIB location ANT_LIB = os.path.join(ANT_HOME, 'lib') # set JAVACMD (check variables JAVACMD and JAVA_HOME) JAVACMD = None if not os.environ.has_key('JAVACMD'): if os.environ.has_key('JAVA_HOME'): if not os.path.exists(os.environ['JAVA_HOME']): print "Warning: JAVA_HOME is not defined correctly." else: JAVACMD = os.path.join(os.environ['JAVA_HOME'], 'bin', 'java') else: print "Warning: JAVA_HOME not set." else: JAVACMD = os.environ['JAVACMD'] if not JAVACMD: JAVACMD = 'java' launcher_jar = os.path.join(ANT_LIB, 'ant-launcher.jar') if not os.path.exists(launcher_jar): print 'Unable to locate ant-launcher.jar. Expected to find it in %s' % \ ANT_LIB # Build up standard classpath (LOCALCLASSPATH) LOCALCLASSPATH = launcher_jar if os.environ.has_key('LOCALCLASSPATH'): LOCALCLASSPATH += os.pathsep + os.environ['LOCALCLASSPATH'] ANT_OPTS = "" if os.environ.has_key('ANT_OPTS'): ANT_OPTS = os.environ['ANT_OPTS'] OPTS = "" if os.environ.has_key('JIKESPATH'): OPTS = '-Djikes.class.path=\"%s\"' % os.environ['JIKESPATH'] ANT_ARGS = "" if os.environ.has_key('ANT_ARGS'): ANT_ARGS = os.environ['ANT_ARGS'] CLASSPATH = "" if os.environ.has_key('CLASSPATH'): CLASSPATH = os.environ['CLASSPATH'] # Builds the commandline cmdline = ('%s %s -classpath %s -Dant.home=%s %s ' + \ 'org.apache.tools.ant.launch.Launcher %s -lib %s %s') \ % (JAVACMD, ANT_OPTS, LOCALCLASSPATH, ANT_HOME, OPTS, ANT_ARGS, \ CLASSPATH, string.join(sys.argv[1:], ' ')) if debug: print '\n%s\n\n' % (cmdline) # Run the biniou! os.system(cmdline) --- NEW FILE: antRun.pl --- #!/usr/bin/perl # # Copyright 2001,2003-2004 The Apache Software Foundation # # 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. # ####################################################################### # # antRun.pl # # wrapper script for invoking commands on a platform with Perl installed # this is akin to antRun.bat, and antRun the SH script # # created: 2001-10-18 # author: Jeff Tulley jt...@no... ####################################################################### #be fussy about variables use strict; #turn warnings on during dev; generates a few spurious uninitialised var access warnings #use warnings; #and set $debug to 1 to turn on trace info (currently unused) my $debug=1; ####################################################################### # change drive and directory to "%1" my $ANT_RUN_CMD = @ARGV[0]; # assign current run command to "%2" chdir (@ARGV[0]) || die "Can't cd to $ARGV[0]: $!\n"; if ($^O eq "NetWare") { # There is a bug in Perl 5 on NetWare, where chdir does not # do anything. On NetWare, the following path-prefixed form should # always work. (afaict) $ANT_RUN_CMD .= "/".@ARGV[1]; } else { $ANT_RUN_CMD = @ARGV[1]; } # dispose of the first two arguments, leaving only the command's args. shift; shift; # run the command my $returnValue = system $ANT_RUN_CMD, @ARGV; if ($returnValue eq 0) { exit 0; } else { # only 0 and 1 are widely recognized as exit values # so change the exit value to 1 exit 1; } --- NEW FILE: envset.cmd --- /* Copyright 2003-2004 The Apache Software Foundation 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. SET environment variables First optional parameter: ; parameters are considered parts of a path variable, semicolons are appended to each element if not already present -D parameters are properties for Java or Makefile etc., -D will be prepended and the parameters will be separated by a space =D the same as above but equal sign is not required , parameters should be comma separated in the environment variable - parameters should be separated by the next parameter Other values mean that the first parameter is missing and the environment variable will be set to the space separated parameters Second parameter: name of the environment variable Next parameters: values ; implies that the equal sign is considered a part of the parameter and is not interpreted -D requires parameters in the form name=value. If the equal sign is not found, the parameters are changed to name=expanded_name Other options have optional equal sign. If it is found, only the part after the equal sign will be oprionally expanded. If the parameter is the minus sign, the next parameter will not be expanded. If the parameter is a single dot, it will be replaced with the value of the environment variable as it existed before envset was invoked. For other parameters the batch looks for the environment variable with the same name (in uppercase). If it is found, it forms the expanded_name. If the environment variable with such a name does not exist, the expanded_name will hold the parameter name without case conversion. */ parse arg mode envar args equal = 0 sep = ' ' /* Parse command line parameters */ select when mode='-' then do sep = envar parse var args envar args end when mode=';' then do sep = '' equal = -1 end when mode='-D' then equal = 1 when mode='=D' then mode = '-D' when mode=',' then sep = ',' otherwise args = envar args envar = mode mode = '' end env = 'OS2ENVIRONMENT' envar = translate(envar) orig = value(envar,,env) newval = '' expand = 1 /* for each parameter... */ do i = 1 to words(args) if expand > 0 & word(args, i) = '-' then expand = 0 else call addval word(args, i) end /* Optionally enclose path variable by quotes */ if mode = ';' & pos(' ', newval) > 0 then newval = '"' || newval || '"' /* Set the new value, 'SET' cannot be used since it does not allow '=' */ x = value(envar, newval, env) exit 0 addval: procedure expose sep equal orig expand newval mode env parse arg var if var = '.' then expvar = orig else do if equal >= 0 then do parse var var name '=' val if val = '' then var = name else var = val end if expand = 0 then expvar = var else expvar = value(translate(var),,env) if expvar = '' then expvar = var if equal >= 0 then do if val = '' then do parse var expvar key '=' val if val <> '' then name = key else do if equal > 0 then val = key else name = key end end else val = expvar if pos(' ', val) > 0 | pos('=', val) > 0 then val = '"' || val || '"' if val = '' then expvar = name else expvar = name || '=' || val end if mode = '-D' then expvar = '-D' || expvar if mode = ';' then do if right(expvar, 1) <> ';' then expvar = expvar || ';' end end if newval = '' then newval = expvar else newval = newval || sep || expvar expand = 1 return --- NEW FILE: ant --- #! /bin/sh # Copyright 2001-2004 The Apache Software Foundation # # 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. # Extract launch and ant arguments, (see details below). ant_exec_args= no_config=false use_jikes_default=false ant_exec_debug=false show_help=false for arg in "$@" ; do if [ "$arg" = "--noconfig" ] ; then no_config=true elif [ "$arg" = "--usejikes" ] ; then use_jikes_default=true elif [ "$arg" = "--execdebug" ] ; then ant_exec_debug=true elif [ my"$arg" = my"--h" -o my"$arg" = my"--help" ] ; then show_help=true ant_exec_args="$ant_exec_args -h" else if [ my"$arg" = my"-h" -o my"$arg" = my"-help" ] ; then show_help=true fi ant_exec_args="$ant_exec_args \"$arg\"" fi done # Source/default ant configuration if $no_config ; then rpm_mode=false usejikes=$use_jikes_default else # load system-wide ant configuration if [ -f "/etc/ant.conf" ] ; then . /etc/ant.conf fi # load user ant configuration if [ -f "$HOME/.ant/ant.conf" ] ; then . $HOME/.ant/ant.conf fi if [ -f "$HOME/.antrc" ] ; then . "$HOME/.antrc" fi # provide default configuration values if [ -z "$rpm_mode" ] ; then rpm_mode=false fi if [ -z "$usejikes" ] ; then usejikes=$use_jikes_default fi fi # Setup Java environment in rpm mode if $rpm_mode ; then if [ -f /usr/share/java-utils/java-functions ] ; then . /usr/share/java-utils/java-functions set_jvm set_javacmd fi fi # OS specific support. $var _must_ be set to either true or false. cygwin=false; darwin=false; case "`uname`" in CYGWIN*) cygwin=true ;; Darwin*) darwin=true if [ -z "$JAVA_HOME" ] ; then JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Home fi ;; esac if [ -z "$ANT_HOME" -o ! -d "$ANT_HOME" ] ; then # try to find ANT if [ -d /opt/ant ] ; then ANT_HOME=/opt/ant fi if [ -d "${HOME}/opt/ant" ] ; then ANT_HOME="${HOME}/opt/ant" fi ## resolve links - $0 may be a link to ant's home PRG="$0" progname=`basename "$0"` # need this for relative symlinks while [ -h "$PRG" ] ; do ls=`ls -ld "$PRG"` link=`expr "$ls" : '.*-> \(.*\)$'` if expr "$link" : '/.*' > /dev/null; then PRG="$link" else PRG=`dirname "$PRG"`"/$link" fi done ANT_HOME=`dirname "$PRG"`/.. # make it fully qualified ANT_HOME=`cd "$ANT_HOME" && pwd` fi # For Cygwin, ensure paths are in UNIX format before anything is touched if $cygwin ; then [ -n "$ANT_HOME" ] && ANT_HOME=`cygpath --unix "$ANT_HOME"` [ -n "$JAVA_HOME" ] && JAVA_HOME=`cygpath --unix "$JAVA_HOME"` fi # set ANT_LIB location ANT_LIB="${ANT_HOME}/lib" if [ -z "$JAVACMD" ] ; then if [ -n "$JAVA_HOME" ] ; then if [ -x "$JAVA_HOME/jre/sh/java" ] ; then # IBM's JDK on AIX uses strange locations for the executables JAVACMD="$JAVA_HOME/jre/sh/java" else JAVACMD="$JAVA_HOME/bin/java" fi else JAVACMD=`which java 2> /dev/null ` if [ -z "$JAVACMD" ] ; then JAVACMD=java fi fi fi if [ ! -x "$JAVACMD" ] ; then echo "Error: JAVA_HOME is not defined correctly." echo " We cannot execute $JAVACMD" exit 1 fi # Build local classpath using just the launcher in non-rpm mode or # use the Jpackage helper in rpm mode with basic and default jars # specified in the ant.conf configuration. Because the launcher is # used, libraries linked in ANT_HOME will also be include, but this # is discouraged as it is not java-version safe. A user should # request optional jars and their dependencies via the OPT_JAR_LIST # variable if $rpm_mode && [ -f /usr/bin/build-classpath ] ; then LOCALCLASSPATH="$(/usr/bin/build-classpath ant ant-launcher jaxp_parser_impl xml-commons-apis)" # If the user requested to try to add some other jars to the classpath if [ -n "$OPT_JAR_LIST" ] ; then _OPTCLASSPATH="$(/usr/bin/build-classpath $OPT_JAR_LIST 2> /dev/null)" if [ -n "$_OPTCLASSPATH" ] ; then LOCALCLASSPATH="$LOCALCLASSPATH:$_OPTCLASSPATH" fi fi # Explicitly add javac path to classpath, assume JAVA_HOME set # properly in rpm mode if [ -f "$JAVA_HOME/lib/tools.jar" ] ; then LOCALCLASSPATH="$LOCALCLASSPATH:$JAVA_HOME/lib/tools.jar" fi if [ -f "$JAVA_HOME/lib/classes.zip" ] ; then LOCALCLASSPATH="$LOCALCLASSPATH:$JAVA_HOME/lib/classes.zip" fi # if CLASSPATH_OVERRIDE env var is set, LOCALCLASSPATH will be # user CLASSPATH first and ant-found jars after. # In that case, the user CLASSPATH will override ant-found jars # # if CLASSPATH_OVERRIDE is not set, we'll have the normal behaviour # with ant-found jars first and user CLASSPATH after if [ -n "$CLASSPATH" ] ; then # merge local and specified classpath if [ -z "$LOCALCLASSPATH" ] ; then LOCALCLASSPATH="$CLASSPATH" elif [ -n "$CLASSPATH_OVERRIDE" ] ; then LOCALCLASSPATH="$CLASSPATH:$LOCALCLASSPATH" else LOCALCLASSPATH="$LOCALCLASSPATH:$CLASSPATH" fi # remove class path from launcher -lib option CLASSPATH="" fi else # not using rpm_mode; use launcher to determine classpaths if [ -z "$LOCALCLASSPATH" ] ; then LOCALCLASSPATH=$ANT_LIB/ant-launcher.jar else LOCALCLASSPATH=$ANT_LIB/ant-launcher.jar:$LOCALCLASSPATH fi fi if [ -n "$JAVA_HOME" ] ; then # OSX hack to make Ant work with jikes if $darwin ; then OSXHACK="${JAVA_HOME}/../Classes" if [ -d "${OSXHACK}" ] ; then for i in "${OSXHACK}"/*.jar do JIKESPATH="$JIKESPATH:$i" done fi fi fi # Allow Jikes support (off by default) if $usejikes; then ANT_OPTS="$ANT_OPTS -Dbuild.compiler=jikes" fi # For Cygwin, switch paths to appropriate format before running java if $cygwin; then if [ "$OS" = "Windows_NT" ] && cygpath -m .>/dev/null 2>/dev/null ; then format=mixed else format=windows fi ANT_HOME=`cygpath --$format "$ANT_HOME"` ANT_LIB=`cygpath --$format "$ANT_LIB"` JAVA_HOME=`cygpath --$format "$JAVA_HOME"` LOCALCLASSPATH=`cygpath --path --$format "$LOCALCLASSPATH"` if [ -n "$CLASSPATH" ] ; then CLASSPATH=`cygpath --path --$format "$CLASSPATH"` fi CYGHOME=`cygpath --$format "$HOME"` fi # Show script help if requested if $show_help ; then echo $0 '[script options] [options] [target [target2 [target3] ..]]' echo 'Script Options:' echo ' --help, --h print this message and ant help' echo ' --noconfig suppress sourcing of /etc/ant.conf,' echo ' $HOME/.ant/ant.conf, and $HOME/.antrc' echo ' configuration files' echo ' --usejikes enable use of jikes by default, unless' echo ' set explicitly in configuration files' echo ' --execdebug print ant exec line generated by this' echo ' launch script' echo ' ' fi # add a second backslash to variables terminated by a backslash under cygwin if $cygwin; then case "$ANT_HOME" in *\\ ) ANT_HOME="$ANT_HOME\\" ;; esac case "$CYGHOME" in *\\ ) CYGHOME="$CYGHOME\\" ;; esac case "$JIKESPATH" in *\\ ) JIKESPATH="$JIKESPATH\\" ;; esac case "$LOCALCLASSPATH" in *\\ ) LOCALCLASSPATH="$LOCALCLASSPATH\\" ;; esac case "$CLASSPATH" in *\\ ) CLASSPATH="$CLASSPATH\\" ;; esac fi # Execute ant using eval/exec to preserve spaces in paths, # java options, and ant args ant_sys_opts= if [ -n "$CYGHOME" ]; then if [ -n "$JIKESPATH" ]; then ant_sys_opts="-Djikes.class.path=\"$JIKESPATH\" -Dcygwin.user.home=\"$CYGHOME\"" else ant_sys_opts="-Dcygwin.user.home=\"$CYGHOME\"" fi else if [ -n "$JIKESPATH" ]; then ant_sys_opts="-Djikes.class.path=\"$JIKESPATH\"" fi fi ant_exec_command="exec \"$JAVACMD\" $ANT_OPTS -classpath \"$LOCALCLASSPATH\" -Dant.home=\"$ANT_HOME\" -Dant.library.dir=\"$ANT_LIB\" $ant_sys_opts org.apache.tools.ant.launch.Launcher $ANT_ARGS -lib \"$CLASSPATH\" $ant_exec_args" if $ant_exec_debug ; then echo $ant_exec_command fi eval $ant_exec_command --- NEW FILE: antenv.cmd --- /* Copyright 2003-2004 The Apache Software Foundation 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. Ant environment */ '@echo off' call RxFuncAdd "SysLoadFuncs", "RexxUtil", "SysLoadFuncs" call SysLoadFuncs /* Prepare the parameters for later use */ parse arg argv mode = '' args = '' opts = '' cp = '' lcp = '' do i = 1 to words(argv) param = word(argv, i) select when param='-lcp' then mode = 'l' when param='-cp' | param='-classpath' then mode = 'c' when abbrev('-opts', param, 4) then mode = 'o' when abbrev('-args', param, 4) then mode = 'a' otherwise select when mode = 'a' then args = space(args param, 1) when mode = 'c' then cp = space(cp param, 1) when mode = 'l' then lcp = space(lcp param, 1) when mode = 'o' then opts = space(opts param, 1) otherwise say 'Option' param 'ignored' end end end env="OS2ENVIRONMENT" antconf = _getenv_('antconf' 'antconf.cmd') runrc = _getenv_('runrc') interpret 'call "' || runrc || '"' '"' || antconf || '"' 'ETC' ANT_HOME = value('ANT_HOME',,env) JAVA_HOME = value('JAVA_HOME',,env) classpath = value('CLASSPATH',,env) classes = stream(JAVA_HOME || "\lib\classes.zip", "C", "QUERY EXISTS") if classes \= '' then classpath = prepend(classpath classes) classes = stream(JAVA_HOME || "\lib\tools.jar", "C", "QUERY EXISTS") if classes \= '' then classpath = prepend(classpath classes) classpath = prepend(classpath ANT_HOME || '\lib\ant-launcher.jar') 'SET CLASSPATH=' || classpath /* Setting classpathes, options and arguments */ envset = _getenv_('envset') if cp\='' then interpret 'call "' || envset || '"' '"; CLASSPATH"' '"' || cp || '"' if lcp\='' then interpret 'call "' || envset || '"' '"; LOCALCLASSPATH"' '"' || lcp || '"' if opts\='' then interpret 'call "' || envset || '"' '"-D ANT_OPTS"' '"' || opts || '"' if args\='' then interpret 'call "' || envset || '"' '"ANT_ARGS"' '"' || args || '"' exit 0 addpath: procedure parse arg path elem if elem = '' then do if path\='' & right(path, 1)\=';' then path = path || ';' return path end if substr(path, length(path)) = ';' then glue = '' else glue = ';' if pos(translate(elem), translate(path)) = 0 then path = path || glue || elem || ';' return path prepend: procedure parse arg path elem if elem = '' then do if path\='' & right(path, 1)\=';' then path = path || ';' return path end if pos(translate(elem), translate(path)) = 0 then path = elem || ';' || path return path _getenv_: procedure expose env parse arg envar default if default = '' then default = envar var = value(translate(envar),,env) if var = '' then var = default return var --- NEW FILE: lcp.bat --- REM REM Copyright 2001-2004 The Apache Software Foundation REM REM Licensed under the Apache License, Version 2.0 (the "License"); REM you may not use this file except in compliance with the License. REM You may obtain a copy of the License at REM REM http://www.apache.org/licenses/LICENSE-2.0 REM REM Unless required by applicable law or agreed to in writing, software REM distributed under the License is distributed on an "AS IS" BASIS, REM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. REM See the License for the specific language governing permissions and REM limitations under the License. REM REM set _CLASSPATHCOMPONENT=%1 if ""%1""=="""" goto gotAllArgs shift :argCheck if ""%1""=="""" goto gotAllArgs set _CLASSPATHCOMPONENT=%_CLASSPATHCOMPONENT% %1 shift goto argCheck :gotAllArgs set LOCALCLASSPATH=%_CLASSPATHCOMPONENT%;%LOCALCLASSPATH% --- NEW FILE: antRun --- #!/bin/sh # # Copyright 2001-2002,2004 The Apache Software Foundation # # 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. # # # Args: DIR command cd "$1" CMD="$2" shift shift exec "$CMD" "$@" --- NEW FILE: ant.bat --- @echo off REM Copyright 2001,2004 The Apache Software Foundation REM REM Licensed under the Apache License, Version 2.0 (the "License"); REM you may not use this file except in compliance with the License. REM You may obtain a copy of the License at REM REM http://www.apache.org/licenses/LICENSE-2.0 REM REM Unless required by applicable law or agreed to in writing, software REM distributed under the License is distributed on an "AS IS" BASIS, REM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. REM See the License for the specific language governing permissions and REM limitations under the License. if exist "%HOME%\antrc_pre.bat" call "%HOME%\antrc_pre.bat" if "%OS%"=="Windows_NT" @setlocal rem %~dp0 is expanded pathname of the current script under NT set DEFAULT_ANT_HOME=%~dp0.. if "%ANT_HOME%"=="" set ANT_HOME=%DEFAULT_ANT_HOME% set DEFAULT_ANT_HOME= rem Slurp the command line arguments. This loop allows for an unlimited number rem of arguments (up to the command line limit, anyway). set ANT_CMD_LINE_ARGS=%1 if ""%1""=="""" goto doneStart shift :setupArgs if ""%1""=="""" goto doneStart set ANT_CMD_LINE_ARGS=%ANT_CMD_LINE_ARGS% %1 shift goto setupArgs rem This label provides a place for the argument list loop to break out rem and for NT handling to skip to. :doneStart rem find ANT_HOME if it does not exist due to either an invalid value passed rem by the user or the %0 problem on Windows 9x if exist "%ANT_HOME%\lib\ant.jar" goto checkJava rem check for ant in Program Files if not exist "%ProgramFiles%\ant" goto checkSystemDrive set ANT_HOME=%ProgramFiles%\ant goto checkJava :checkSystemDrive rem check for ant in root directory of system drive if not exist %SystemDrive%\ant\lib\ant.jar goto checkCDrive set ANT_HOME=%SystemDrive%\ant goto checkJava :checkCDrive rem check for ant in C:\ant for Win9X users if not exist C:\ant\lib\ant.jar goto noAntHome set ANT_HOME=C:\ant goto checkJava :noAntHome echo ANT_HOME is set incorrectly or ant could not be located. Please set ANT_HOME. goto end :checkJava set _JAVACMD=%JAVACMD% if "%JAVA_HOME%" == "" goto noJavaHome if not exist "%JAVA_HOME%\bin\java.exe" goto noJavaHome if "%_JAVACMD%" == "" set _JAVACMD=%JAVA_HOME%\bin\java.exe goto checkJikes :noJavaHome if "%_JAVACMD%" == "" set _JAVACMD=java.exe :checkJikes if not "%JIKESPATH%"=="" goto runAntWithJikes :runAnt if not "%CLASSPATH%"=="" goto runAntWithClasspath "%_JAVACMD%" %ANT_OPTS% -classpath "%ANT_HOME%\lib\ant-launcher.jar" "-Dant.home=%ANT_HOME%" org.apache.tools.ant.launch.Launcher %ANT_ARGS% %ANT_CMD_LINE_ARGS% goto end :runAntWithClasspath "%_JAVACMD%" %ANT_OPTS% -classpath "%ANT_HOME%\lib\ant-launcher.jar" "-Dant.home=%ANT_HOME%" org.apache.tools.ant.launch.Launcher %ANT_ARGS% -lib "%CLASSPATH%" %ANT_CMD_LINE_ARGS% goto end :runAntWithJikes if not "%CLASSPATH%"=="" goto runAntWithJikesAndClasspath "%_JAVACMD%" %ANT_OPTS% -classpath "%ANT_HOME%\lib\ant-launcher.jar" "-Dant.home=%ANT_HOME%" "-Djikes.class.path=%JIKESPATH%" org.apache.tools.ant.launch.Launcher %ANT_ARGS% %ANT_CMD_LINE_ARGS% goto end :runAntWithJikesAndClasspath "%_JAVACMD%" %ANT_OPTS% -classpath "%ANT_HOME%\lib\ant-launcher.jar" "-Dant.home=%ANT_HOME%" "-Djikes.class.path=%JIKESPATH%" org.apache.tools.ant.launch.Launcher %ANT_ARGS% -lib "%CLASSPATH%" %ANT_CMD_LINE_ARGS% goto end :end set _JAVACMD= set ANT_CMD_LINE_ARGS= if "%OS%"=="Windows_NT" @endlocal :mainEnd if exist "%HOME%\antrc_post.bat" call "%HOME%\antrc_post.bat" --- NEW FILE: runant.pl --- #!/usr/bin/perl # # Copyright 2000-2004 The Apache Software Foundation # # 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. # ####################################################################### # # runant.pl # # wrapper script for invoking ant in a platform with Perl installed # this may include cgi-bin invocation, which is considered somewhat daft. # (slo: that should be a separate file which can be derived from this # and returns the XML formatted output) # # the code is not totally portable due to classpath and directory splitting # issues. oops. (NB, use File::Spec::Functions will help and the code is # structured for the catfile() call, but because of perl version funnies # the code is not included. # # created: 2000-8-24 # author: Steve Loughran st...@so... ####################################################################### # # Assumptions: # # - the "java" executable/script is on the command path # - ANT_HOME has been set # - target platform uses ":" as classpath separator or perl indicates it is dos/win32 # - target platform uses "/" as directory separator. #be fussy about variables use strict; #platform specifics (disabled) #use File::Spec::Functions; #turn warnings on during dev; generates a few spurious uninitialised var access warnings #use warnings; #and set $debug to 1 to turn on trace info my $debug=1; ####################################################################### # # check to make sure environment is setup # my $HOME = $ENV{ANT_HOME}; if ($HOME eq "") { die "\n\nANT_HOME *MUST* be set!\n\n"; } my $JAVACMD = $ENV{JAVACMD}; $JAVACMD = "java" if $JAVACMD eq ""; my $onnetware = 0; if ($^O eq "NetWare") { $onnetware = 1; } my $oncygwin = ($^O eq "cygwin"); #ISSUE: what java wants to split up classpath varies from platform to platform #and perl is not too hot at hinting which box it is on. #here I assume ":" 'cept on win32, dos, and netware. Add extra tests here as needed. my $s=":"; if(($^O eq "MSWin32") || ($^O eq "dos") || ($^O eq "cygwin") || ($onnetware == 1)) { $s=";"; } #build up standard classpath my $localpath = "$HOME/lib/ant-launcher.jar"; #set JVM options and Ant arguments, if any my @ANT_OPTS=split(" ", $ENV{ANT_OPTS}); my @ANT_ARGS=split(" ", $ENV{ANT_ARGS}); #jikes if($ENV{JIKESPATH} ne "") { push @ANT_OPTS, "-Djikes.class.path=$ENV{JIKESPATH}"; } #construct arguments to java my @ARGS; push @ARGS, @ANT_OPTS; my $CYGHOME = ""; my $classpath=$ENV{CLASSPATH}; if ($oncygwin == 1) { $localpath = `cygpath --path --windows $localpath`; chomp ($localpath); if (! $classpath eq "") { $classpath = `cygpath --path --windows "$classpath"`; chomp ($classpath); } $HOME = `cygpath --path --windows $HOME`; chomp ($HOME); $CYGHOME = `cygpath --path --windows $ENV{HOME}`; chomp ($CYGHOME); } push @ARGS, "-classpath", "$localpath"; push @ARGS, "-Dant.home=$HOME"; if ( ! $CYGHOME eq "" ) { push @ARGS, "-Dcygwin.user.home=\"$CYGHOME\"" } push @ARGS, "org.apache.tools.ant.launch.Launcher", @ANT_ARGS; push @ARGS, @ARGV; if (! $classpath eq "") { if ($onnetware == 1) { # make classpath literally $CLASSPATH # this is to avoid pushing us over the 512 character limit # even skip the ; - that is already in $localpath push @ARGS, "-lib", "\$CLASSPATH"; } else { push @ARGS, "-lib", "$classpath"; } } print "\n $JAVACMD @ARGS\n\n" if ($debug); my $returnValue = system $JAVACMD, @ARGS; if ($returnValue eq 0) { exit 0; } else { # only 0 and 1 are widely recognized as exit values # so change the exit value to 1 exit 1; } --- NEW FILE: ant.cmd --- /* Copyright 2003-2004 The Apache Software Foundation 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. Run ant */ '@echo off' parse arg mode envarg '::' antarg if mode\='.' & mode\='..' & mode\='/' then do envarg = mode envarg mode = '' end if antarg = '' then do antarg = envarg envarg = '' end x = setlocal() env="OS2ENVIRONMENT" antenv = _getenv_('antenv') if _testenv_() = 0 then interpret 'call "' || antenv || '"' '"' || envarg || '"' if mode = '' then mode = _getenv_('ANT_MODE' '..') if mode \= '/' then do runrc = _getenv_('runrc') antrc = _getenv_('antrc' 'antrc.cmd') if mode = '..' then mode = '-r' else mode = '' interpret 'call "' || runrc || '"' antrc '"' || mode || '"' end if _testenv_() = 0 then do say 'Ant environment is not set properly' x = endlocal() exit 16 end settings = '-Dant.home=' || ANT_HOME '-Djava.home=' || JAVA_HOME java = _getenv_('javacmd' 'java') opts = value('ANT_OPTS',,env) args = value('ANT_ARGS',,env) lcp = value('LOCALCLASSPATH',,env) cp = value('CLASSPATH',,env) if value('ANT_USE_CP',,env) \= '' then do if lcp \= '' & right(lcp, 1) \= ';' then lcp = lcp || ';' lcp = lcp || cp 'SET CLASSPATH=' end if lcp\='' then lcp = '-classpath' lcp cmd = java opts lcp '-jar' ANT_HOME ||'\lib\ant-launcher.jar' settings args antarg launcher = stream(ANT_HOME ||'\lib\ant-launcher.jar', 'C', 'query exists') if launcher = '' then entry = 'org.apache.tools.ant.Main' else entry = 'org.apache.tools.ant.launch.Launcher' java opts lcp entry settings args antarg x = endlocal() return rc _testenv_: procedure expose env ANT_HOME JAVA_HOME ANT_HOME = value('ANT_HOME',,env) if ANT_HOME = '' then return 0 JAVA_HOME = value('JAVA_HOME',,env) if JAVA_HOME = '' then return 0 cp = translate(value('CLASSPATH',,env)) if pos(translate(ANT_HOME), cp) = 0 then return 0 if pos(translate(JAVA_HOME), cp) = 0 then return 0 return 1 _getenv_: procedure expose env parse arg envar default if default = '' then default = envar var = value(translate(envar),,env) if var = '' then var = default return var --- NEW FILE: complete-ant-cmd.pl --- #!/usr/bin/perl # # Copyright 2001,2004 The Apache Software Foundation # # 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. # # A script to allow Bash or Z-Shell to complete an Ant command-line. # # To install for Bash 2.0 or better, add the following to ~/.bashrc: # # $ complete -C complete-ant-cmd ant build.sh # # To install for Z-Shell 2.5 or better, add the following to ~/.zshrc: # # function ant_complete () { # local args_line args # read -l args_line # set -A args $args_line # set -A reply $(COMP_LINE=$args_line complete-ant-cmd ${args[1]} $1) # } # compctl -K ant_complete ant build.sh # # @author Mike Williams <mi...@co...> my $cmdLine = $ENV{'COMP_LINE'}; my $antCmd = $ARGV[0]; my $word = $ARGV[1]; my @completions; if ($word =~ /^-/) { list( restrict( $word, getArguments() )); } elsif ($cmdLine =~ /-(f|buildfile)\s+\S*$/) { list( getBuildFiles($word) ); } else { list( restrict( $word, getTargets() )); } exit(0); sub list { for (@_) { print "$_\n"; } } sub restrict { my ($word, @completions) = @_; grep( /^\Q$word\E/, @completions ); } sub getArguments { qw(-buildfile -debug -emacs -f -find -help -listener -logfile -logger -projecthelp -quiet -verbose -version); } sub getBuildFiles { my ($word) = @_; grep( /\.xml$/, glob( "$word*" )); } sub getTargets { # Look for build-file my $buildFile = 'build.xml'; if ($cmdLine =~ /-(f|buildfile)\s+(\S+)/) { $buildFile = $2; } return () unless (-f $buildFile); # Run "ant -projecthelp" to list targets. Keep a cache of results in a # cache-file. my $cacheFile = $buildFile; $cacheFile =~ s|(.*/)?(.*)|${1}.ant-targets-${2}|; if ((!-e $cacheFile) || (-M $buildFile) < (-M $cacheFile)) { open( CACHE, '>'.$cacheFile ) || die "can\'t write $cacheFile: $!\n"; open( HELP, "$antCmd -projecthelp -f '$buildFile'|" ) || return(); my %targets; while( <HELP> ) { if (/^\s+(\S+)/) { $targets{$1}++; } } my @targets = sort keys %targets; for (@targets) { print CACHE "$_\n"; } return @targets; } # Read the target-cache open( CACHE, $cacheFile ) || die "can\'t read $cacheFile: $!\n"; my @targets; while (<CACHE>) { chop; s/\r$//; # for Cygwin push( @targets, $_ ); } close( CACHE ); @targets; } |
Update of /cvsroot/mocklib/gwtmocklib/input/javasrc/com/google/gwt/sample/dynatable/client In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv23230/input/javasrc/com/google/gwt/sample/dynatable/client Added Files: SchoolCalendarWidget.java Student.java Person.java DynaTableDataProvider.java Schedule.java DynaTableWidget.java SchoolCalendarServiceAsync.java Professor.java SchoolCalendarService.java DynaTable.java TimeSlot.java DayFilterWidget.java Log Message: first commit of gwtmocklib module. --- NEW FILE: DayFilterWidget.java --- /* * Copyright 2006 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the * License for the specific language governing permissions and limitations under * the License. */ package com.google.gwt.sample.dynatable.client; import com.google.gwt.user.client.ui.Button; import com.google.gwt.user.client.ui.CheckBox; import com.google.gwt.user.client.ui.ClickListener; import com.google.gwt.user.client.ui.Composite; import com.google.gwt.user.client.ui.HasAlignment; import com.google.gwt.user.client.ui.HorizontalPanel; import com.google.gwt.user.client.ui.VerticalPanel; import com.google.gwt.user.client.ui.Widget; public class DayFilterWidget extends Composite { private class DayCheckBox extends CheckBox { public DayCheckBox(String caption, int day) { super(caption); // Remember custom data for this widget. this.day = day; // Use a shared listener to save memory. addClickListener(dayCheckBoxListener); // Initialize based on the calendar's current value. setChecked(calendar.getDayIncluded(day)); } public final int day; } private class DayCheckBoxListener implements ClickListener { public void onClick(Widget sender) { DayCheckBox dayCheckBox = ((DayCheckBox) sender); calendar.setDayIncluded(dayCheckBox.day, dayCheckBox.isChecked()); } } public DayFilterWidget(SchoolCalendarWidget calendar) { this.calendar = calendar; setWidget(outer); setStyleName("DynaTable-DayFilterWidget"); outer.add(new DayCheckBox("Sunday", 0)); outer.add(new DayCheckBox("Monday", 1)); outer.add(new DayCheckBox("Tuesday", 2)); outer.add(new DayCheckBox("Wednesday", 3)); outer.add(new DayCheckBox("Thursday", 4)); outer.add(new DayCheckBox("Friday", 5)); outer.add(new DayCheckBox("Saturday", 6)); Button buttonAll = new Button("All", new ClickListener() { public void onClick(Widget sender) { setAllCheckBoxes(true); } }); Button buttonNone = new Button("None", new ClickListener() { public void onClick(Widget sender) { setAllCheckBoxes(false); } }); HorizontalPanel hp = new HorizontalPanel(); hp.setHorizontalAlignment(HasAlignment.ALIGN_CENTER); hp.add(buttonAll); hp.add(buttonNone); outer.add(hp); outer.setCellVerticalAlignment(hp, HasAlignment.ALIGN_BOTTOM); outer.setCellHorizontalAlignment(hp, HasAlignment.ALIGN_CENTER); } private void setAllCheckBoxes(boolean checked) { for (int i = 0, n = outer.getWidgetCount(); i < n; ++i) { Widget w = outer.getWidget(i); if (w instanceof DayCheckBox) { ((DayCheckBox) w).setChecked(checked); dayCheckBoxListener.onClick(w); } } } private final SchoolCalendarWidget calendar; private final VerticalPanel outer = new VerticalPanel(); private final DayCheckBoxListener dayCheckBoxListener = new DayCheckBoxListener(); } --- NEW FILE: Schedule.java --- /* * Copyright 2006 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the * License for the specific language governing permissions and limitations under * the License. */ package com.google.gwt.sample.dynatable.client; import com.google.gwt.user.client.rpc.IsSerializable; import java.util.ArrayList; import java.util.Iterator; import java.util.List; public class Schedule implements IsSerializable { public Schedule() { } public void addTimeSlot(TimeSlot timeSlot) { timeSlots.add(timeSlot); } public String getDescription(boolean[] daysFilter) { String s = null; boolean anyDays; for (Iterator iter = timeSlots.iterator(); iter.hasNext();) { TimeSlot timeSlot = (TimeSlot) iter.next(); if (daysFilter[timeSlot.getDayOfWeek()]) { if (s == null) { s = timeSlot.getDescription(); } else { s += ", " + timeSlot.getDescription(); } } } if (s != null) { return s; } else { return ""; } } public String toString() { return getDescription(null); } /** * @gwt.typeArgs <com.google.gwt.sample.dynatable.client.TimeSlot> */ private List timeSlots = new ArrayList(); } --- NEW FILE: Person.java --- /* * Copyright 2006 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the * License for the specific language governing permissions and limitations under * the License. */ package com.google.gwt.sample.dynatable.client; import com.google.gwt.user.client.rpc.IsSerializable; public abstract class Person implements IsSerializable { public Person() { } public String getDescription() { return description; } public String getName() { return name; } public abstract String getSchedule(boolean[] daysFilter); public void setDescription(String description) { this.description = description; } public void setName(String name) { this.name = name; } private String description = "DESC"; private String name; } --- NEW FILE: Professor.java --- /* * Copyright 2006 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the * License for the specific language governing permissions and limitations under * the License. */ package com.google.gwt.sample.dynatable.client; public class Professor extends Person { public Professor() { } public String getSchedule(boolean[] daysFilter) { return teachingSchedule.getDescription(daysFilter); } public Schedule getTeachingSchedule() { return teachingSchedule; } private Schedule teachingSchedule = new Schedule(); } --- NEW FILE: SchoolCalendarService.java --- /* * Copyright 2006 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the * License for the specific language governing permissions and limitations under * the License. */ package com.google.gwt.sample.dynatable.client; import com.google.gwt.user.client.rpc.RemoteService; public interface SchoolCalendarService extends RemoteService { Person[] getPeople(int startIndex, int maxCount); } --- NEW FILE: Student.java --- /* * Copyright 2006 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the * License for the specific language governing permissions and limitations under * the License. */ package com.google.gwt.sample.dynatable.client; public class Student extends Person { public Schedule getClassSchedule() { return classSchedule; } public String getSchedule(boolean[] daysFilter) { return classSchedule.getDescription(daysFilter); } private Schedule classSchedule = new Schedule(); } --- NEW FILE: SchoolCalendarServiceAsync.java --- /* * Copyright 2006 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the * License for the specific language governing permissions and limitations under * the License. */ package com.google.gwt.sample.dynatable.client; import com.google.gwt.user.client.rpc.AsyncCallback; public interface SchoolCalendarServiceAsync { void getPeople(int startIndex, int maxCount, AsyncCallback callback); } --- NEW FILE: TimeSlot.java --- /* * Copyright 2006 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the * License for the specific language governing permissions and limitations under * the License. */ package com.google.gwt.sample.dynatable.client; import com.google.gwt.user.client.rpc.IsSerializable; public class TimeSlot implements IsSerializable, Comparable { private static final transient String[] DAYS = new String[]{ "Sun", "Mon", "Tues", "Wed", "Thurs", "Fri", "Sat"}; public TimeSlot() { } public TimeSlot(int zeroBasedDayOfWeek, int startMinutes, int endMinutes) { this.zeroBasedDayOfWeek = zeroBasedDayOfWeek; this.startMinutes = startMinutes; this.endMinutes = endMinutes; } public int compareTo(Object o) { TimeSlot other = (TimeSlot) o; if (zeroBasedDayOfWeek < other.zeroBasedDayOfWeek) { return -1; } else if (zeroBasedDayOfWeek > other.zeroBasedDayOfWeek) { return 1; } else { if (startMinutes < other.startMinutes) { return -1; } else if (startMinutes > other.startMinutes) { return 1; } } return 0; } public int getDayOfWeek() { return zeroBasedDayOfWeek; } public String getDescription() { return DAYS[zeroBasedDayOfWeek] + " " + getHrsMins(startMinutes) + "-" + getHrsMins(endMinutes); } public int getEndMinutes() { return endMinutes; } public int getStartMinutes() { return startMinutes; } public void setDayOfWeek(int zeroBasedDayOfWeek) { if (0 <= zeroBasedDayOfWeek && zeroBasedDayOfWeek < 7) { this.zeroBasedDayOfWeek = zeroBasedDayOfWeek; } else { throw new IllegalArgumentException("day must be in the range 0-6"); } } public void setEndMinutes(int endMinutes) { this.endMinutes = endMinutes; } public void setStartMinutes(int startMinutes) { this.startMinutes = startMinutes; } private String getHrsMins(int mins) { int hrs = mins / 60; boolean am = true; if (hrs > 12) { hrs -= 12; } int remainder = mins % 60; String remain = String.valueOf(remainder); if(remainder < 10) remain = "0"+remainder; return hrs + ":" + remain; } private int endMinutes; private int startMinutes; private int zeroBasedDayOfWeek; } --- NEW FILE: SchoolCalendarWidget.java --- /* * Copyright 2006 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the * License for the specific language governing permissions and limitations under * the License. */ package com.google.gwt.sample.dynatable.client; import com.google.gwt.core.client.GWT; import com.google.gwt.user.client.Command; import com.google.gwt.user.client.DeferredCommand; import com.google.gwt.user.client.rpc.AsyncCallback; import com.google.gwt.user.client.rpc.ServiceDefTarget; import com.google.gwt.user.client.ui.Composite; public class SchoolCalendarWidget extends Composite { public class CalendarProvider implements DynaTableDataProvider { public CalendarProvider() { // Initialize the service. // calService = (SchoolCalendarServiceAsync) GWT .create(SchoolCalendarService.class); // By default, we assume we'll make RPCs to a servlet, but see // updateRowData(). There is special support for canned RPC responses. // (Which is a totally demo hack, by the way :-) // ServiceDefTarget target = (ServiceDefTarget) calService; target.setServiceEntryPoint("/gwtrpc/calendar"); } public void updateRowData(final int startRow, final int maxRows, final RowDataAcceptor acceptor) { // Check the simple cache first. // if (startRow == lastStartRow) { if (maxRows == lastMaxRows) { // Use the cached batch. // pushResults(acceptor, startRow, lastPeople); return; } } // Decide where to get the data. // This is very unusual. Normally, you'd set the service entry point // only once. But since this demo runs without servlet support, we // play a game with URLs to fetch canned RPC responses from static files. // So, as you might guess, this is really fragile: changing the number // of visible rows in the table will cause different batch sizes, and // the URL naming trick below will *definitely* break. // if (USE_STATIC_RPC_ANSWERS) { ServiceDefTarget target = (ServiceDefTarget) calService; String staticResponseURL = GWT.getModuleBaseURL(); staticResponseURL += "/calendar" + startRow + ".txt"; target.setServiceEntryPoint(staticResponseURL); } // Actually fetch the data remotely. // calService.getPeople(startRow, maxRows, new AsyncCallback() { public void onFailure(Throwable caught) { acceptor.failed(caught); } public void onSuccess(Object result) { Person[] people = (Person[]) result; lastStartRow = startRow; lastMaxRows = maxRows; lastPeople = people; pushResults(acceptor, startRow, people); } }); } private void pushResults(RowDataAcceptor acceptor, int startRow, Person[] people) { String[][] rows = new String[people.length][]; for (int i = 0, n = rows.length; i < n; i++) { Person person = people[i]; rows[i] = new String[3]; rows[i][0] = person.getName(); rows[i][1] = person.getDescription(); rows[i][2] = person.getSchedule(daysFilter); } acceptor.accept(startRow, rows); } private final SchoolCalendarServiceAsync calService; private int lastStartRow = -1; private int lastMaxRows = -1; private Person[] lastPeople; } public SchoolCalendarWidget(int visibleRows) { String[] columns = new String[]{"Name", "Description", "Schedule"}; String[] styles = new String[]{"name", "desc", "sched"}; dynaTable = new DynaTableWidget(calProvider, columns, styles, visibleRows); setWidget(dynaTable); } protected boolean getDayIncluded(int day) { return daysFilter[day]; } protected void onLoad() { dynaTable.refresh(); } protected void setDayIncluded(int day, boolean included) { if (daysFilter[day] == included) { // No change. // return; } daysFilter[day] = included; if (pendingRefresh == null) { pendingRefresh = new Command() { public void execute() { pendingRefresh = null; dynaTable.refresh(); } }; DeferredCommand.add(pendingRefresh); } } private final CalendarProvider calProvider = new CalendarProvider(); private final boolean[] daysFilter = new boolean[]{ true, true, true, true, true, true, true}; private final DynaTableWidget dynaTable; private Command pendingRefresh; private final static boolean USE_STATIC_RPC_ANSWERS = false; } --- NEW FILE: DynaTableDataProvider.java --- /* * Copyright 2006 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the * License for the specific language governing permissions and limitations under * the License. */ package com.google.gwt.sample.dynatable.client; public interface DynaTableDataProvider { interface RowDataAcceptor { void accept(int startRow, String[][] rows); void failed(Throwable caught); } void updateRowData(int startRow, int maxRows, RowDataAcceptor acceptor); } --- NEW FILE: DynaTableWidget.java --- /* * Copyright 2006 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the * License for the specific language governing permissions and limitations under * the License. */ package com.google.gwt.sample.dynatable.client; import com.google.gwt.sample.dynatable.client.DynaTableDataProvider.RowDataAcceptor; import com.google.gwt.user.client.ui.Button; import com.google.gwt.user.client.ui.ClickListener; import com.google.gwt.user.client.ui.Composite; import com.google.gwt.user.client.ui.DockPanel; import com.google.gwt.user.client.ui.Grid; import com.google.gwt.user.client.ui.HasAlignment; import com.google.gwt.user.client.ui.HorizontalPanel; import com.google.gwt.user.client.ui.HTML; import com.google.gwt.user.client.ui.Widget; public class DynaTableWidget extends Composite { private class NavBar extends Composite implements ClickListener { public NavBar() { setWidget(bar); bar.setStyleName("navbar"); status.setStyleName("status"); HorizontalPanel buttons = new HorizontalPanel(); buttons.add(gotoFirst); buttons.add(gotoPrev); buttons.add(gotoNext); bar.add(buttons, DockPanel.EAST); bar.setCellHorizontalAlignment(buttons, DockPanel.ALIGN_RIGHT); bar.add(status, DockPanel.CENTER); bar.setVerticalAlignment(DockPanel.ALIGN_MIDDLE); bar.setCellHorizontalAlignment(status, HasAlignment.ALIGN_RIGHT); bar.setCellVerticalAlignment(status, HasAlignment.ALIGN_MIDDLE); bar.setCellWidth(status, "100%"); // Initialize prev & first button to disabled. // gotoPrev.setEnabled(false); gotoFirst.setEnabled(false); } public void onClick(Widget sender) { if (sender == gotoNext) { startRow += getDataRowCount(); refresh(); } else if (sender == gotoPrev) { startRow -= getDataRowCount(); if (startRow < 0) { startRow = 0; } refresh(); } else if (sender == gotoFirst) { startRow = 0; refresh(); } } public final DockPanel bar = new DockPanel(); public final Button gotoFirst = new Button("<<", this); public final Button gotoNext = new Button(">", this); public final Button gotoPrev = new Button("<", this); public final HTML status = new HTML(); } private class RowDataAcceptorImpl implements RowDataAcceptor { public void accept(int startRow, String[][] data) { int destRowCount = getDataRowCount(); int destColCount = grid.getCellCount(0); assert (data.length <= destRowCount) : "Too many rows"; int srcRowIndex = 0; int srcRowCount = data.length; int destRowIndex = 1; // skip navbar row for (; srcRowIndex < srcRowCount; ++srcRowIndex, ++destRowIndex) { String[] srcRowData = data[srcRowIndex]; assert (srcRowData.length == destColCount) : " Column count mismatch"; for (int srcColIndex = 0; srcColIndex < destColCount; ++srcColIndex) { String cellHTML = srcRowData[srcColIndex]; grid.setText(destRowIndex, srcColIndex, cellHTML); } } // Clear remaining table rows. // boolean isLastPage = false; for (; destRowIndex < destRowCount + 1; ++destRowIndex) { isLastPage = true; for (int destColIndex = 0; destColIndex < destColCount; ++destColIndex) { grid.clearCell(destRowIndex, destColIndex); } } // Synchronize the nav buttons. // navbar.gotoNext.setEnabled(!isLastPage); navbar.gotoFirst.setEnabled(startRow > 0); navbar.gotoPrev.setEnabled(startRow > 0); // Update the status message. // setStatusText((startRow + 1) + " - " + (startRow + srcRowCount)); } public void failed(Throwable caught) { String msg = "Failed to access data"; if (caught != null) { msg += ": " + caught.getMessage(); } setStatusText(msg); } } public DynaTableWidget(DynaTableDataProvider provider, String[] columns, String[] columnStyles, int rowCount) { if (columns.length == 0) { throw new IllegalArgumentException( "expecting a positive number of columns"); } if (columnStyles != null && columns.length != columnStyles.length) { throw new IllegalArgumentException("expecting as many styles as columns"); } this.provider = provider; setWidget(outer); grid.setStyleName("table"); outer.add(navbar, DockPanel.NORTH); outer.add(grid, DockPanel.CENTER); initTable(columns, columnStyles, rowCount); setStyleName("DynaTable-DynaTableWidget"); } private void initTable(String[] columns, String[] columnStyles, int rowCount) { // Set up the header row. It's one greater than the number of visible rows. // grid.resize(rowCount+1, columns.length); for (int i = 0, n = columns.length; i < n; i++) { String caption = columns[i]; final int colIndex = i; grid.setText(0, i, columns[i]); if (columnStyles != null) { grid.getCellFormatter().setStyleName(0, i, columnStyles[i] + " header"); } } } public void setStatusText(String text) { navbar.status.setText(text); } public void clearStatusText() { navbar.status.setHTML(" "); } public void refresh() { // Disable buttons temporarily to stop the user from running off the end. // navbar.gotoFirst.setEnabled(false); navbar.gotoPrev.setEnabled(false); navbar.gotoNext.setEnabled(false); setStatusText("Please wait..."); provider.updateRowData(startRow, grid.getRowCount() - 1, acceptor); } public void setRowCount(int rows) { grid.resizeRows(rows); } private int getDataRowCount() { return grid.getRowCount() - 1; } private final RowDataAcceptor acceptor = new RowDataAcceptorImpl(); private final NavBar navbar = new NavBar(); private final DockPanel outer = new DockPanel(); private final DynaTableDataProvider provider; private int startRow = 0; private final Grid grid = new Grid(); } --- NEW FILE: DynaTable.java --- /* * Copyright 2006 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the * License for the specific language governing permissions and limitations under * the License. */ package com.google.gwt.sample.dynatable.client; import com.google.gwt.core.client.EntryPoint; import com.google.gwt.user.client.ui.RootPanel; public class DynaTable implements EntryPoint { public void onModuleLoad() { // Find the slot for the calendar widget. // RootPanel slot = RootPanel.get("calendar"); if (slot != null) { SchoolCalendarWidget calendar = new SchoolCalendarWidget(15); slot.add(calendar); // Find the slot for the days filter widget. // slot = RootPanel.get("days"); if (slot != null) { DayFilterWidget filter = new DayFilterWidget(calendar); slot.add(filter); } } } } |
From: Nobody <fas...@us...> - 2006-09-12 01:21:04
|
Update of /cvsroot/mocklib/gwtmocklib/input/webroot/WEB-INF In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv23230/input/webroot/WEB-INF Added Files: README.txt web.xml Log Message: first commit of gwtmocklib module. --- NEW FILE: web.xml --- <?xml version="1.0" encoding="UTF-8"?> <web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"> <servlet> <servlet-name>SchoolCalendarService</servlet-name> <servlet-class>com.google.gwt.sample.dynatable.server.SchoolCalendarServiceImpl</servlet-class> </servlet> <servlet-mapping> <servlet-name>SchoolCalendarService</servlet-name> <url-pattern>/calendar</url-pattern> </servlet-mapping> <welcome-file-list> <welcome-file>index.jsf</welcome-file> <welcome-file>index.jsp</welcome-file> <welcome-file>index.html</welcome-file> </welcome-file-list> </web-app> --- NEW FILE: README.txt --- This directory is for the web.xml file, and/or faces-config.xml file, etc. etc. ie. all the files that belong in WEB-INF belong here. |
From: Nobody <fas...@us...> - 2006-09-12 01:21:04
|
Update of /cvsroot/mocklib/gwtmocklib/input/javasrc/biz/xsoftware/manifest In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv23230/input/javasrc/biz/xsoftware/manifest Added Files: ManifestUtilImpl.java ManifestInfo.java TestManifestInfo.java Log Message: first commit of gwtmocklib module. --- NEW FILE: ManifestUtilImpl.java --- /* * Created on Sep 19, 2004 * * FIXME To change the template for this generated file go to * Window - Preferences - Java - Code Style - Code Templates */ package biz.xsoftware.manifest; import java.io.File; import java.net.URL; import java.util.jar.Attributes; import java.util.jar.Manifest; import java.util.logging.Logger; /** * @author Dean Hiller * * FIXME To change the template for this generated type comment go to * Window - Preferences - Java - Code Style - Code Templates */ public class ManifestUtilImpl implements ManifestInfo.ManifestUtil { private static final Logger log = Logger.getLogger(ManifestUtilImpl.class.getName()); public File getFile(URL url) { log.finest("url="+url); String filePart = url.getFile(); log.finest("filePart from url="+filePart); String nameWithClass = filePart.substring(5, filePart.length()); log.finest("nameWithClass="+nameWithClass); int index = nameWithClass.indexOf("!"); log.finest("index="+index); String fileName = nameWithClass.substring(0, index); log.finest("fileName of buildtemplate="+fileName); File f = new File(fileName); if(!f.exists()) { log.warning("Bug, Exiting System. Could not find file="+fileName); System.exit(1); } log.finer("returning file="+f.getAbsolutePath()); return f; } /* (non-Javadoc) * @see biz.xsoftware.manifest.ManifestInfo.SystemInterface#exit(int) */ public void exit(int code) { System.exit(code); } public String getMainClass(Manifest manifest) { Attributes attr = manifest.getMainAttributes(); String s = attr.getValue("SubMain-Class"); return s.trim(); } //dummy main for testing purposes!!! public static void main(String[] args) { log.fine("just throwing an exception for testing purposes"); throw new RuntimeException("Just for testing only"); } } --- NEW FILE: TestManifestInfo.java --- /* * Created on Sep 11, 2004 * */ package biz.xsoftware.manifest; import java.io.File; import java.net.URL; import java.util.jar.Manifest; import junit.framework.TestCase; /** * This is purely so emma always always reports code coverage * numbers on everything */ public class TestManifestInfo extends TestCase { private static final String DUMMY = "dummy"; private File jarFile; /** * @param arg0 */ public TestManifestInfo(String arg0) { super(arg0); } public void setUp() { String jarLoc = System.getProperty("jar.name"); if(jarLoc != null) //for tests run from ant jarFile = new File(jarLoc); else //for tests run from eclipse jarFile = new File("output/jardist/projectname.jar"); } public void testManifestInfo() throws Throwable { FakeJarLocator mock = new FakeJarLocator(jarFile, "should.not.matter.class"); ManifestInfo.setJarLocator(mock); ManifestInfo.main(new String[] {"-version"}); ManifestInfo.main(new String[] {"-manifest"}); String version = new ManifestInfo().getVersion(); assertEquals("version from build.xml should equal version in jar", System.getProperty("version"), version); } public void testRunMainClass() throws Throwable { FakeJarLocator mock = new FakeJarLocator(jarFile, TestManifestInfo.class.getName()); ManifestInfo.setJarLocator(mock); ManifestInfo.main(new String[] {DUMMY}); assertTrue("should have one argument", argsLen == 1); assertEquals("variable should have been passed through", DUMMY, dummyArg); } public void testExceptionFromMainClass() throws Throwable { FakeJarLocator mock = new FakeJarLocator(jarFile, ManifestUtilImpl.class.getName()); ManifestInfo.setJarLocator(mock); ManifestInfo.main(new String[0]); } public void testClassNotFound() throws Throwable { FakeJarLocator mock = new FakeJarLocator(jarFile, "this.class.is.not.found"); ManifestInfo.setJarLocator(mock); ManifestInfo.main(new String[0]); } public void testTOOLSJAVAMain() throws Throwable { FakeJarLocator mock = new FakeJarLocator(jarFile, " TOOLS.JAVA.Main "); ManifestInfo.setJarLocator(mock); ManifestInfo.main(new String[0]); } public void testNullClassName() throws Throwable { FakeJarLocator mock = new FakeJarLocator(jarFile, null); ManifestInfo.setJarLocator(mock); ManifestInfo.main(new String[0]); } public void testGetMainClass() { Manifest mf = new Manifest(); mf.getMainAttributes().putValue("SubMain-Class", " xx "); ManifestUtilImpl util = new ManifestUtilImpl(); String s = util.getMainClass(mf); assertEquals("should have trimmed the value", "xx", s); } public void testGetFile() throws Exception { File f = jarFile; assertTrue("file should exist before we test this", f.exists()); URL url = f.toURL(); URL urlToClassFile = new URL("file", null, -1, url+"!/biz/xsoftware/buildtemplate/Util.class"); File tmp = new ManifestUtilImpl().getFile(urlToClassFile); assertNotNull("Should return a real file", tmp); assertTrue("file should still exist", tmp.exists()); } private static class FakeJarLocator implements ManifestInfo.ManifestUtil { private File file; private String mainClass; public FakeJarLocator(File f, String mainClass) { this.file = f; this.mainClass = mainClass; } public File getFile(URL url) { return file; } public void exit(int code) { //do nothing!!! } public String getMainClass(Manifest manifest) { return mainClass; } } //dummy main method for testing!!! public static void main(String[] args) { argsLen = args.length; dummyArg = args[0]; } private static int argsLen; private static String dummyArg; } --- NEW FILE: ManifestInfo.java --- /* * Created on Jul 9, 2004 * * To change the template for this generated file go to * Window - Preferences - Java - Code Generation - Code and Comments */ package biz.xsoftware.manifest; import java.io.File; import java.io.IOException; import java.lang.reflect.Method; import java.net.URL; import java.util.Iterator; import java.util.Set; import java.util.Map.Entry; import java.util.jar.Attributes; import java.util.jar.JarFile; import java.util.jar.Manifest; import java.util.logging.Level; import java.util.logging.Logger; /** * Miscellaneous class that just prints the version of the mock object jar * getting it from the manifest file. * * @author Dean Hiller */ public class ManifestInfo { private static final Logger log = Logger.getLogger(ManifestInfo.class.getName()); private static ManifestUtil util = new ManifestUtilImpl(); //private Package thePackage; private Manifest manifest; /** * The main program for Version that prints the version info from * the manifest file. * * java -jar xxx.jar * 1. runs SubMain-Class in manifest file * 2. If SubMain-Class is default value or "", prints usage info * for -manifest and -version * * java -jar xxx.jar -version * 1. prints version info * * java -jar xxx.jar -manifest * 1. prints all manifest contents. * * @param args Ignores all arguments. */ public static void main(String[] args) throws Throwable { try { run(args); } catch(Throwable e) { log.log(Level.WARNING, "Exception occurred", e); throw e; } } public static void run(String[] args) throws IOException { ManifestInfo manifestInfo = new ManifestInfo(); if(args.length > 0) { if("-manifest".equals(args[0])) { System.out.println(""+manifestInfo); return; } else if("-version".equals(args[0])) { System.out.println(manifestInfo.getFullVersionInfo()); return; } } String className = util.getMainClass(manifestInfo.getManifest()); if(className == null) className = ""; if("TOOLS.JAVA.Main".equals(className.trim()) || "".equals(className)) { System.err.println("Usage:"); System.err.println("1. java -jar <jarfile> -version"); System.err.println("2. java -jar <jarfile> -manifest"); } else { runProgram(className, args); } util.exit(1); } static void runProgram(String className, String[] args) { String msg = ""; ClassLoader cl = ManifestInfo.class.getClassLoader(); try { Class c = cl.loadClass(className); log.finest("class="+c); Method m = c.getMethod("main", new Class[] {String[].class}); m.invoke(null, new Object[] { args }); } catch(ClassNotFoundException e) { msg = "Class in manifest not found in classpath\n" +"Fix the ant.properties file to refer to the\n" +"main class or refer to nothing\n" +"class="+className; System.out.println(msg); } catch(NoSuchMethodException e) { msg = "You have specified a class that doesn't" +"have a main method in ant.properties file." +"class="+className; System.out.println(msg); } catch(Exception e) { msg = "\n\n2. Unknown failure. Contact buildtemplate owner"; log.log(Level.WARNING, "Exception occurred", e); System.out.println(msg); } util.exit(1); } public static void setJarLocator(ManifestUtil l) { util = l; } /** * Constructor that takes a class to get the version information * from out of the manifest. Uses the class's package to retrieve * the manifest version info. * @param c The Class on whose package to use to get version info. */ public ManifestInfo() throws IOException { URL url = ManifestInfo.class.getResource("ManifestInfo.class"); //set manifest from jar file File f = util.getFile(url); JarFile jarFile = new JarFile(f); manifest = jarFile.getManifest(); //set the package of this guy(not really needed as we could get all this info //directly from manifest) //String name = ManifestInfo.class.getName(); //int index = name.lastIndexOf("."); //String packageName = name.substring(0, index); //thePackage = Package.getPackage(packageName); } private Manifest getManifest() { return manifest; } public String getVersion() { Attributes attr = manifest.getMainAttributes(); String version = attr.getValue("Implementation-Version"); version = version.trim(); int index = version.indexOf(" "); version = version.substring(0, index); return version; } public String getFullVersionInfo() { Attributes attr = manifest.getMainAttributes(); String retVal = attr.getValue("Implementation-Title")+" information..."; retVal += "\nwebsite= "+attr.getValue("Implementation-Vendor"); retVal += "\nbuilt by= "+attr.getValue("Built-By"); retVal += "\nclasspath= "+attr.getValue("Class-Path"); retVal += "\nversion= "+attr.getValue("Implementation-Version")+"\n"; return retVal; } /** * Prints the version info the Version represents. * * @see java.lang.Object#toString() */ public String toString() { StringBuffer manifestInfo = new StringBuffer(); Attributes attr = manifest.getMainAttributes(); Set entries = attr.entrySet(); Iterator iter = entries.iterator(); while(iter.hasNext()) { Entry entry = (Entry)iter.next(); manifestInfo.append(entry.getKey()).append("=").append(entry.getValue()).append("\n"); } return manifestInfo+""; } public interface ManifestUtil { public File getFile(URL url); /** * @param manifest * @return */ public String getMainClass(Manifest manifest); public void exit(int code); } } |
From: Nobody <fas...@us...> - 2006-09-12 01:21:04
|
Update of /cvsroot/mocklib/gwtmocklib/tools/findbugs/bin In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv23230/tools/findbugs/bin Added Files: findbugs mineBugHistory printAppVersion setBugDatabaseInfo findbugs.bat xpathFind filterBugs fbwrap defectDensity unionBugs convertXmlToText computeBugHistory addMessages listBugDatabaseInfo Log Message: first commit of gwtmocklib module. --- NEW FILE: computeBugHistory --- #! /bin/sh # Merge a historical bug collection and a bug collection, producing an updated # historical bug collection program="$0" # Follow symlinks until we get to the actual file. while [ -h "$program" ]; do link=`ls -ld "$program"` link=`expr "$link" : '.*-> \(.*\)'` if [ "`expr "$link" : '/.*'`" = 0 ]; then # Relative dir=`dirname "$program"` program="$dir/$link" else # Absolute program="$link" fi done # Assume findbugs home directory is the parent # of the directory containing the script (which should # normally be "$findbugs_home/bin"). dir=`dirname $program` findbugs_home="$dir/.." # Handle FHS-compliant installations (e.g., Fink) if [ -d "$findbugs_home/share/findbugs" ]; then findbugs_home="$findbugs_home/share/findbugs" fi # Make absolute findbugs_home=`cd $findbugs_home && /bin/pwd` fb_pathsep=':' # Handle cygwin, courtesy of Peter D. Stout fb_osname=`uname` if [ `expr "$fb_osname" : CYGWIN` -ne 0 ]; then findbugs_home=`cygpath --mixed "$findbugs_home"` fb_pathsep=';' fi if [ ! -d "$findbugs_home" ]; then echo "The path $findbugs_home," echo "which is where I think FindBugs is located," echo "does not seem to be a directory." exit 1 fi # Choose default java binary fb_javacmd=java if [ ! -z "$JAVA_HOME" ] && [ -x "$JAVA_HOME/bin/java" ]; then fb_javacmd=$JAVA_HOME/bin/java fi fb_mainclass=edu.umd.cs.findbugs.workflow.Update fb_javacmd=${fb_javacmd:-"java"} fb_maxheap=${fb_maxheap:-"-Xmx256m"} fb_appjar=${fb_appjar:-"$findbugs_home/lib/findbugs.jar"} set -f #echo command: \ exec $fb_javacmd \ -classpath $fb_appjar$fb_pathsep$CLASSPATH \ -Dfindbugs.home="$findbugs_home"\ $fb_maxheap $fb_jvmargs $fb_mainclass ${@:+"$@"} $fb_appargs # vim:ts=3 --- NEW FILE: unionBugs --- #! /bin/sh # Deprecated # Create the union of two results files, preserving # annotations in both files in the result. program="$0" # Follow symlinks until we get to the actual file. while [ -h "$program" ]; do link=`ls -ld "$program"` link=`expr "$link" : '.*-> \(.*\)'` if [ "`expr "$link" : '/.*'`" = 0 ]; then # Relative dir=`dirname "$program"` program="$dir/$link" else # Absolute program="$link" fi done # Assume findbugs home directory is the parent # of the directory containing the script (which should # normally be "$findbugs_home/bin"). dir=`dirname $program` findbugs_home="$dir/.." # Handle FHS-compliant installations (e.g., Fink) if [ -d "$findbugs_home/share/findbugs" ]; then findbugs_home="$findbugs_home/share/findbugs" fi # Make absolute findbugs_home=`cd $findbugs_home && /bin/pwd` fb_pathsep=':' # Handle cygwin, courtesy of Peter D. Stout fb_osname=`uname` if [ `expr "$fb_osname" : CYGWIN` -ne 0 ]; then findbugs_home=`cygpath --mixed "$findbugs_home"` fb_pathsep=';' fi if [ ! -d "$findbugs_home" ]; then echo "The path $findbugs_home," echo "which is where I think FindBugs is located," echo "does not seem to be a directory." exit 1 fi # Choose default java binary fb_javacmd=java if [ ! -z "$JAVA_HOME" ] && [ -x "$JAVA_HOME/bin/java" ]; then fb_javacmd=$JAVA_HOME/bin/java fi fb_mainclass=edu.umd.cs.findbugs.workflow.UnionResults fb_javacmd=${fb_javacmd:-"java"} fb_maxheap=${fb_maxheap:-"-Xmx256m"} fb_appjar=${fb_appjar:-"$findbugs_home/lib/findbugs.jar"} set -f #echo command: \ exec $fb_javacmd \ -classpath $fb_appjar$fb_pathsep$CLASSPATH \ -Dfindbugs.home="$findbugs_home"\ $fb_maxheap $fb_jvmargs $fb_mainclass ${@:+"$@"} $fb_appargs # vim:ts=3 --- NEW FILE: setBugDatabaseInfo --- #! /bin/sh program="$0" # Follow symlinks until we get to the actual file. while [ -h "$program" ]; do link=`ls -ld "$program"` link=`expr "$link" : '.*-> \(.*\)'` if [ "`expr "$link" : '/.*'`" = 0 ]; then # Relative dir=`dirname "$program"` program="$dir/$link" else # Absolute program="$link" fi done # Assume findbugs home directory is the parent # of the directory containing the script (which should # normally be "$findbugs_home/bin"). dir=`dirname $program` findbugs_home="$dir/.." # Handle FHS-compliant installations (e.g., Fink) if [ -d "$findbugs_home/share/findbugs" ]; then findbugs_home="$findbugs_home/share/findbugs" fi # Make absolute findbugs_home=`cd $findbugs_home && /bin/pwd` fb_pathsep=':' # Handle cygwin, courtesy of Peter D. Stout fb_osname=`uname` if [ `expr "$fb_osname" : CYGWIN` -ne 0 ]; then findbugs_home=`cygpath --mixed "$findbugs_home"` fb_pathsep=';' fi if [ ! -d "$findbugs_home" ]; then echo "The path $findbugs_home," echo "which is where I think FindBugs is located," echo "does not seem to be a directory." exit 1 fi # Choose default java binary fb_javacmd=java if [ ! -z "$JAVA_HOME" ] && [ -x "$JAVA_HOME/bin/java" ]; then fb_javacmd=$JAVA_HOME/bin/java fi fb_mainclass=edu.umd.cs.findbugs.workflow.SetBugDatabaseInfo fb_javacmd=${fb_javacmd:-"java"} fb_maxheap=${fb_maxheap:-"-Xmx256m"} fb_appjar=${fb_appjar:-"$findbugs_home/lib/findbugs.jar"} set -f #echo command: \ exec $fb_javacmd \ -classpath $fb_appjar$fb_pathsep$CLASSPATH \ -Dfindbugs.home="$findbugs_home"\ $fb_maxheap $fb_jvmargs $fb_mainclass ${@:+"$@"} $fb_appargs # vim:ts=3 --- NEW FILE: xpathFind --- #! /bin/sh program="$0" # Follow symlinks until we get to the actual file. while [ -h "$program" ]; do link=`ls -ld "$program"` link=`expr "$link" : '.*-> \(.*\)'` if [ "`expr "$link" : '/.*'`" = 0 ]; then # Relative dir=`dirname "$program"` program="$dir/$link" else # Absolute program="$link" fi done # Assume findbugs home directory is the parent # of the directory containing the script (which should # normally be "$findbugs_home/bin"). dir=`dirname $program` findbugs_home="$dir/.." # Handle FHS-compliant installations (e.g., Fink) if [ -d "$findbugs_home/share/findbugs" ]; then findbugs_home="$findbugs_home/share/findbugs" fi # Make absolute findbugs_home=`cd $findbugs_home && /bin/pwd` fb_pathsep=':' # Handle cygwin, courtesy of Peter D. Stout fb_osname=`uname` if [ `expr "$fb_osname" : CYGWIN` -ne 0 ]; then findbugs_home=`cygpath --mixed "$findbugs_home"` fb_pathsep=';' fi if [ ! -d "$findbugs_home" ]; then echo "The path $findbugs_home," echo "which is where I think FindBugs is located," echo "does not seem to be a directory." exit 1 fi # Choose default java binary fb_javacmd=java if [ ! -z "$JAVA_HOME" ] && [ -x "$JAVA_HOME/bin/java" ]; then fb_javacmd=$JAVA_HOME/bin/java fi fb_mainclass=edu.umd.cs.findbugs.xml.XPathFind fb_javacmd=${fb_javacmd:-"java"} fb_maxheap=${fb_maxheap:-"-Xmx256m"} fb_appjar=${fb_appjar:-"$findbugs_home/lib/findbugs.jar"} set -f #echo command: \ exec $fb_javacmd \ -classpath $fb_appjar$fb_pathsep$CLASSPATH \ -Dfindbugs.home="$findbugs_home"\ $fb_maxheap $fb_jvmargs $fb_mainclass ${@:+"$@"} $fb_appargs # vim:ts=3 --- NEW FILE: defectDensity --- #! /bin/sh # Generate a defect density table from a bug collection program="$0" # Follow symlinks until we get to the actual file. while [ -h "$program" ]; do link=`ls -ld "$program"` link=`expr "$link" : '.*-> \(.*\)'` if [ "`expr "$link" : '/.*'`" = 0 ]; then # Relative dir=`dirname "$program"` program="$dir/$link" else # Absolute program="$link" fi done # Assume findbugs home directory is the parent # of the directory containing the script (which should # normally be "$findbugs_home/bin"). dir=`dirname $program` findbugs_home="$dir/.." # Handle FHS-compliant installations (e.g., Fink) if [ -d "$findbugs_home/share/findbugs" ]; then findbugs_home="$findbugs_home/share/findbugs" fi # Make absolute findbugs_home=`cd $findbugs_home && /bin/pwd` fb_pathsep=':' # Handle cygwin, courtesy of Peter D. Stout fb_osname=`uname` if [ `expr "$fb_osname" : CYGWIN` -ne 0 ]; then findbugs_home=`cygpath --mixed "$findbugs_home"` fb_pathsep=';' fi if [ ! -d "$findbugs_home" ]; then echo "The path $findbugs_home," echo "which is where I think FindBugs is located," echo "does not seem to be a directory." exit 1 fi # Choose default java binary fb_javacmd=java if [ ! -z "$JAVA_HOME" ] && [ -x "$JAVA_HOME/bin/java" ]; then fb_javacmd=$JAVA_HOME/bin/java fi fb_mainclass=edu.umd.cs.findbugs.workflow.DefectDensity fb_javacmd=${fb_javacmd:-"java"} fb_maxheap=${fb_maxheap:-"-Xmx256m"} fb_appjar=${fb_appjar:-"$findbugs_home/lib/findbugs.jar"} set -f #echo command: \ exec $fb_javacmd \ -classpath $fb_appjar$fb_pathsep$CLASSPATH \ -Dfindbugs.home="$findbugs_home"\ $fb_maxheap $fb_jvmargs $fb_mainclass ${@:+"$@"} $fb_appargs # vim:ts=3 --- NEW FILE: listBugDatabaseInfo --- #! /bin/sh program="$0" # Follow symlinks until we get to the actual file. while [ -h "$program" ]; do link=`ls -ld "$program"` link=`expr "$link" : '.*-> \(.*\)'` if [ "`expr "$link" : '/.*'`" = 0 ]; then # Relative dir=`dirname "$program"` program="$dir/$link" else # Absolute program="$link" fi done # Assume findbugs home directory is the parent # of the directory containing the script (which should # normally be "$findbugs_home/bin"). dir=`dirname $program` findbugs_home="$dir/.." # Handle FHS-compliant installations (e.g., Fink) if [ -d "$findbugs_home/share/findbugs" ]; then findbugs_home="$findbugs_home/share/findbugs" fi # Make absolute findbugs_home=`cd $findbugs_home && /bin/pwd` fb_pathsep=':' # Handle cygwin, courtesy of Peter D. Stout fb_osname=`uname` if [ `expr "$fb_osname" : CYGWIN` -ne 0 ]; then findbugs_home=`cygpath --mixed "$findbugs_home"` fb_pathsep=';' fi if [ ! -d "$findbugs_home" ]; then echo "The path $findbugs_home," echo "which is where I think FindBugs is located," echo "does not seem to be a directory." exit 1 fi # Choose default java binary fb_javacmd=java if [ ! -z "$JAVA_HOME" ] && [ -x "$JAVA_HOME/bin/java" ]; then fb_javacmd=$JAVA_HOME/bin/java fi fb_mainclass=edu.umd.cs.findbugs.workflow.ListBugDatabaseInfo fb_javacmd=${fb_javacmd:-"java"} fb_maxheap=${fb_maxheap:-"-Xmx256m"} fb_appjar=${fb_appjar:-"$findbugs_home/lib/findbugs.jar"} set -f #echo command: \ exec $fb_javacmd \ -classpath $fb_appjar$fb_pathsep$CLASSPATH \ -Dfindbugs.home="$findbugs_home"\ $fb_maxheap $fb_jvmargs $fb_mainclass ${@:+"$@"} $fb_appargs # vim:ts=3 --- NEW FILE: mineBugHistory --- #! /bin/sh program="$0" # Follow symlinks until we get to the actual file. while [ -h "$program" ]; do link=`ls -ld "$program"` link=`expr "$link" : '.*-> \(.*\)'` if [ "`expr "$link" : '/.*'`" = 0 ]; then # Relative dir=`dirname "$program"` program="$dir/$link" else # Absolute program="$link" fi done # Assume findbugs home directory is the parent # of the directory containing the script (which should # normally be "$findbugs_home/bin"). dir=`dirname $program` findbugs_home="$dir/.." # Handle FHS-compliant installations (e.g., Fink) if [ -d "$findbugs_home/share/findbugs" ]; then findbugs_home="$findbugs_home/share/findbugs" fi # Make absolute findbugs_home=`cd $findbugs_home && /bin/pwd` fb_pathsep=':' # Handle cygwin, courtesy of Peter D. Stout fb_osname=`uname` if [ `expr "$fb_osname" : CYGWIN` -ne 0 ]; then findbugs_home=`cygpath --mixed "$findbugs_home"` fb_pathsep=';' fi if [ ! -d "$findbugs_home" ]; then echo "The path $findbugs_home," echo "which is where I think FindBugs is located," echo "does not seem to be a directory." exit 1 fi # Choose default java binary fb_javacmd=java if [ ! -z "$JAVA_HOME" ] && [ -x "$JAVA_HOME/bin/java" ]; then fb_javacmd=$JAVA_HOME/bin/java fi fb_mainclass=edu.umd.cs.findbugs.workflow.MineBugHistory fb_javacmd=${fb_javacmd:-"java"} fb_maxheap=${fb_maxheap:-"-Xmx256m"} fb_appjar=${fb_appjar:-"$findbugs_home/lib/findbugs.jar"} set -f #echo command: \ exec $fb_javacmd \ -classpath $fb_appjar$fb_pathsep$CLASSPATH \ -Dfindbugs.home="$findbugs_home"\ $fb_maxheap $fb_jvmargs $fb_mainclass ${@:+"$@"} $fb_appargs --- NEW FILE: findbugs.bat --- @echo off :: Launch FindBugs on a Windows system. :: Adapted from scripts found at http://www.ericphelps.com/batch/ :: This will only work on Windows NT or later! :: Don't affect environment outside of this invocation setlocal :: ---------------------------------------------------------------------- :: Set up default values :: ---------------------------------------------------------------------- set appjar=findbugsGUI.jar set javahome= set launcher=javaw.exe set start=start "FindBugs" set jvmargs= set debugArg= set conserveSpaceArg= set workHardArg= set args= set javaProps= set maxheap=256 :: Try finding the default FINDBUGS_HOME directory :: from the directory path of this script set default_findbugs_home=%~dp0.. :: Honor JAVA_HOME environment variable if it is set if "%JAVA_HOME%"=="" goto nojavahome if not exist "%JAVA_HOME%\bin\javaw.exe" goto nojavahome set javahome=%JAVA_HOME%\bin\ :nojavahome goto loop :: ---------------------------------------------------------------------- :: Process command-line arguments :: ---------------------------------------------------------------------- :shift2 shift :shift1 shift :loop :: Remove surrounding quotes from %1 and %2 set firstArg=%~1 set secondArg=%~2 if not "%firstArg%"=="-gui" goto notGui set appjar=findbugsGUI.jar set launcher=javaw.exe goto shift1 :notGui if not "%firstArg%"=="-textui" goto notTextui set appjar=findbugs.jar set launcher=java.exe set start= goto shift1 :notTextui if not "%firstArg%"=="-debug" goto notDebug set launcher=java.exe set start= set debugArg=-Dfindbugs.debug=true goto shift1 :notDebug if "%firstArg%"=="-home" set FINDBUGS_HOME=%secondArg% if "%firstArg%"=="-home" goto shift2 if "%firstArg%"=="-jvmArgs" set jvmargs=%secondArg% if "%firstArg%"=="-jvmArgs" goto shift2 if "%firstArg%"=="-maxHeap" set maxheap=%secondArg% if "%firstArg%"=="-maxHeap" goto shift2 if "%firstArg%"=="-conserveSpace" set conserveSpaceArg=-Dfindbugs.conserveSpace=true if "%firstArg%"=="-conserveSpace" goto shift1 if "%firstArg%"=="-workHard" set workHardArg=-Dfindbugs.workHard=true if "%firstArg%"=="-workHard" goto shift1 if "%firstArg%"=="-javahome" set javahome=%secondArg%\bin\ if "%firstArg%"=="-javahome" goto shift2 if "%firstArg%"=="-property" set javaProps=-D%secondArg% %javaProps% if "%firstArg%"=="-property" goto shift2 if "%firstArg%"=="-help" goto help if "%firstArg%"=="" goto launch set args=%args% "%firstArg%" goto shift1 :: ---------------------------------------------------------------------- :: Launch FindBugs :: ---------------------------------------------------------------------- :launch :: Make sure FINDBUGS_HOME is set. :: If it isn't, try using the default value based on the :: directory path of the invoked script. :: Note that this will fail miserably if the value of FINDBUGS_HOME :: has quote characters in it. if not "%FINDBUGS_HOME%"=="" goto checkHomeValid set FINDBUGS_HOME=%default_findbugs_home% :checkHomeValid if not exist "%FINDBUGS_HOME%\lib\%appjar%" goto homeNotSet :found_home :: Launch FindBugs! %start% "%javahome%%launcher%" %debugArg% %conserveSpaceArg% %workHardArg% %javaProps% "-Dfindbugs.home=%FINDBUGS_HOME%" -Xmx%maxheap%m %jvmargs% -jar "%FINDBUGS_HOME%\lib\%appjar%" %args% goto end :: ---------------------------------------------------------------------- :: Display usage information :: ---------------------------------------------------------------------- :help echo Usage: findbugs [options] echo -home dir Use dir as FINDBUGS_HOME echo -gui Use the Graphical UI (default behavior) echo -textui Use the Text UI echo -jvmArgs args Pass args to JVM echo -maxHeap size Set maximum Java heap size in megabytes (default %maxheap%) echo -javahome dir Specify location of JRE echo -help Display this message echo -debug Enable debug tracing in FindBugs echo -conserveSpace Conserve memory at the expense of precision echo All other options are passed to the FindBugs application goto end :: ---------------------------------------------------------------------- :: Report that FINDBUGS_HOME is not set (and was not specified) :: ---------------------------------------------------------------------- :homeNotSet echo Could not find FindBugs home directory. There may be a problem echo with the FindBugs installation. Try setting FINDBUGS_HOME, or echo re-installing. goto end :end --- NEW FILE: filterBugs --- #! /bin/sh # General purpose utility for filtering/transforming # bug collection and/or historical bug collections program="$0" # Follow symlinks until we get to the actual file. while [ -h "$program" ]; do link=`ls -ld "$program"` link=`expr "$link" : '.*-> \(.*\)'` if [ "`expr "$link" : '/.*'`" = 0 ]; then # Relative dir=`dirname "$program"` program="$dir/$link" else # Absolute program="$link" fi done # Assume findbugs home directory is the parent # of the directory containing the script (which should # normally be "$findbugs_home/bin"). dir=`dirname $program` findbugs_home="$dir/.." # Handle FHS-compliant installations (e.g., Fink) if [ -d "$findbugs_home/share/findbugs" ]; then findbugs_home="$findbugs_home/share/findbugs" fi # Make absolute findbugs_home=`cd $findbugs_home && /bin/pwd` fb_pathsep=':' # Handle cygwin, courtesy of Peter D. Stout fb_osname=`uname` if [ `expr "$fb_osname" : CYGWIN` -ne 0 ]; then findbugs_home=`cygpath --mixed "$findbugs_home"` fb_pathsep=';' fi if [ ! -d "$findbugs_home" ]; then echo "The path $findbugs_home," echo "which is where I think FindBugs is located," echo "does not seem to be a directory." exit 1 fi # Choose default java binary fb_javacmd=java if [ ! -z "$JAVA_HOME" ] && [ -x "$JAVA_HOME/bin/java" ]; then fb_javacmd=$JAVA_HOME/bin/java fi fb_mainclass=edu.umd.cs.findbugs.workflow.Filter fb_javacmd=${fb_javacmd:-"java"} fb_maxheap=${fb_maxheap:-"-Xmx256m"} fb_appjar=${fb_appjar:-"$findbugs_home/lib/findbugs.jar"} set -f #echo command: \ exec $fb_javacmd \ -classpath $fb_appjar$fb_pathsep$CLASSPATH \ -Dfindbugs.home="$findbugs_home"\ $fb_maxheap $fb_jvmargs $fb_mainclass ${@:+"$@"} $fb_appargs # vim:ts=3 --- NEW FILE: addMessages --- #! /bin/sh program="$0" # Follow symlinks until we get to the actual file. while [ -h "$program" ]; do link=`ls -ld "$program"` link=`expr "$link" : '.*-> \(.*\)'` if [ "`expr "$link" : '/.*'`" = 0 ]; then # Relative dir=`dirname "$program"` program="$dir/$link" else # Absolute program="$link" fi done # Assume findbugs home directory is the parent # of the directory containing the script (which should # normally be "$findbugs_home/bin"). dir=`dirname $program` findbugs_home="$dir/.." # Handle FHS-compliant installations (e.g., Fink) if [ -d "$findbugs_home/share/findbugs" ]; then findbugs_home="$findbugs_home/share/findbugs" fi # Make absolute findbugs_home=`cd $findbugs_home && /bin/pwd` fb_pathsep=':' # Handle cygwin, courtesy of Peter D. Stout fb_osname=`uname` if [ `expr "$fb_osname" : CYGWIN` -ne 0 ]; then findbugs_home=`cygpath --mixed "$findbugs_home"` fb_pathsep=';' fi if [ ! -d "$findbugs_home" ]; then echo "The path $findbugs_home," echo "which is where I think FindBugs is located," echo "does not seem to be a directory." exit 1 fi # Choose default java binary fb_javacmd=java if [ ! -z "$JAVA_HOME" ] && [ -x "$JAVA_HOME/bin/java" ]; then fb_javacmd=$JAVA_HOME/bin/java fi fb_mainclass=edu.umd.cs.findbugs.AddMessages fb_javacmd=${fb_javacmd:-"java"} fb_maxheap=${fb_maxheap:-"-Xmx256m"} fb_appjar=${fb_appjar:-"$findbugs_home/lib/findbugs.jar"} set -f #echo command: \ exec $fb_javacmd \ -classpath $fb_appjar$fb_pathsep$CLASSPATH \ -Dfindbugs.home="$findbugs_home"\ $fb_maxheap $fb_jvmargs $fb_mainclass ${@:+"$@"} $fb_appargs --- NEW FILE: convertXmlToText --- #! /bin/sh program="$0" # Follow symlinks until we get to the actual file. while [ -h "$program" ]; do link=`ls -ld "$program"` link=`expr "$link" : '.*-> \(.*\)'` if [ "`expr "$link" : '/.*'`" = 0 ]; then # Relative dir=`dirname "$program"` program="$dir/$link" else # Absolute program="$link" fi done # Assume findbugs home directory is the parent # of the directory containing the script (which should # normally be "$findbugs_home/bin"). dir=`dirname $program` findbugs_home="$dir/.." # Handle FHS-compliant installations (e.g., Fink) if [ -d "$findbugs_home/share/findbugs" ]; then findbugs_home="$findbugs_home/share/findbugs" fi # Make absolute findbugs_home=`cd $findbugs_home && /bin/pwd` fb_pathsep=':' # Handle cygwin, courtesy of Peter D. Stout fb_osname=`uname` if [ `expr "$fb_osname" : CYGWIN` -ne 0 ]; then findbugs_home=`cygpath --mixed "$findbugs_home"` fb_pathsep=';' fi if [ ! -d "$findbugs_home" ]; then echo "The path $findbugs_home," echo "which is where I think FindBugs is located," echo "does not seem to be a directory." exit 1 fi # Choose default java binary fb_javacmd=java if [ ! -z "$JAVA_HOME" ] && [ -x "$JAVA_HOME/bin/java" ]; then fb_javacmd=$JAVA_HOME/bin/java fi fb_mainclass=edu.umd.cs.findbugs.PrintingBugReporter fb_javacmd=${fb_javacmd:-"java"} fb_maxheap=${fb_maxheap:-"-Xmx256m"} fb_appjar=${fb_appjar:-"$findbugs_home/lib/findbugs.jar"} set -f #echo command: \ exec $fb_javacmd \ -classpath $fb_appjar$fb_pathsep$CLASSPATH \ -Dfindbugs.home="$findbugs_home"\ $fb_maxheap $fb_jvmargs $fb_mainclass ${@:+"$@"} $fb_appargs --- NEW FILE: printAppVersion --- #! /bin/sh program="$0" # Follow symlinks until we get to the actual file. while [ -h "$program" ]; do link=`ls -ld "$program"` link=`expr "$link" : '.*-> \(.*\)'` if [ "`expr "$link" : '/.*'`" = 0 ]; then # Relative dir=`dirname "$program"` program="$dir/$link" else # Absolute program="$link" fi done # Assume findbugs home directory is the parent # of the directory containing the script (which should # normally be "$findbugs_home/bin"). dir=`dirname $program` findbugs_home="$dir/.." # Handle FHS-compliant installations (e.g., Fink) if [ -d "$findbugs_home/share/findbugs" ]; then findbugs_home="$findbugs_home/share/findbugs" fi # Make absolute findbugs_home=`cd $findbugs_home && /bin/pwd` fb_pathsep=':' # Handle cygwin, courtesy of Peter D. Stout fb_osname=`uname` if [ `expr "$fb_osname" : CYGWIN` -ne 0 ]; then findbugs_home=`cygpath --mixed "$findbugs_home"` fb_pathsep=';' fi if [ ! -d "$findbugs_home" ]; then echo "The path $findbugs_home," echo "which is where I think FindBugs is located," echo "does not seem to be a directory." exit 1 fi # Choose default java binary fb_javacmd=java if [ ! -z "$JAVA_HOME" ] && [ -x "$JAVA_HOME/bin/java" ]; then fb_javacmd=$JAVA_HOME/bin/java fi fb_mainclass=edu.umd.cs.findbugs.workflow.PrintAppVersion fb_javacmd=${fb_javacmd:-"java"} fb_maxheap=${fb_maxheap:-"-Xmx256m"} fb_appjar=${fb_appjar:-"$findbugs_home/lib/findbugs.jar"} set -f #echo command: \ exec $fb_javacmd \ -classpath $fb_appjar$fb_pathsep$CLASSPATH \ -Dfindbugs.home="$findbugs_home"\ $fb_maxheap $fb_jvmargs $fb_mainclass ${@:+"$@"} $fb_appargs # vim:ts=3 --- NEW FILE: findbugs --- #! /bin/sh # Launch FindBugs from the command line. escape_arg() { echo "$1" | sed -e "s,\\([\\\"' ]\\),\\\\\\1,g" } program="$0" # Follow symlinks until we get to the actual file. while [ -h "$program" ]; do link=`ls -ld "$program"` link=`expr "$link" : '.*-> \(.*\)'` if [ "`expr "$link" : '/.*'`" = 0 ]; then # Relative dir=`dirname "$program"` program="$dir/$link" else # Absolute program="$link" fi done # Assume findbugs home directory is the parent # of the directory containing the script (which should # normally be "$findbugs_home/bin"). dir=`dirname $program` findbugs_home="$dir/.." # Handle FHS-compliant installations (e.g., Fink) if [ -d "$findbugs_home/share/findbugs" ]; then findbugs_home="$findbugs_home/share/findbugs" fi # Make absolute findbugs_home=`cd $findbugs_home && /bin/pwd` fb_pathsep=':' # Handle cygwin, courtesy of Peter D. Stout fb_osname=`uname` if [ `expr "$fb_osname" : CYGWIN` -ne 0 ]; then findbugs_home=`cygpath --mixed "$findbugs_home"` fb_pathsep=';' fi if [ ! -d "$findbugs_home" ]; then echo "The path $findbugs_home," echo "which is where I think FindBugs is located," echo "does not seem to be a directory." exit 1 fi # Choose default java binary fb_javacmd=java if [ ! -z "$JAVA_HOME" ] && [ -x "$JAVA_HOME/bin/java" ]; then fb_javacmd=$JAVA_HOME/bin/java fi maxheap=768 ShowHelpAndExit() { fb_appjar="$findbugs_home/lib/findbugsGUI.jar" fb_mainclass="edu.umd.cs.findbugs.ShowHelp" fb_javacmd=${fb_javacmd:-"java"} fb_maxheap=${fb_maxheap:-"-Xmx256m"} fb_appjar=${fb_appjar:-"$findbugs_home/lib/findbugs.jar"} set -f #echo command: \ exec $fb_javacmd \ -classpath $fb_appjar$fb_pathsep$CLASSPATH \ -Dfindbugs.home="$findbugs_home"\ $fb_maxheap $fb_jvmargs $fb_mainclass ${@:+"$@"} $fb_appargs exit 0 } # Set defaults fb_appjar="$findbugs_home/lib/findbugsGUI.jar" fb_mainclass="edu.umd.cs.findbugs.gui.FindBugsFrame" user_jvmargs='' debug_arg='' conservespace_arg='' workhard_arg='' user_props='' # Handle command line arguments. while [ $# -gt 0 ]; do case $1 in -gui) fb_appjar="$findbugs_home/lib/findbugsGUI.jar" fb_mainclass="edu.umd.cs.findbugs.gui.FindBugsFrame" ;; -textui) fb_appjar="$findbugs_home/lib/findbugs.jar" fb_mainclass="edu.umd.cs.findbugs.FindBugs" ;; -jvmArgs) shift user_jvmargs="$1" ;; -maxHeap) shift maxheap="$1" ;; -javahome) shift fb_javacmd="$1/bin/java" ;; -debug) debug_arg="-Dfindbugs.debug=true" ;; -conserveSpace) conservespace_arg="-Dfindbugs.conserveSpace=true" ;; -property) shift user_props="-D$1 $user_props" ;; -D*=*) user_props="$1 $user_props" ;; -version) fb_mainclass=edu.umd.cs.findbugs.Version fb_appargs="-release" while [ $# -gt 0 ]; do shift done fb_javacmd=${fb_javacmd:-"java"} fb_maxheap=${fb_maxheap:-"-Xmx256m"} fb_appjar=${fb_appjar:-"$findbugs_home/lib/findbugs.jar"} set -f #echo command: \ exec $fb_javacmd \ -classpath $fb_appjar$fb_pathsep$CLASSPATH \ -Dfindbugs.home="$findbugs_home"\ $fb_maxheap $fb_jvmargs $fb_mainclass ${@:+"$@"} $fb_appargs exit 0 ;; -help) ShowHelpAndExit ;; # All unrecognized arguments will be accumulated and # passed to the application. *) fb_appargs="$fb_appargs `escape_arg "$1"`" ;; esac shift done fb_jvmargs="$user_jvmargs $debug_arg $conservespace_arg $workhard_arg $user_props" fb_maxheap="-Xmx${maxheap}m" # Extra JVM args for MacOSX. if [ $fb_osname = "Darwin" ]; then fb_jvmargs="$fb_jvmargs \ -Xdock:name=FindBugs -Xdock:icon=${findbugs_home}/lib/buggy.icns \ -Dapple.laf.useScreenMenuBar=true" fi fb_javacmd=${fb_javacmd:-"java"} fb_maxheap=${fb_maxheap:-"-Xmx256m"} fb_appjar=${fb_appjar:-"$findbugs_home/lib/findbugs.jar"} set -f #echo command: \ exec $fb_javacmd \ -classpath $fb_appjar$fb_pathsep$CLASSPATH \ -Dfindbugs.home="$findbugs_home"\ $fb_maxheap $fb_jvmargs $fb_mainclass ${@:+"$@"} $fb_appargs # vim:ts=3 --- NEW FILE: fbwrap --- #! /bin/sh # A convenient way to call the main() method of a class # in findbugs.jar. program="$0" # Follow symlinks until we get to the actual file. while [ -h "$program" ]; do link=`ls -ld "$program"` link=`expr "$link" : '.*-> \(.*\)'` if [ "`expr "$link" : '/.*'`" = 0 ]; then # Relative dir=`dirname "$program"` program="$dir/$link" else # Absolute program="$link" fi done # Assume findbugs home directory is the parent # of the directory containing the script (which should # normally be "$findbugs_home/bin"). dir=`dirname $program` findbugs_home="$dir/.." # Handle FHS-compliant installations (e.g., Fink) if [ -d "$findbugs_home/share/findbugs" ]; then findbugs_home="$findbugs_home/share/findbugs" fi # Make absolute findbugs_home=`cd $findbugs_home && /bin/pwd` fb_pathsep=':' # Handle cygwin, courtesy of Peter D. Stout fb_osname=`uname` if [ `expr "$fb_osname" : CYGWIN` -ne 0 ]; then findbugs_home=`cygpath --mixed "$findbugs_home"` fb_pathsep=';' fi if [ ! -d "$findbugs_home" ]; then echo "The path $findbugs_home," echo "which is where I think FindBugs is located," echo "does not seem to be a directory." exit 1 fi # Choose default java binary fb_javacmd=java if [ ! -z "$JAVA_HOME" ] && [ -x "$JAVA_HOME/bin/java" ]; then fb_javacmd=$JAVA_HOME/bin/java fi if [ $# -eq 0 ]; then echo "Usage: fbwrap <main class name> <args...>" exit 1 fi fb_mainclass="$1" shift fb_javacmd=${fb_javacmd:-"java"} fb_maxheap=${fb_maxheap:-"-Xmx256m"} fb_appjar=${fb_appjar:-"$findbugs_home/lib/findbugs.jar"} set -f #echo command: \ exec $fb_javacmd \ -classpath $fb_appjar$fb_pathsep$CLASSPATH \ -Dfindbugs.home="$findbugs_home"\ $fb_maxheap $fb_jvmargs $fb_mainclass ${@:+"$@"} $fb_appargs # vim:ts=3 |
From: Nobody <fas...@us...> - 2006-09-12 01:21:03
|
Update of /cvsroot/mocklib/gwtmocklib/tools/gwt In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv23230/tools/gwt Added Files: gwt-dev-windows.jar gwt-user.jar swt-win32-3139.dll gwt-ll.dll Log Message: first commit of gwtmocklib module. --- NEW FILE: swt-win32-3139.dll --- (This appears to be a binary file; contents omitted.) --- NEW FILE: gwt-user.jar --- (This appears to be a binary file; contents omitted.) --- NEW FILE: gwt-ll.dll --- (This appears to be a binary file; contents omitted.) --- NEW FILE: gwt-dev-windows.jar --- (This appears to be a binary file; contents omitted.) |
From: Nobody <fas...@us...> - 2006-09-12 01:21:03
|
Update of /cvsroot/mocklib/gwtmocklib/input/javasrc/com/google/gwt/sample/dynatable/public In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv23230/input/javasrc/com/google/gwt/sample/dynatable/public Added Files: calendar45.txt calendar60.txt calendar90.txt calendar0.txt calendar15.txt calendar75.txt DynaTable.css calendar30.txt index.html Log Message: first commit of gwtmocklib module. --- NEW FILE: calendar75.txt --- {OK}["31","+5","30","+5","3","735","785","+4","3","645","695","+4","2","795","845","+4","3","+3","+2","+1","29","+5","28","+5","4","975","1025","+4","4","975","1025","+4","3","780","830","+4","3","570","620","+4","3","540","590","+4","5","+3","+2","+10","27","+5","25","+5","4","795","845","+4","3","600","650","+4","2","585","635","+4","1","675","725","+4","4","+3","+2","+1","26","+5","25","+5","5","555","605","+4","3","750","800","+4","2","+3","+2","+1","24","+5","6","+5","5","960","1010","+4","2","780","830","+4","1","495","545","+4","3","+3","+2","+1","23","+5","19","+5","4","780","830","+4","3","765","815","+4","2","+3","+2","+1","22","+5","21","+5","5","900","950","+4","3","690","740","+4","1","855","905","+4","3","+3","+2","+10","20","+5","19","+5","1","720","770","+4","1","645","695","+4","2","+3","+2","+1","18","+5","11","+5","5","585","635","+4","4","885","935","+4","3","855","905","+4","1","990","1040","+4","1","975","1025","+4","5","+3","+2","+10","17","+5","13","+5","4","585","635","+4","3","720","770","+4","2","+3","+2","+1","16","+5","15","+5","2","945","995","+4","1","+3","+2","+1","14","+5","13","+5","5","555","605","+4","3","735","785","+4","3","690","740","+4","2","750","800","+4","4","+3","+2","+1","12","+5","11","+5","3","720","770","+4","1","675","725","+4","2","+3","+2","+10","9","+5","8","+5","2","780","830","+4","1","+3","+2","+1","7","+5","6","+5","3","585","635","+4","2","540","590","+4","2","+3","+2","+1","15","+0","0","1",["[Lcom.google.gwt.sample.dynatable.client.Person;/3476209936","com.google.gwt.sample.dynatable.client.Student/1403480330","com.google.gwt.sample.dynatable.client.Schedule/1023786527","java.util.ArrayList/3821976829","com.google.gwt.sample.dynatable.client.TimeSlot/1821972171","java.lang.String/2004016611","Majoring in Basketball","Cathy Chase","Majoring in Geology","Teddy Chase","com.google.gwt.sample.dynatable.client.Professor/1464158370","Professor of Underwater Basket Weaving","Dr. Barney Smith","Majoring in English Literature","Cathy Mendez","Majoring in Statistics","Sally Needler","Barney Epps","Dr. Jimmy Smith","Majoring in Computer Science","Sally Edelstein","Professor of Computer Science","Dr. Teddy Crutcher","Jimmy Webber","Omar Blum","Majoring in Chemistry","Sally Gibbs","Inman Crutcher","Professor of Geology","Dr. Carlos Blum","Majoring in Geometry","Barney Crutcher"],"0","1"] --- NEW FILE: index.html --- <html> <head> <meta name='gwt:module' content='com.google.gwt.sample.dynatable.DynaTable'> <link rel=stylesheet href="DynaTable.css"> </head> <body> <iframe id='__gwt_historyFrame' style='width:0;height:0;border:0'></iframe> <script language='javascript' src='gwt.js'></script> <h1>School Schedule for Professors and Students</h1> <table width="100%" border="0"> <tr valign="top"> <td id="calendar" align="center" width="90%"></td> <td id="days" align="center" width="10%"></td> </tr> </span> </body> </html> --- NEW FILE: calendar30.txt --- {OK}["30","+5","20","+5","3","990","1040","+4","3","930","980","+4","3","525","575","+4","1","930","980","+4","4","+3","+2","+1","29","+5","24","+5","5","585","635","+4","4","510","560","+4","1","630","680","+4","3","+3","+2","+12","28","+5","27","+5","5","885","935","+4","5","735","785","+4","2","+3","+2","+1","26","+5","22","+5","4","585","635","+4","4","555","605","+4","3","690","740","+4","2","615","665","+4","2","510","560","+4","5","+3","+2","+1","25","+5","24","+5","2","840","890","+4","1","+3","+2","+12","23","+5","22","+5","4","735","785","+4","4","480","530","+4","3","615","665","+4","2","795","845","+4","4","+3","+2","+1","21","+5","20","+5","4","585","635","+4","2","990","1040","+4","2","780","830","+4","3","+3","+2","+1","19","+5","18","+5","5","780","830","+4","4","855","905","+4","2","585","635","+4","2","585","635","+4","4","+3","+2","+1","17","+5","16","+5","5","525","575","+4","4","795","845","+4","3","510","560","+4","2","540","590","+4","4","+3","+2","+1","15","+5","8","+5","5","570","620","+4","1","+3","+2","+1","14","+5","13","+5","1","840","890","+4","1","+3","+2","+12","11","+5","8","+5","5","810","860","+4","5","645","695","+4","2","+3","+2","+1","10","+5","6","+5","3","615","665","+4","1","+3","+2","+1","9","+5","8","+5","5","555","605","+4","4","735","785","+4","2","+3","+2","+1","7","+5","6","+5","5","885","935","+4","4","720","770","+4","2","780","830","+4","3","+3","+2","+1","15","+0","0","1",["[Lcom.google.gwt.sample.dynatable.client.Person;/3476209936","com.google.gwt.sample.dynatable.client.Student/1403480330","com.google.gwt.sample.dynatable.client.Schedule/1023786527","java.util.ArrayList/3821976829","com.google.gwt.sample.dynatable.client.TimeSlot/1821972171","java.lang.String/2004016611","Majoring in Geology","Inman Gibbs","Majoring in Chemistry","Carlos Mendez","Inman Edelstein","Eddie Gibbs","com.google.gwt.sample.dynatable.client.Professor/1464158370","Professor of Materials Engineering","Dr. Jimmy Crutcher","Teddy Chase","Majoring in Statistics","Carlos Edelstein","Majoring in Underwater Basket Weaving","Cathy Chase","Majoring in Phrenology","Inman Crutcher","Majoring in Materials Engineering","Carlos Chase","Professor of Geology","Dr. Jimmy Gibbs","Omar Epps","Majoring in Computer Science","Cathy Smith","Dr. Barney Gibbs","Teddy Smith"],"0","1"] --- NEW FILE: calendar60.txt --- {OK}["30","+5","26","+5","5","600","650","+4","4","975","1025","+4","4","750","800","+4","2","570","620","+4","4","+3","+2","+1","29","+5","21","+5","4","495","545","+4","2","825","875","+4","1","975","1025","+4","1","780","830","+4","4","+3","+2","+1","28","+5","23","+5","5","555","605","+4","4","600","650","+4","2","645","695","+4","3","+3","+2","+1","27","+5","26","+5","5","840","890","+4","1","+3","+2","+1","25","+5","21","+5","4","855","905","+4","3","990","1040","+4","1","795","845","+4","3","+3","+2","+1","24","+5","23","+5","4","990","1040","+4","4","930","980","+4","4","495","545","+4","2","975","1025","+4","1","765","815","+4","5","+3","+2","+1","22","+5","21","+5","5","780","830","+4","5","660","710","+4","5","660","710","+4","3","+3","+2","+1","20","+5","19","+5","5","795","845","+4","5","495","545","+4","3","885","935","+4","2","675","725","+4","4","+3","+2","+1","18","+5","10","+5","5","480","530","+4","2","825","875","+4","2","645","695","+4","2","645","695","+4","2","555","605","+4","5","+3","+2","+1","17","+5","6","+5","5","870","920","+4","5","495","545","+4","2","+3","+2","+1","16","+5","15","+5","2","690","740","+4","2","630","680","+4","2","480","530","+4","1","570","620","+4","1","510","560","+4","5","+3","+2","+14","13","+5","12","+5","3","645","695","+4","2","690","740","+4","2","495","545","+4","1","975","1025","+4","4","+3","+2","+1","11","+5","10","+5","4","840","890","+4","2","525","575","+4","2","+3","+2","+1","9","+5","8","+5","3","765","815","+4","1","+3","+2","+1","7","+5","6","+5","3","870","920","+4","1","+3","+2","+1","15","+0","0","1",["[Lcom.google.gwt.sample.dynatable.client.Person;/3476209936","com.google.gwt.sample.dynatable.client.Student/1403480330","com.google.gwt.sample.dynatable.client.Schedule/1023786527","java.util.ArrayList/3821976829","com.google.gwt.sample.dynatable.client.TimeSlot/1821972171","java.lang.String/2004016611","Majoring in Computer Science","Teddy Jones","Majoring in Geometry","Eddie Wilson","Majoring in Phrenology","Fred Webber","Majoring in Geology","Inman Edelstein","com.google.gwt.sample.dynatable.client.Professor/1464158370","Professor of Geology","Dr. Jimmy Chase","Fred Mendez","Carlos Epps","Majoring in Materials Engineering","Eddie Webber","Majoring in Chemistry","Sally Gibbs","Majoring in English Literature","Inman Wilson","Cathy Edelstein","Majoring in Underwater Basket Weaving","Jimmy Webber","Carlos Smith","Jimmy Epps","Omar Chase"],"0","1"] --- NEW FILE: calendar0.txt --- {OK}["31","+5","9","+5","2","990","1040","+4","1","+3","+2","+1","30","+5","29","+5","5","750","800","+4","3","615","665","+4","2","735","785","+4","1","855","905","+4","4","+3","+2","+1","28","+5","22","+5","5","585","635","+4","3","885","935","+4","2","480","530","+4","1","705","755","+4","1","600","650","+4","5","+3","+2","+1","27","+5","26","+5","3","855","905","+4","1","+3","+2","+19","25","+5","24","+5","5","915","965","+4","3","555","605","+4","1","750","800","+4","1","690","740","+4","4","+3","+2","+1","23","+5","22","+5","5","915","965","+4","5","705","755","+4","4","1005","1055","+4","3","675","725","+4","2","780","830","+4","5","+3","+2","+1","21","+5","20","+5","5","795","845","+4","4","720","770","+4","3","870","920","+4","2","975","1025","+4","2","945","995","+4","5","+3","+2","+19","18","+5","17","+5","2","540","590","+4","2","480","530","+4","2","+3","+2","+1","16","+5","11","+5","5","540","590","+4","3","660","710","+4","2","915","965","+4","2","735","785","+4","2","600","650","+4","5","+3","+2","+1","15","+5","9","+5","5","930","980","+4","5","705","755","+4","2","+3","+2","+1","14","+5","13","+5","4","570","620","+4","2","930","980","+4","2","855","905","+4","2","780","830","+4","1","795","845","+4","5","+3","+2","+1","12","+5","11","+5","4","555","605","+4","3","870","920","+4","2","735","785","+4","1","840","890","+4","1","495","545","+4","5","+3","+2","+1","10","+5","9","+5","5","555","605","+4","4","675","725","+4","1","990","1040","+4","3","+3","+2","+1","8","+5","6","+5","5","570","620","+4","4","795","845","+4","4","570","620","+4","3","+3","+2","+1","7","+5","6","+5","5","585","635","+4","5","525","575","+4","2","855","905","+4","1","585","635","+4","4","+3","+2","+1","15","+0","0","1",["[Lcom.google.gwt.sample.dynatable.client.Person;/3476209936","com.google.gwt.sample.dynatable.client.Student/1403480330","com.google.gwt.sample.dynatable.client.Schedule/1023786527","java.util.ArrayList/3821976829","com.google.gwt.sample.dynatable.client.TimeSlot/1821972171","java.lang.String/2004016611","Majoring in Phrenology","Inman Mendez","Barney Crutcher","Majoring in Geometry","Omar Smith","Majoring in Basketball","Eddie Edelstein","Majoring in Chemistry","Cathy Mendez","Eddie Epps","Teddy Gibbs","Majoring in Underwater Basket Weaving","Barney Wilson","com.google.gwt.sample.dynatable.client.Professor/1464158370","Professor of English Literature","Dr. Carlos Epps","Majoring in Geology","Carlos Edelstein","Majoring in English Literature","Teddy Chase","Professor of Basketball","Dr. Eddie Wilson","Carlos Needler","Majoring in Computer Science","Inman Gibbs","Cathy Needler"],"0","1"] --- NEW FILE: DynaTable.css --- body { background-color: white; color: black; font-family: Arial, sans-serif; font-size: small; margin: 8px; margin-top: 3px; } .DynaTable-DynaTableWidget { width: 100%; border: 1px solid #ACA899; } .DynaTable-DynaTableWidget .navbar { width: 100%; background-color: #ECE9D8; vertical-align: middle; border-bottom: 1px solid #ACA899; } .DynaTable-DynaTableWidget .navbar button { width: 3em; text-align: center; vertical-align: middle; } .DynaTable-DynaTableWidget .navbar .status { vertical-align: middle; padding-right: 10px; } .DynaTable-DynaTableWidget .table { margin: 10px; } .DynaTable-DynaTableWidget .table td.header { text-align: left; font-weight: bold; text-decoration: underline; } .DynaTable-DynaTableWidget .table td.name { width: 10em; } .DynaTable-DynaTableWidget .table td.desc { width: 20em; } .DynaTable-DynaTableWidget .table td.sched { width: 20em; } .DynaTable-DynaTableWidget .table td { vertical-align: top; } .DynaTable-DayFilterWidget { margin: 3em 1em 1em 0; width: 10em; padding: 0px 8px 0px 8px; border: 1px solid #ACA899; } .DynaTable-DayFilterWidget button { width: 4em; margin: 8px 4px 8px 4px; } --- NEW FILE: calendar90.txt --- {OK}["24","+5","10","+5","5","720","770","+4","2","960","1010","+4","2","615","665","+4","1","705","755","+4","4","+3","+2","+1","23","+5","22","+5","4","600","650","+4","3","690","740","+4","2","840","890","+4","2","705","755","+4","2","600","650","+4","5","+3","+2","+21","20","+5","19","+5","4","735","785","+4","3","945","995","+4","2","780","830","+4","3","+3","+2","+1","18","+5","17","+5","5","975","1025","+4","3","885","935","+4","3","525","575","+4","1","660","710","+4","4","+3","+2","+1","16","+5","15","+5","5","825","875","+4","3","825","875","+4","2","705","755","+4","3","+3","+2","+1","14","+5","13","+5","4","540","590","+4","3","765","815","+4","3","660","710","+4","3","570","620","+4","1","735","785","+4","5","+3","+2","+1","12","+5","10","+5","5","810","860","+4","4","600","650","+4","2","+3","+2","+1","11","+5","10","+5","5","810","860","+4","5","480","530","+4","3","855","905","+4","3","570","620","+4","1","525","575","+4","5","+3","+2","+1","9","+5","8","+5","5","855","905","+4","2","870","920","+4","1","975","1025","+4","1","840","890","+4","1","585","635","+4","5","+3","+2","+1","7","+5","6","+5","4","660","710","+4","3","615","665","+4","2","+3","+2","+1","10","+0","0","1",["[Lcom.google.gwt.sample.dynatable.client.Person;/3476209936","com.google.gwt.sample.dynatable.client.Student/1403480330","com.google.gwt.sample.dynatable.client.Schedule/1023786527","java.util.ArrayList/3821976829","com.google.gwt.sample.dynatable.client.TimeSlot/1821972171","java.lang.String/2004016611","Majoring in Geometry","Eddie Jones","Majoring in Geology","Inman Chase","Majoring in Computer Science","Omar Gibbs","Carlos Epps","Majoring in Chemistry","Cathy Gibbs","Majoring in Basketball","Barney Wilson","Majoring in Statistics","Jimmy Edelstein","Majoring in Phrenology","Eddie Gibbs","com.google.gwt.sample.dynatable.client.Professor/1464158370","Professor of English Literature","Dr. Cathy Blum","Jimmy Smith"],"0","1"] --- NEW FILE: calendar45.txt --- {OK}["31","+5","30","+5","1","900","950","+4","1","+3","+2","+1","29","+5","20","+5","5","960","1010","+4","1","+3","+2","+1","28","+5","22","+5","1","750","800","+4","1","+3","+2","+1","27","+5","26","+5","5","480","530","+4","1","+3","+2","+1","25","+5","19","+5","5","765","815","+4","4","840","890","+4","4","495","545","+4","4","495","545","+4","1","855","905","+4","5","+3","+2","+1","24","+5","9","+5","2","960","1010","+4","1","+3","+2","+8","23","+5","22","+5","4","690","740","+4","2","825","875","+4","1","795","845","+4","1","705","755","+4","1","510","560","+4","5","+3","+2","+1","21","+5","20","+5","4","630","680","+4","4","600","650","+4","3","645","695","+4","2","885","935","+4","2","630","680","+4","5","+3","+2","+1","7","+5","19","+5","3","720","770","+4","3","705","755","+4","3","660","710","+4","2","975","1025","+4","1","600","650","+4","5","+3","+2","+1","18","+5","17","+5","4","990","1040","+4","4","645","695","+4","2","+3","+2","+1","16","+5","15","+5","5","750","800","+4","5","525","575","+4","4","630","680","+4","3","+3","+2","+8","14","+5","13","+5","4","735","785","+4","3","765","815","+4","2","840","890","+4","2","720","770","+4","1","990","1040","+4","5","+3","+2","+8","12","+5","11","+5","5","525","575","+4","5","495","545","+4","4","615","665","+4","2","630","680","+4","2","525","575","+4","5","+3","+2","+8","10","+5","9","+5","4","555","605","+4","3","825","875","+4","3","735","785","+4","3","525","575","+4","2","600","650","+4","5","+3","+2","+8","7","+5","6","+5","5","645","695","+4","4","750","800","+4","1","660","710","+4","3","+3","+2","+1","15","+0","0","1",["[Lcom.google.gwt.sample.dynatable.client.Person;/3476209936","com.google.gwt.sample.dynatable.client.Student/1403480330","com.google.gwt.sample.dynatable.client.Schedule/1023786527","java.util.ArrayList/3821976829","com.google.gwt.sample.dynatable.client.TimeSlot/1821972171","java.lang.String/2004016611","Majoring in English Literature","Cathy Blum","com.google.gwt.sample.dynatable.client.Professor/1464158370","Professor of Computer Science","Dr. Barney Crutcher","Professor of Phrenology","Dr. Teddy Mendez","Professor of Geology","Dr. Teddy Blum","Professor of Materials Engineering","Dr. Teddy Smith","Majoring in Chemistry","Omar Jones","Majoring in Statistics","Majoring in Geometry","Barney Jones","Majoring in Geology","Fred Wilson","Dr. Jimmy Blum","Fred Mendez","Majoring in Phrenology","Eddie Chase","Barney Wilson","Inman Mendez","Majoring in Computer Science","Inman Wilson"],"0","1"] --- NEW FILE: calendar15.txt --- {OK}["27","+5","8","+5","1","1005","1055","+4","1","+3","+2","+1","27","+5","10","+5","3","915","965","+4","1","630","680","+4","2","+3","+2","+1","26","+5","16","+5","3","750","800","+4","1","750","800","+4","2","+3","+2","+1","25","+5","24","+5","5","600","650","+4","3","960","1010","+4","2","+3","+2","+1","23","+5","22","+5","4","900","950","+4","3","750","800","+4","2","+3","+2","+1","11","+5","16","+5","2","735","785","+4","1","+3","+2","+1","21","+5","8","+5","4","1005","1055","+4","1","+3","+2","+1","20","+5","8","+5","5","780","830","+4","1","+3","+2","+1","19","+5","18","+5","5","915","965","+4","5","705","755","+4","4","870","920","+4","2","855","905","+4","1","1005","1055","+4","5","+3","+2","+1","17","+5","16","+5","4","990","1040","+4","1","+3","+2","+1","15","+5","10","+5","4","1005","1055","+4","4","765","815","+4","3","540","590","+4","2","735","785","+4","1","945","995","+4","5","+3","+2","+1","14","+5","13","+5","5","735","785","+4","5","630","680","+4","4","585","635","+4","4","510","560","+4","1","1005","1055","+4","5","+3","+2","+12","11","+5","10","+5","4","990","1040","+4","1","540","590","+4","2","+3","+2","+1","9","+5","8","+5","1","840","890","+4","1","690","740","+4","2","+3","+2","+1","7","+5","6","+5","3","570","620","+4","1","+3","+2","+1","15","+0","0","1",["[Lcom.google.gwt.sample.dynatable.client.Person;/3476209936","com.google.gwt.sample.dynatable.client.Student/1403480330","com.google.gwt.sample.dynatable.client.Schedule/1023786527","java.util.ArrayList/3821976829","com.google.gwt.sample.dynatable.client.TimeSlot/1821972171","java.lang.String/2004016611","Majoring in Phrenology","Fred Mendez","Majoring in Computer Science","Barney Webber","Majoring in English Literature","Barney Blum","com.google.gwt.sample.dynatable.client.Professor/1464158370","Professor of Materials Engineering","Dr. Fred Wilson","Barney Jones","Majoring in Underwater Basket Weaving","Sally Webber","Majoring in Geology","Omar Crutcher","Fred Needler","Omar Jones","Majoring in Basketball","Sally Edelstein","Majoring in Statistics","Jimmy Gibbs","Inman Crutcher","Barney Gibbs"],"0","1"] |
Update of /cvsroot/mocklib/gwtmocklib/tools/ant/lib In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv23230/tools/ant/lib Added Files: ant-apache-bsf.jar example.jar ant-commons-logging.jar ant-antlr.jar ant-xslp.jar ant-jakarta-oro.jar README ant-jdepend.jar commons-net-1.2.2.jar ant-weblogic.jar xml-apis.jar ant-xalan1.jar ant-apache-log4j.jar ant-jakarta-regexp.jar ant-apache-oro.jar ant-apache-resolver.jar ant-starteam.jar ant-xalan2.jar jaxp.jar ant-jakarta-bcel.jar ant-testutil.jar ant-swing.jar ant-launcher.jar xerces-130.jar jsch-0.1.17.jar ant-icontract.jar ant.jar ant-apache-regexp.jar jdom-1.0b8.jar ant-apache-bcel.jar ant-netrexx.jar crimson.jar xercesImpl.jar ant-jai.jar ant-commons-net.jar ant-nodeps.jar ant-trax.jar ant-vaj.jar ant-jmf.jar ant-jsch.jar ant-stylebook.jar ant-jakarta-log4j.jar ant-javamail.jar gnu-regexp-110.jar Log Message: first commit of gwtmocklib module. --- NEW FILE: ant-nodeps.jar --- (This appears to be a binary file; contents omitted.) --- NEW FILE: ant-netrexx.jar --- (This appears to be a binary file; contents omitted.) --- NEW FILE: commons-net-1.2.2.jar --- (This appears to be a binary file; contents omitted.) --- NEW FILE: ant-stylebook.jar --- (This appears to be a binary file; contents omitted.) --- NEW FILE: ant-weblogic.jar --- (This appears to be a binary file; contents omitted.) --- NEW FILE: ant-apache-resolver.jar --- (This appears to be a binary file; contents omitted.) --- NEW FILE: ant-xalan1.jar --- (This appears to be a binary file; contents omitted.) --- NEW FILE: jaxp.jar --- (This appears to be a binary file; contents omitted.) --- NEW FILE: jsch-0.1.17.jar --- (This appears to be a binary file; contents omitted.) --- NEW FILE: ant-jakarta-regexp.jar --- (This appears to be a binary file; contents omitted.) --- NEW FILE: xml-apis.jar --- (This appears to be a binary file; contents omitted.) --- NEW FILE: ant-apache-regexp.jar --- (This appears to be a binary file; contents omitted.) --- NEW FILE: xercesImpl.jar --- (This appears to be a binary file; contents omitted.) --- NEW FILE: crimson.jar --- (This appears to be a binary file; contents omitted.) --- NEW FILE: xerces-130.jar --- (This appears to be a binary file; contents omitted.) --- NEW FILE: ant-commons-net.jar --- (This appears to be a binary file; contents omitted.) --- NEW FILE: ant-testutil.jar --- (This appears to be a binary file; contents omitted.) --- NEW FILE: README --- Please refer to the Ant manual under Installing Ant / Library Dependencies for a list of the jar requirements for various optional tasks and features. This directory contains xercesImpl.jar from the 2.5.0 release of Apache Xerces. For more information or newer releases see <http://xml.apache.org/xerces2-j/>. See the file LICENSE.xerces for the terms of distribution. It also contains xml-apis.jar, an Apache-controlled collection of standard classes from the 1.0b2 release of the Apache XML-Commons release. For more information or newer releases see <http://xml.apache.org/commons/>. See the files LICENSE.dom and LICENSE.sax for the terms of distribution. --- NEW FILE: ant-jakarta-bcel.jar --- (This appears to be a binary file; contents omitted.) --- NEW FILE: ant-jakarta-log4j.jar --- (This appears to be a binary file; contents omitted.) --- NEW FILE: ant-apache-log4j.jar --- (This appears to be a binary file; contents omitted.) --- NEW FILE: gnu-regexp-110.jar --- (This appears to be a binary file; contents omitted.) --- NEW FILE: ant-jmf.jar --- (This appears to be a binary file; contents omitted.) --- NEW FILE: ant-xalan2.jar --- (This appears to be a binary file; contents omitted.) --- NEW FILE: ant-xslp.jar --- (This appears to be a binary file; contents omitted.) --- NEW FILE: ant-commons-logging.jar --- (This appears to be a binary file; contents omitted.) --- NEW FILE: ant-jdepend.jar --- (This appears to be a binary file; contents omitted.) --- NEW FILE: ant-apache-bsf.jar --- (This appears to be a binary file; contents omitted.) --- NEW FILE: ant-apache-oro.jar --- (This appears to be a binary file; contents omitted.) --- NEW FILE: ant-vaj.jar --- (This appears to be a binary file; contents omitted.) --- NEW FILE: ant-jai.jar --- (This appears to be a binary file; contents omitted.) --- NEW FILE: ant-swing.jar --- (This appears to be a binary file; contents omitted.) --- NEW FILE: ant-starteam.jar --- (This appears to be a binary file; contents omitted.) --- NEW FILE: example.jar --- (This appears to be a binary file; contents omitted.) --- NEW FILE: ant-jsch.jar --- (This appears to be a binary file; contents omitted.) --- NEW FILE: jdom-1.0b8.jar --- (This appears to be a binary file; contents omitted.) --- NEW FILE: ant-icontract.jar --- (This appears to be a binary file; contents omitted.) --- NEW FILE: ant-antlr.jar --- (This appears to be a binary file; contents omitted.) --- NEW FILE: ant-apache-bcel.jar --- (This appears to be a binary file; contents omitted.) --- NEW FILE: ant-trax.jar --- (This appears to be a binary file; contents omitted.) --- NEW FILE: ant.jar --- (This appears to be a binary file; contents omitted.) --- NEW FILE: ant-javamail.jar --- (This appears to be a binary file; contents omitted.) --- NEW FILE: ant-jakarta-oro.jar --- (This appears to be a binary file; contents omitted.) --- NEW FILE: ant-launcher.jar --- (This appears to be a binary file; contents omitted.) |
From: Nobody <fas...@us...> - 2006-09-12 01:21:02
|
Update of /cvsroot/mocklib/gwtmocklib/input/webroot In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv23230/input/webroot Added Files: README.txt Log Message: first commit of gwtmocklib module. --- NEW FILE: README.txt --- This directory contains all the html files for a webapp as well as WEB-INF and the files that belong in WEB-INF. The jars belong in libexclude or libinclude depending if you want the jars packaged inside the war(libinclude) or you are using jars that don't belong in the war(or are shared) such as servlet.jar. |