diff --git a/.cvsignore b/.cvsignore deleted file mode 100644 index 53371c3..0000000 --- a/.cvsignore +++ /dev/null @@ -1,9 +0,0 @@ -DevSuite -build -dist -log4j.properties -mobibot.properties -fetcher.properties -*.ser -logs -.git diff --git a/.gitignore b/.gitignore index 3b737ed..4f84b93 100644 --- a/.gitignore +++ b/.gitignore @@ -1,7 +1,20 @@ -/build/ -/dist/ -CVS -/logs/ -/mobibot.properties +.classpath +.gradle +.idea +.nb-gradle +.project +.settings +/bin +/build +/deploy +/dist /fetcher.properties +/gen /log4j.properties +/logs +/mobibot.properties +/out +/proguard-project.txt +/project.properties +/test-output +CVS diff --git a/ChangeLog.txt b/ChangeLog.txt deleted file mode 100644 index 744bba7..0000000 --- a/ChangeLog.txt +++ /dev/null @@ -1,294 +0,0 @@ -2005-11-08 14:58 erik - - * buildnum.properties, mobibot.iml, mobibot.ipr, mobibot.iws, - lib/delicious-1.6.jar, lib/delicious-1.7.jar, - lib/delicious-1.9.jar, src/net/thauvin/erik/mobibot/Mobibot.java, - src/net/thauvin/erik/mobibot/ReleaseInfo.java: Added ability to - set the port. Added NickServ registartion. Updated to delicious - 1.9 API. Update URL to mobitopia.org. - -2005-08-08 21:53 erik - - * lib/delicious-1.7.jar: Updated to delicious 1.7 - -2005-05-11 02:05 erik - - * buildnum.properties, mobibot.iml, mobibot.ipr, mobibot.iws, - lib/commons-httpclient-3.0-rc1.jar, - lib/commons-httpclient-3.0-rc2.jar, lib/delicious-1.5.jar, - lib/delicious-1.6.jar, - src/net/thauvin/erik/mobibot/ReleaseInfo.java: Updated to - commons-httpclient 3.0rc2 Updated to delicious 1.6 - -2005-05-10 22:47 erik - - * mobibot.iml, mobibot.iws, lib/commons-net-1.2.2.jar, - lib/commons-net-1.4.0.jar: Updated to commons-net 1.4.0 - -2005-05-05 12:47 erik - - * properties/mobibot.properties, - src/net/thauvin/erik/mobibot/CurrencyConverter.java, - src/net/thauvin/erik/mobibot/DeliciousPoster.java, - src/net/thauvin/erik/mobibot/EntryLink.java, - src/net/thauvin/erik/mobibot/Mobibot.java, buildnum.properties, - mobibot.fb, mobibot.ipr, mobibot.iws, - src/net/thauvin/erik/mobibot/ReleaseInfo.java, - src/net/thauvin/erik/mobibot/StockQuote.java: Updated locations. - -2005-03-06 13:04 erik - - * mobibot.iws, lib/delicious-1.4.jar: Update to delcious-java 1.5. - -2005-03-06 13:04 erik - - * lib/delicious-1.5.jar, buildnum.properties, mobibot.iml, - mobibot.iws, src/net/thauvin/erik/mobibot/ReleaseInfo.java: - Update to delicious-java 1.5. - -2005-03-06 08:30 erik - - * ChangeLog.txt: Updated ChangeLog. - -2005-03-06 08:28 erik - - * buildnum.properties, mobibot.iws, - src/net/thauvin/erik/mobibot/DeliciousPoster.java, - src/net/thauvin/erik/mobibot/Mobibot.java, - src/net/thauvin/erik/mobibot/ReleaseInfo.java, - src/net/thauvin/erik/mobibot/SwingWorker.java: Added threading - while posting to del.icio.us. - -2005-03-05 13:52 erik - - * ChangeLog.txt, mobibot.iws, licenses/delicious-java License.txt, - website/index.html: Added delicious-java license. Updated - ChangeLog. - -2005-03-05 13:40 erik - - * lib/commons-codec-1.3.jar, lib/commons-httpclient-2.0.1.jar, - lib/commons-httpclient-3.0-rc1.jar, lib/delicious-1.4.jar, - properties/mobibot.properties, build.properties, - buildnum.properties, mobibot.iml, mobibot.ipr, mobibot.iws, - src/net/thauvin/erik/mobibot/DeliciousPoster.java, - src/net/thauvin/erik/mobibot/EntryLink.java, - src/net/thauvin/erik/mobibot/Mobibot.java, - src/net/thauvin/erik/mobibot/ReleaseInfo.java, - website/index.html: Added support for del.icio.us - -2004-11-16 07:46 erik - - * buildnum.properties, mobibot.iws, - src/net/thauvin/erik/mobibot/Mobibot.java, - src/net/thauvin/erik/mobibot/ReleaseInfo.java, - website/index.html: Added the ability to ignore nicknames. - -2004-10-30 13:37 erik - - * buildnum.properties, mobibot.iws, - src/net/thauvin/erik/mobibot/Mobibot.java, - src/net/thauvin/erik/mobibot/ReleaseInfo.java, - website/index.html: Added the ability to ignore links from - specified nicknames. - -2004-10-04 07:22 erik - - * build.properties, buildnum.properties, mobibot.iws, - src/net/thauvin/erik/mobibot/Mobibot.java, - src/net/thauvin/erik/mobibot/ReleaseInfo.java: Added - action(channel, action) method. Added input validation to - action/send methods. - -2004-09-28 02:15 erik - - * lib/MathEvaluator.jar: Fixed a problem with the MathEvaluator - library where "atan(), asin(), acos()" never worked right. - -2004-09-27 18:36 erik - - * .cvsignore, build.properties, build.xml, buildnum.properties, - mobibot.iml, mobibot.ipr, mobibot.iws, - ant/jreleaseinfo-1.2.0.jar, lib/EXML.jar, lib/fetchrss.jar, - lib/jdom-1.0.jar, lib/jdom.jar, lib/pircbot.jar, - lib/rome-0.4.jar, lib/rome-fetcher-0.4.jar, lib/rsslibj.jar, - licenses/EXML-license.txt, licenses/ROME License.txt, - licenses/RSSJLib License.txt, licenses/fetchrss License.txt, - properties/fetcher.properties, - src/net/thauvin/erik/mobibot/CurrencyConverter.java, - src/net/thauvin/erik/mobibot/EntryLink.java, - src/net/thauvin/erik/mobibot/FeedReader.java, - src/net/thauvin/erik/mobibot/GoogleSearch.java, - src/net/thauvin/erik/mobibot/Mobibot.java, - src/net/thauvin/erik/mobibot/ReleaseInfo.java, - src/net/thauvin/erik/mobibot/StockQuote.java, - src/net/thauvin/erik/mobibot/Weather.java, website/index.html: - Rome is now used to create and read the various feed. - -2004-08-03 01:07 erik - - * lib/commons-httpclient-2.0-final.jar, build.xml, mobibot.iml, - mobibot.ipr, mobibot.iws, lib/commons-httpclient-2.0.1.jar, - src/net/thauvin/erik/mobibot/Mobibot.java: Commons HTTPClinet - 2.0.1 update. Added automated backup for the data file. - -2004-07-07 07:10 erik - - * lib/commons-logging.jar: Commons Logging 1.0.4 update. - -2004-07-07 07:10 erik - - * lib/pircbot.jar: PircBot 1.4.0 update. - -2004-07-07 07:10 erik - - * lib/: commons-net-1.2.0.jar, commons-net-1.2.2.jar: Commons Net - 1.2.2 update. - -2004-07-05 19:03 erik - - * lib/: jweather-0.2.4.jar, jweather-0.2.5.jar: jweather 0.2.5 - upgrade - -2004-05-03 10:53 erik - - * lib/: commons-net-1.1.0.jar, commons-net-1.2.0.jar, - jweather-0.2.3.jar, jweather-0.2.4.jar: commons-net 1.1.0 and - jweather 0.2.4 - -2004-03-10 09:05 erik - - * .cvsignore: Ignore all serial files. - -2004-03-10 09:04 erik - - * src/net/thauvin/erik/mobibot/Mobibot.java: Removed angled - brackets around URLs as it was breaking Trillian. Added pong - command. - -2004-03-10 09:03 erik - - * src/net/thauvin/erik/mobibot/Weather.java: Added invalid station - ID message. - -2004-03-10 09:03 erik - - * src/net/thauvin/erik/mobibot/: FeedReader.java, - GoogleSearch.java: Removed angled brackets around URLs as it was - breaking Trillian. - -2004-03-02 05:53 erik - - * mobibot.iws, src/net/thauvin/erik/mobibot/Mobibot.java: Now uses - setAutoNickChange() - -2004-03-02 05:52 erik - - * lib/pircbot.jar: PircBot 1.3.0 - -2004-02-25 17:21 erik - - * ChangeLog.txt: Initial import. - -2004-02-25 16:27 erik - - * mobibot.iws, src/net/thauvin/erik/mobibot/Mobibot.java: Added - random ping response. - -2004-02-25 04:12 erik - - * src/net/thauvin/erik/mobibot/: CurrencyConverter.java, - GoogleSearch.java, Mobibot.java, Weather.java: Added -serial - command line argument. Added ability to search the current URL - posts. Added ping command. Added more efficient arguments - parsing in the public and private commands. Added ability for - the originator to modify a post's URL. Removed the various - URL-based attributes from the constructor. Fixed the nick - command. - -2004-02-24 05:09 erik - - * README.txt: The properties file can now be specified from the - command line. - -2004-02-24 04:58 erik - - * website/index.html: Added reference to Commons CLI. - -2004-02-24 04:56 erik - - * mobibot.iml, mobibot.iws, lib/commons-cli-1.0.jar, - src/net/thauvin/erik/mobibot/Mobibot.java: The properties file - can now be specified from the command line. - -2004-02-24 04:55 erik - - * src/net/thauvin/erik/mobibot/CurrencyConverter.java: Added the - ability to list the current rates. - -2004-02-18 03:40 erik - - * src/net/thauvin/erik/mobibot/: Mobibot.java, Weather.java: The - weather command help is now returned when a station id is not - specified. - -2004-02-17 06:10 erik - - * README.txt: Added (very) minimal instructions. - -2004-02-17 03:22 erik - - * website/index.html: Added wiki reference. - -2004-02-16 20:04 erik - - * .cvsignore, build.properties, build.xml, mobibot.fb, mobibot.iml, - mobibot.ipr, mobibot.iws, lib/EXML.jar, - lib/commons-httpclient-2.0-final.jar, lib/commons-logging.jar, - lib/commons-net-1.1.0.jar, lib/fetchrss.jar, lib/google.jar, - lib/MathEvaluator.jar, lib/googleapi.jar, - lib/jakarta-oro-2.0.8.jar, lib/jdom.jar, lib/jweather-0.2.3.jar, - lib/log4j-1.2.8.jar, lib/pircbot.jar, lib/rsslibj.jar, - licenses/Commons License.txt, licenses/EXML-license.txt, - licenses/Google License.txt, licenses/GoogleTagLib License.txt, - licenses/JDOM License.txt, licenses/JWeather License.txt, - licenses/License.txt, licenses/Log4j License.txt, - licenses/PircBot License.html, licenses/RSSJLib License.txt, - licenses/fetchrss License.txt, properties/log4j.properties, - properties/mobibot.properties, - src/net/thauvin/erik/mobibot/CurrencyConverter.java, - src/net/thauvin/erik/mobibot/EntryComment.java, - src/net/thauvin/erik/mobibot/EntryLink.java, - src/net/thauvin/erik/mobibot/FeedReader.java, - src/net/thauvin/erik/mobibot/GoogleSearch.java, - src/net/thauvin/erik/mobibot/Mobibot.java, - src/net/thauvin/erik/mobibot/StockQuote.java, - src/net/thauvin/erik/mobibot/Weather.java, website/index.html, - website/simple.css: Initial import. - -2004-02-16 20:04 erik - - * .cvsignore, build.properties, build.xml, mobibot.fb, mobibot.iml, - mobibot.ipr, mobibot.iws, lib/EXML.jar, - lib/commons-httpclient-2.0-final.jar, lib/commons-logging.jar, - lib/commons-net-1.1.0.jar, lib/fetchrss.jar, lib/google.jar, - lib/MathEvaluator.jar, lib/googleapi.jar, - lib/jakarta-oro-2.0.8.jar, lib/jdom.jar, lib/jweather-0.2.3.jar, - lib/log4j-1.2.8.jar, lib/pircbot.jar, lib/rsslibj.jar, - licenses/Commons License.txt, licenses/EXML-license.txt, - licenses/Google License.txt, licenses/GoogleTagLib License.txt, - licenses/JDOM License.txt, licenses/JWeather License.txt, - licenses/License.txt, licenses/Log4j License.txt, - licenses/PircBot License.html, licenses/RSSJLib License.txt, - licenses/fetchrss License.txt, properties/log4j.properties, - properties/mobibot.properties, - src/net/thauvin/erik/mobibot/CurrencyConverter.java, - src/net/thauvin/erik/mobibot/EntryComment.java, - src/net/thauvin/erik/mobibot/EntryLink.java, - src/net/thauvin/erik/mobibot/FeedReader.java, - src/net/thauvin/erik/mobibot/GoogleSearch.java, - src/net/thauvin/erik/mobibot/Mobibot.java, - src/net/thauvin/erik/mobibot/StockQuote.java, - src/net/thauvin/erik/mobibot/Weather.java, website/index.html, - website/simple.css: Initial revision - diff --git a/README.txt b/README.txt index 804b473..dca5b6a 100644 --- a/README.txt +++ b/README.txt @@ -1,16 +1,8 @@ Some very basic instructions: - ant jar - - mkdir run - - cp dist/mobibot.jar run - cp -R lib run - cp properties/*.properties run - - cd run - - mkdir logs + ./gradlew deploy + + cd deploy { configure the properties } vi *.properties diff --git a/build.gradle b/build.gradle new file mode 100644 index 0000000..2c96161 --- /dev/null +++ b/build.gradle @@ -0,0 +1,90 @@ +apply plugin: 'java' +apply plugin: 'idea' + +version = '0.5' +ext.packageName = 'net.thauvin.erik.mobibot' +ext.mainClassName = packageName + '.Mobibot' +ext.deployDir = 'deploy' + +repositories { + mavenCentral() +} + +dependencies { + compile 'log4j:log4j:1.2.17@jar' + + compile 'pircbot:pircbot:1.5.0' + + compile 'commons-codec:commons-codec:1.9' + compile 'commons-logging:commons-logging:1.1.3' + compile 'commons-net:commons-net:1.4.1' + compile 'commons-cli:commons-cli:1.2' + compile 'commons-httpclient:commons-httpclient:3.1' + + compile 'oro:oro:2.0.8' + + compile 'org.jdom:jdom:1.1.3' + compile 'org.jsoup:jsoup:1.7.3' + compile 'rome:rome:1.0@jar' + compile 'rome:rome-fetcher:1.0@jar' + compile 'org.json:json:20140107' + compile 'org.ostermiller:utils:1.07.00' + + compile 'net.sourceforge.jweather:jweather:0.3.0@jar' + compile 'de.congrace:exp4j:0.3.11' + + compile 'org.twitter4j:twitter4j-core:4.0.1' + compile 'net.sf.delicious-java:delicious:1.14' + + //compile fileTree(dir: 'lib', include: '*.jar') + //compile files('../path/to/example.jar') +} + +task wrapper(type: Wrapper) { + gradleVersion = gradle.gradleVersion +} + +compileJava { + dependsOn wrapper + doFirst { + ant.taskdef(name: 'jreleaseinfo', + classname: 'ch.oscg.jreleaseinfo.anttask.JReleaseInfoAntTask', + classpath: 'ant/jreleaseinfo-1.3.0.jar') + ant.jreleaseinfo(targetDir: file('src/main/java'), + className: 'ReleaseInfo', + packageName: packageName, + project: rootProject.name, + version: version, + buildnumfile: file('buildnum.properties')) + } +} + +jar { + doFirst { + manifest { + attributes("Manifest-Version": "1.0", + "Main-Class": mainClassName, + "Class-Path": '. ./lib/' + configurations.compile.collect { it.getName() }.join(' ./lib/')) + } + } + + version = null +} + +task deploy(dependsOn: build) { + description = "Copies all needed files to the ${deployDir} directory." + copy { + into deployDir + '/lib' + from configurations.runtime + } + copy { + from 'properties' + into deployDir + include('*.properties') + } + copy { + from jar + into deployDir + } + file(deployDir + '/logs').mkdirs(); +} \ No newline at end of file diff --git a/build.xml b/build.xml deleted file mode 100644 index d3386f6..0000000 --- a/build.xml +++ /dev/null @@ -1,52 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/buildnum.properties b/buildnum.properties index 096cb20..d4904de 100644 --- a/buildnum.properties +++ b/buildnum.properties @@ -1,3 +1,3 @@ #ANT Task: ch.oscg.jreleaseinfo.BuildNumberHandler -#Wed Jun 12 14:18:56 PDT 2013 -build.num.last=10 +#Sat Apr 19 21:14:33 PDT 2014 +build.num.last=40 diff --git a/gradle/wrapper/gradle-wrapper.jar b/gradle/wrapper/gradle-wrapper.jar new file mode 100644 index 0000000..3c7abdf Binary files /dev/null and b/gradle/wrapper/gradle-wrapper.jar differ diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties new file mode 100644 index 0000000..78e97c5 --- /dev/null +++ b/gradle/wrapper/gradle-wrapper.properties @@ -0,0 +1,6 @@ +#Sat Apr 19 12:47:30 PDT 2014 +distributionBase=GRADLE_USER_HOME +distributionPath=wrapper/dists +zipStoreBase=GRADLE_USER_HOME +zipStorePath=wrapper/dists +distributionUrl=http\://services.gradle.org/distributions/gradle-1.11-bin.zip diff --git a/gradlew b/gradlew new file mode 100644 index 0000000..91a7e26 --- /dev/null +++ b/gradlew @@ -0,0 +1,164 @@ +#!/usr/bin/env bash + +############################################################################## +## +## Gradle start up script for UN*X +## +############################################################################## + +# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +DEFAULT_JVM_OPTS="" + +APP_NAME="Gradle" +APP_BASE_NAME=`basename "$0"` + +# Use the maximum available, or set MAX_FD != -1 to use that value. +MAX_FD="maximum" + +warn ( ) { + echo "$*" +} + +die ( ) { + echo + echo "$*" + echo + exit 1 +} + +# OS specific support (must be 'true' or 'false'). +cygwin=false +msys=false +darwin=false +case "`uname`" in + CYGWIN* ) + cygwin=true + ;; + Darwin* ) + darwin=true + ;; + MINGW* ) + msys=true + ;; +esac + +# For Cygwin, ensure paths are in UNIX format before anything is touched. +if $cygwin ; then + [ -n "$JAVA_HOME" ] && JAVA_HOME=`cygpath --unix "$JAVA_HOME"` +fi + +# Attempt to set APP_HOME +# Resolve links: $0 may be a link +PRG="$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 +SAVED="`pwd`" +cd "`dirname \"$PRG\"`/" >&- +APP_HOME="`pwd -P`" +cd "$SAVED" >&- + +CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar + +# Determine the Java command to use to start the JVM. +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 + if [ ! -x "$JAVACMD" ] ; then + die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME + +Please set the JAVA_HOME variable in your environment to match the +location of your Java installation." + fi +else + JAVACMD="java" + which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. + +Please set the JAVA_HOME variable in your environment to match the +location of your Java installation." +fi + +# Increase the maximum file descriptors if we can. +if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then + MAX_FD_LIMIT=`ulimit -H -n` + if [ $? -eq 0 ] ; then + if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then + MAX_FD="$MAX_FD_LIMIT" + fi + ulimit -n $MAX_FD + if [ $? -ne 0 ] ; then + warn "Could not set maximum file descriptor limit: $MAX_FD" + fi + else + warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT" + fi +fi + +# For Darwin, add options to specify how the application appears in the dock +if $darwin; then + GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\"" +fi + +# For Cygwin, switch paths to Windows format before running java +if $cygwin ; then + APP_HOME=`cygpath --path --mixed "$APP_HOME"` + CLASSPATH=`cygpath --path --mixed "$CLASSPATH"` + + # We build the pattern for arguments to be converted via cygpath + ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null` + SEP="" + for dir in $ROOTDIRSRAW ; do + ROOTDIRS="$ROOTDIRS$SEP$dir" + SEP="|" + done + OURCYGPATTERN="(^($ROOTDIRS))" + # Add a user-defined pattern to the cygpath arguments + if [ "$GRADLE_CYGPATTERN" != "" ] ; then + OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)" + fi + # Now convert the arguments - kludge to limit ourselves to /bin/sh + i=0 + for arg in "$@" ; do + CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -` + CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option + + if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition + eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"` + else + eval `echo args$i`="\"$arg\"" + fi + i=$((i+1)) + done + case $i in + (0) set -- ;; + (1) set -- "$args0" ;; + (2) set -- "$args0" "$args1" ;; + (3) set -- "$args0" "$args1" "$args2" ;; + (4) set -- "$args0" "$args1" "$args2" "$args3" ;; + (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;; + (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;; + (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;; + (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;; + (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;; + esac +fi + +# Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules +function splitJvmOpts() { + JVM_OPTS=("$@") +} +eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS +JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME" + +exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@" diff --git a/gradlew.bat b/gradlew.bat new file mode 100644 index 0000000..8a0b282 --- /dev/null +++ b/gradlew.bat @@ -0,0 +1,90 @@ +@if "%DEBUG%" == "" @echo off +@rem ########################################################################## +@rem +@rem Gradle startup script for Windows +@rem +@rem ########################################################################## + +@rem Set local scope for the variables with windows NT shell +if "%OS%"=="Windows_NT" setlocal + +@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +set DEFAULT_JVM_OPTS= + +set DIRNAME=%~dp0 +if "%DIRNAME%" == "" set DIRNAME=. +set APP_BASE_NAME=%~n0 +set APP_HOME=%DIRNAME% + +@rem Find java.exe +if defined JAVA_HOME goto findJavaFromJavaHome + +set JAVA_EXE=java.exe +%JAVA_EXE% -version >NUL 2>&1 +if "%ERRORLEVEL%" == "0" goto init + +echo. +echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. +echo. +echo Please set the JAVA_HOME variable in your environment to match the +echo location of your Java installation. + +goto fail + +:findJavaFromJavaHome +set JAVA_HOME=%JAVA_HOME:"=% +set JAVA_EXE=%JAVA_HOME%/bin/java.exe + +if exist "%JAVA_EXE%" goto init + +echo. +echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% +echo. +echo Please set the JAVA_HOME variable in your environment to match the +echo location of your Java installation. + +goto fail + +:init +@rem Get command-line arguments, handling Windowz variants + +if not "%OS%" == "Windows_NT" goto win9xME_args +if "%@eval[2+2]" == "4" goto 4NT_args + +:win9xME_args +@rem Slurp the command line arguments. +set CMD_LINE_ARGS= +set _SKIP=2 + +:win9xME_args_slurp +if "x%~1" == "x" goto execute + +set CMD_LINE_ARGS=%* +goto execute + +:4NT_args +@rem Get arguments from the 4NT Shell from JP Software +set CMD_LINE_ARGS=%$ + +:execute +@rem Setup the command line + +set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar + +@rem Execute Gradle +"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS% + +:end +@rem End local scope for the variables with windows NT shell +if "%ERRORLEVEL%"=="0" goto mainEnd + +:fail +rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of +rem the _cmd.exe /c_ return code! +if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 +exit /b 1 + +:mainEnd +if "%OS%"=="Windows_NT" endlocal + +:omega diff --git a/lib/MathEvaluator.jar b/lib/MathEvaluator.jar deleted file mode 100644 index 9011d76..0000000 Binary files a/lib/MathEvaluator.jar and /dev/null differ diff --git a/lib/commons-cli-1.2.jar b/lib/commons-cli-1.2.jar deleted file mode 100644 index ce4b9ff..0000000 Binary files a/lib/commons-cli-1.2.jar and /dev/null differ diff --git a/lib/commons-codec-1.8.jar b/lib/commons-codec-1.8.jar deleted file mode 100644 index 32f84c9..0000000 Binary files a/lib/commons-codec-1.8.jar and /dev/null differ diff --git a/lib/commons-httpclient-3.1.jar b/lib/commons-httpclient-3.1.jar deleted file mode 100644 index 7c59774..0000000 Binary files a/lib/commons-httpclient-3.1.jar and /dev/null differ diff --git a/lib/commons-logging-1.1.1.jar b/lib/commons-logging-1.1.1.jar deleted file mode 100644 index 8758a96..0000000 Binary files a/lib/commons-logging-1.1.1.jar and /dev/null differ diff --git a/lib/commons-net-1.4.1.jar b/lib/commons-net-1.4.1.jar deleted file mode 100644 index 9666a92..0000000 Binary files a/lib/commons-net-1.4.1.jar and /dev/null differ diff --git a/lib/delicious-1.14.jar b/lib/delicious-1.14.jar deleted file mode 100644 index bf441fa..0000000 Binary files a/lib/delicious-1.14.jar and /dev/null differ diff --git a/lib/jakarta-oro-2.0.8.jar b/lib/jakarta-oro-2.0.8.jar deleted file mode 100644 index 23488d2..0000000 Binary files a/lib/jakarta-oro-2.0.8.jar and /dev/null differ diff --git a/lib/jdom-1.1.jar b/lib/jdom-1.1.jar deleted file mode 100644 index 97c85f5..0000000 Binary files a/lib/jdom-1.1.jar and /dev/null differ diff --git a/lib/json.jar b/lib/json.jar deleted file mode 100644 index fe51b50..0000000 Binary files a/lib/json.jar and /dev/null differ diff --git a/lib/jsoup-1.6.3.jar b/lib/jsoup-1.6.3.jar deleted file mode 100644 index b3421d5..0000000 Binary files a/lib/jsoup-1.6.3.jar and /dev/null differ diff --git a/lib/jweather-0.2.5.jar b/lib/jweather-0.2.5.jar deleted file mode 100644 index 67baaaf..0000000 Binary files a/lib/jweather-0.2.5.jar and /dev/null differ diff --git a/lib/log4j-1.2.16.jar b/lib/log4j-1.2.16.jar deleted file mode 100644 index 3f9d847..0000000 Binary files a/lib/log4j-1.2.16.jar and /dev/null differ diff --git a/lib/ostermillerutils_1_07_00.jar b/lib/ostermillerutils_1_07_00.jar deleted file mode 100644 index a993150..0000000 Binary files a/lib/ostermillerutils_1_07_00.jar and /dev/null differ diff --git a/lib/pircbot.jar b/lib/pircbot.jar deleted file mode 100644 index b058aba..0000000 Binary files a/lib/pircbot.jar and /dev/null differ diff --git a/lib/rome-1.0.jar b/lib/rome-1.0.jar deleted file mode 100644 index 7138baa..0000000 Binary files a/lib/rome-1.0.jar and /dev/null differ diff --git a/lib/rome-fetcher-1.0.jar b/lib/rome-fetcher-1.0.jar deleted file mode 100644 index b889d47..0000000 Binary files a/lib/rome-fetcher-1.0.jar and /dev/null differ diff --git a/lib/twitter4j-core-3.0.3.jar b/lib/twitter4j-core-3.0.3.jar deleted file mode 100644 index b9394f4..0000000 Binary files a/lib/twitter4j-core-3.0.3.jar and /dev/null differ diff --git a/mobibot.fb b/mobibot.fb deleted file mode 100644 index 3a6314f..0000000 --- a/mobibot.fb +++ /dev/null @@ -1,21 +0,0 @@ -[Jar files] -D:\projects\java\mobibot\build -[Source dirs] -D:\projects\java\mobibot\src -[Aux classpath entries] -D:\projects\java\mobibot\lib\commons-cli-1.0.jar -D:\projects\java\mobibot\lib\commons-codec-1.3.jar -D:\projects\java\mobibot\lib\commons-httpclient-3.0-rc1.jar -D:\projects\java\mobibot\lib\commons-logging.jar -D:\projects\java\mobibot\lib\commons-net-1.2.2.jar -D:\projects\java\mobibot\lib\delicious-1.5.jar -D:\projects\java\mobibot\lib\google.jar -D:\projects\java\mobibot\lib\googleapi.jar -D:\projects\java\mobibot\lib\jakarta-oro-2.0.8.jar -D:\projects\java\mobibot\lib\jdom-1.0.jar -D:\projects\java\mobibot\lib\jweather-0.2.5.jar -D:\projects\java\mobibot\lib\log4j-1.2.8.jar -D:\projects\java\mobibot\lib\MathEvaluator.jar -D:\projects\java\mobibot\lib\pircbot.jar -D:\projects\java\mobibot\lib\rome-0.4.jar -D:\projects\java\mobibot\lib\rome-fetcher-0.4.jar diff --git a/mobibot.iml b/mobibot.iml index 9ebf5ab..dd01139 100644 --- a/mobibot.iml +++ b/mobibot.iml @@ -1,184 +1,35 @@ - - - + + - + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + diff --git a/mobibot.ipr b/mobibot.ipr index 995cc86..9f63751 100644 --- a/mobibot.ipr +++ b/mobibot.ipr @@ -1,10 +1,5 @@ - - - - - false false @@ -75,9 +70,7 @@ - - - + @@ -104,9 +97,67 @@ + + + + + + + + + + + + + + + mobibot + + + - + + + + @@ -595,5 +666,176 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/mobibot.iws b/mobibot.iws index 29e7ed1..a3687b2 100644 --- a/mobibot.iws +++ b/mobibot.iws @@ -34,21 +34,59 @@ - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - + + - - + + @@ -150,90 +188,36 @@ - + - + + + + + + + + + + + + + + + - - - - - - + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + @@ -254,33 +238,277 @@ + + + + + + + + - + @@ -333,22 +561,623 @@ - - + - Inspections + - Inspections + Abstraction issues + + + + + + + + + + + + AOP + + + Abstraction issues + + + ActionScript specificJavaScript + + + Android + + + Android Lint + + + Annotations verifyingGroovy + + + Ant inspections + + + Application Server Specific Inspections + + + Assignment issues + + + Assignment issuesGroovy + + + Assignment issuesJavaScript + + + BPMN 2.0 configuration errors + + + Batch Applications Issues + + + Bean Validation issues + + + Bitwise operation issues + + + Bitwise operation issuesJavaScript + + + CDI(Contexts and Dependency Injection) issues + + + CFML + + + CSS + + + Class metrics + + + Class structure + + + Cloning issues + + + Code maturity issues + + + Code quality toolsJavaScript + + + Code style issues + + + Code style issuesCSS + + + Code style issuesJavaScript + + + CoffeeScript + + + Compiler issues + + + Concurrency annotation issues + + + Control FlowGroovy + + + Control flow issues + + + Control flow issuesJavaScript + + + Cucumber + + + Cucumber Java + + + DOM issuesJavaScript + + + Data flow issues + + + Data flow issuesGroovy + + + Data flow issuesJavaScript + + + Declaration redundancy + + + Declaration redundancyGroovy + + + DeclarationGroovy + + + Dependency issues + + + Encapsulation issues + + + Error handling + + + Error handlingGroovy + + + Error handlingJavaScript + + + Faces Model + + + Finalization issues + + + FlexUnit inspections + + + FreeMarker inspections + + + GPath inspectionsGroovy + + + GSPGrailsGroovy + + + General + + + GeneralCoffeeScript + + + GeneralJavaScript + + + Google App Engine + + + Google Web Toolkit issues + + + Gradle + + + GrailsGroovy + + + Groovy + + + Guice Inspections + + + HTML + + + Hibernate Issues + + + Imports + + + Inheritance issues + + + Initialization issues + + + Internationalization issues + + + Invalid elementsCSS + + + J2ME Plugin + + + J2ME issues + + + JBoss Seam issues + + + JPA issues + + + JSF annotated elements errors + + + JSP Inspections + + + JUnit issues + + + Java EE issues + + + Java language level issues + + + Java language level migration aids + + + JavaBeans issues + + + JavaFX + + + JavaScript + + + JavaScript function metricsJavaScript + + + JavaScript validity issuesJavaScript + + + Javadoc issues + + + Jpdl Model + + + LESS + + + Language Injection + + + Logging issues + + + Manifest + + + Maven + + + Memory issues + + + Method MetricsGroovy + + + Method metrics + + + Modularization issues + + + Naming ConventionsGroovy + + + Naming conventions + + + Naming conventionsJavaScript + + + Numeric issues + + + OSGi + + + OtherGroovy + + + Packaging issues + + + Pages Navigation Model + + + Pattern Validation + + + Performance issues + + + Play + + + Plugin DevKit + + + Portability issues + + + Potentially confusing code constructsGroovy + + + Potentially confusing code constructsJavaScript + + + Probable bugs + + + Probable bugsCSS + + + Probable bugsCoffeeScript + + + Probable bugsGradle + + + Probable bugsGroovy + + + Probable bugsJavaScript + + + Properties Files + + + RELAX NG + + + RESTful Web Service + + + Resource management issues + + + SASS/SCSS + + + SQL + + + Security issues + + + Serialization issues + + + Spelling + + + Spring BatchSpring Model + + + Spring DataSpring Model + + + Spring IntegrationSpring Model + + + Spring MVCSpring Model + + + Spring Model + + + Spring OSGiSpring Model + + + Spring SecuritySpring Model + + + Spring Web FlowSpring Model + + + Spring Web ServicesSpring Model + + + Struts + + + Struts 1Struts + + + Struts 2Struts + + + StyleGroovy + + + Tapestry inspections + + + TestNG + + + Threading issues + + + Threading issuesGroovy + + + UI Form Problems + + + Validity issuesGroovy + + + Velocity inspections + + + Verbose or redundant code constructs + + + Visibility issues + + + WSDL issues + + + Web Services + + + WebSocket issues + + + XML + + + XPath + + + XSLT + + + toString() issues + + + + + Abstraction issues + + + + + + + + + + + + Android + + + Android Lint + + + CDI(Contexts and Dependency Injection) issues + + + Class metrics + + + Class structure + + + Cloning issues + + + Code style issues + + + Concurrency annotation issues + + + Control FlowGroovy + + + Declaration redundancy + + + DeclarationGroovy + + + Encapsulation issues + + + Error handling + + + Error handlingGroovy + + + Error handlingJavaScript + + + Finalization issues + + + Groovy + + + Inheritance issues + + + Initialization issues + + + J2ME issues + + + JPA issues + + + JUnit issues + + + Java EE issues + + + Java language level migration aids + + + JavaScript + + + Logging issues + + + Manifest + + + Memory issues + + + Naming ConventionsGroovy + + + Naming conventions + + + Performance issues + + + Probable bugs + + + Resource management issues + + + Security issues + + + Serialization issues + + + Threading issues + + + Threading issuesGroovy + + + + + LocalCanBeFinal @@ -400,7 +1229,7 @@ - + @@ -487,6 +1316,10 @@ + + + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - @@ -861,22 +1911,8 @@ - - + + @@ -909,49 +1966,53 @@ - - + + + - - - - + + + + + + - - + + - + - - - + + + - - + + - - - - - + + + + + + - + + - - + - + - + @@ -966,66 +2027,30 @@ + + + + -