소스 검색

Remove twitter command

Update nb files to 7
master
Chris Smith 13 년 전
부모
커밋
e4bef61a39
4개의 변경된 파일404개의 추가작업 그리고 129개의 파일을 삭제
  1. 401
    74
      nbproject/build-impl.xml
  2. 3
    3
      nbproject/genfiles.properties
  3. 0
    2
      src/com/md87/charliebravo/InputHandler.java
  4. 0
    50
      src/com/md87/charliebravo/commands/TwitterCommand.java

+ 401
- 74
nbproject/build-impl.xml 파일 보기

@@ -55,19 +55,75 @@ is divided into following sections:
55 55
     </target>
56 56
     <target depends="-pre-init,-init-private,-init-user,-init-project,-init-macrodef-property" name="-do-init">
57 57
         <available file="${manifest.file}" property="manifest.available"/>
58
-        <condition property="manifest.available+main.class">
58
+        <condition property="splashscreen.available">
59
+            <and>
60
+                <not>
61
+                    <equals arg1="${application.splash}" arg2="" trim="true"/>
62
+                </not>
63
+                <available file="${application.splash}"/>
64
+            </and>
65
+        </condition>
66
+        <condition property="main.class.available">
59 67
             <and>
60
-                <isset property="manifest.available"/>
61 68
                 <isset property="main.class"/>
62 69
                 <not>
63 70
                     <equals arg1="${main.class}" arg2="" trim="true"/>
64 71
                 </not>
65 72
             </and>
66 73
         </condition>
74
+        <condition property="manifest.available+main.class">
75
+            <and>
76
+                <isset property="manifest.available"/>
77
+                <isset property="main.class.available"/>
78
+            </and>
79
+        </condition>
80
+        <condition property="do.mkdist">
81
+            <and>
82
+                <isset property="libs.CopyLibs.classpath"/>
83
+                <not>
84
+                    <istrue value="${mkdist.disabled}"/>
85
+                </not>
86
+            </and>
87
+        </condition>
67 88
         <condition property="manifest.available+main.class+mkdist.available">
68 89
             <and>
69 90
                 <istrue value="${manifest.available+main.class}"/>
70
-                <isset property="libs.CopyLibs.classpath"/>
91
+                <isset property="do.mkdist"/>
92
+            </and>
93
+        </condition>
94
+        <condition property="manifest.available+main.class+mkdist.available+splashscreen.available">
95
+            <and>
96
+                <istrue value="${manifest.available+main.class+mkdist.available}"/>
97
+                <istrue value="${splashscreen.available}"/>
98
+            </and>
99
+        </condition>
100
+        <condition property="do.archive">
101
+            <not>
102
+                <istrue value="${jar.archive.disabled}"/>
103
+            </not>
104
+        </condition>
105
+        <condition property="do.archive+manifest.available">
106
+            <and>
107
+                <isset property="manifest.available"/>
108
+                <istrue value="${do.archive}"/>
109
+            </and>
110
+        </condition>
111
+        <condition property="do.archive+manifest.available+main.class">
112
+            <and>
113
+                <istrue value="${manifest.available+main.class}"/>
114
+                <istrue value="${do.archive}"/>
115
+            </and>
116
+        </condition>
117
+        <condition property="do.archive+manifest.available+main.class+mkdist.available">
118
+            <and>
119
+                <istrue value="${manifest.available+main.class+mkdist.available}"/>
120
+                <istrue value="${do.archive}"/>
121
+            </and>
122
+        </condition>
123
+        <condition property="do.archive+manifest.available+main.class+mkdist.available+splashscreen.available">
124
+            <and>
125
+                <istrue value="${manifest.available+main.class+mkdist.available+splashscreen.available}"/>
126
+                <istrue value="${do.archive}"/>
71 127
             </and>
72 128
         </condition>
73 129
         <condition property="have.tests">
@@ -109,6 +165,7 @@ is divided into following sections:
109 165
         <property name="javadoc.preview" value="true"/>
110 166
         <property name="application.args" value=""/>
111 167
         <property name="source.encoding" value="${file.encoding}"/>
168
+        <property name="runtime.encoding" value="${source.encoding}"/>
112 169
         <condition property="javadoc.encoding.used" value="${javadoc.encoding}">
113 170
             <and>
114 171
                 <isset property="javadoc.encoding"/>
@@ -124,12 +181,13 @@ is divided into following sections:
124 181
         <condition property="do.depend.true">
125 182
             <istrue value="${do.depend}"/>
126 183
         </condition>
127
-        <condition else="" property="javac.compilerargs.jaxws" value="-Djava.endorsed.dirs='${jaxws.endorsed.dir}'">
128
-            <and>
129
-                <isset property="jaxws.endorsed.dir"/>
130
-                <available file="nbproject/jaxws-build.xml"/>
131
-            </and>
184
+        <path id="endorsed.classpath.path" path="${endorsed.classpath}"/>
185
+        <condition else="" property="endorsed.classpath.cmd.line.arg" value="-Xbootclasspath/p:'${toString:endorsed.classpath.path}'">
186
+            <length length="0" string="${endorsed.classpath}" when="greater"/>
132 187
         </condition>
188
+        <property name="javac.fork" value="false"/>
189
+        <property name="jar.index" value="false"/>
190
+        <available file="${meta.inf.dir}/persistence.xml" property="has.persistence.xml"/>
133 191
     </target>
134 192
     <target name="-post-init">
135 193
         <!-- Empty placeholder for easier customization. -->
@@ -161,11 +219,13 @@ is divided into following sections:
161 219
             </sequential>
162 220
         </macrodef>
163 221
     </target>
164
-    <target name="-init-macrodef-javac">
222
+    <target depends="-init-ap-cmdline-properties" if="ap.supported.internal" name="-init-macrodef-javac-with-processors">
165 223
         <macrodef name="javac" uri="http://www.netbeans.org/ns/j2se-project/3">
166 224
             <attribute default="${src.src4.dir}:${src.java.dir}:${src.src3.dir}:${src.src2.dir}:${src.src.dir}:${src.dir}" name="srcdir"/>
167 225
             <attribute default="${build.classes.dir}" name="destdir"/>
168 226
             <attribute default="${javac.classpath}" name="classpath"/>
227
+            <attribute default="${javac.processorpath}" name="processorpath"/>
228
+            <attribute default="${build.generated.sources.dir}/ap-source-output" name="apgeneratedsrcdir"/>
169 229
             <attribute default="${includes}" name="includes"/>
170 230
             <attribute default="${excludes}" name="excludes"/>
171 231
             <attribute default="${javac.debug}" name="debug"/>
@@ -175,7 +235,8 @@ is divided into following sections:
175 235
             <sequential>
176 236
                 <property location="${build.dir}/empty" name="empty.dir"/>
177 237
                 <mkdir dir="${empty.dir}"/>
178
-                <javac debug="@{debug}" deprecation="${javac.deprecation}" destdir="@{destdir}" encoding="${source.encoding}" excludes="@{excludes}" includeantruntime="false" includes="@{includes}" source="${javac.source}" sourcepath="@{sourcepath}" srcdir="@{srcdir}" target="${javac.target}">
238
+                <mkdir dir="@{apgeneratedsrcdir}"/>
239
+                <javac debug="@{debug}" deprecation="${javac.deprecation}" destdir="@{destdir}" encoding="${source.encoding}" excludes="@{excludes}" fork="${javac.fork}" includeantruntime="false" includes="@{includes}" source="${javac.source}" sourcepath="@{sourcepath}" srcdir="@{srcdir}" target="${javac.target}" tempdir="${java.io.tmpdir}">
179 240
                     <src>
180 241
                         <dirset dir="@{gensrcdir}" erroronmissingdir="false">
181 242
                             <include name="*"/>
@@ -184,11 +245,53 @@ is divided into following sections:
184 245
                     <classpath>
185 246
                         <path path="@{classpath}"/>
186 247
                     </classpath>
187
-                    <compilerarg line="${javac.compilerargs} ${javac.compilerargs.jaxws}"/>
248
+                    <compilerarg line="${endorsed.classpath.cmd.line.arg}"/>
249
+                    <compilerarg line="${javac.compilerargs}"/>
250
+                    <compilerarg value="-processorpath"/>
251
+                    <compilerarg path="@{processorpath}:${empty.dir}"/>
252
+                    <compilerarg line="${ap.processors.internal}"/>
253
+                    <compilerarg line="${annotation.processing.processor.options}"/>
254
+                    <compilerarg value="-s"/>
255
+                    <compilerarg path="@{apgeneratedsrcdir}"/>
256
+                    <compilerarg line="${ap.proc.none.internal}"/>
188 257
                     <customize/>
189 258
                 </javac>
190 259
             </sequential>
191 260
         </macrodef>
261
+    </target>
262
+    <target depends="-init-ap-cmdline-properties" name="-init-macrodef-javac-without-processors" unless="ap.supported.internal">
263
+        <macrodef name="javac" uri="http://www.netbeans.org/ns/j2se-project/3">
264
+            <attribute default="${src.src4.dir}:${src.java.dir}:${src.src3.dir}:${src.src2.dir}:${src.src.dir}:${src.dir}" name="srcdir"/>
265
+            <attribute default="${build.classes.dir}" name="destdir"/>
266
+            <attribute default="${javac.classpath}" name="classpath"/>
267
+            <attribute default="${javac.processorpath}" name="processorpath"/>
268
+            <attribute default="${build.generated.sources.dir}/ap-source-output" name="apgeneratedsrcdir"/>
269
+            <attribute default="${includes}" name="includes"/>
270
+            <attribute default="${excludes}" name="excludes"/>
271
+            <attribute default="${javac.debug}" name="debug"/>
272
+            <attribute default="${empty.dir}" name="sourcepath"/>
273
+            <attribute default="${empty.dir}" name="gensrcdir"/>
274
+            <element name="customize" optional="true"/>
275
+            <sequential>
276
+                <property location="${build.dir}/empty" name="empty.dir"/>
277
+                <mkdir dir="${empty.dir}"/>
278
+                <javac debug="@{debug}" deprecation="${javac.deprecation}" destdir="@{destdir}" encoding="${source.encoding}" excludes="@{excludes}" fork="${javac.fork}" includeantruntime="false" includes="@{includes}" source="${javac.source}" sourcepath="@{sourcepath}" srcdir="@{srcdir}" target="${javac.target}" tempdir="${java.io.tmpdir}">
279
+                    <src>
280
+                        <dirset dir="@{gensrcdir}" erroronmissingdir="false">
281
+                            <include name="*"/>
282
+                        </dirset>
283
+                    </src>
284
+                    <classpath>
285
+                        <path path="@{classpath}"/>
286
+                    </classpath>
287
+                    <compilerarg line="${endorsed.classpath.cmd.line.arg}"/>
288
+                    <compilerarg line="${javac.compilerargs}"/>
289
+                    <customize/>
290
+                </javac>
291
+            </sequential>
292
+        </macrodef>
293
+    </target>
294
+    <target depends="-init-macrodef-javac-with-processors,-init-macrodef-javac-without-processors" name="-init-macrodef-javac">
192 295
         <macrodef name="depend" uri="http://www.netbeans.org/ns/j2se-project/3">
193 296
             <attribute default="${src.src4.dir}:${src.java.dir}:${src.src3.dir}:${src.src2.dir}:${src.src.dir}:${src.dir}" name="srcdir"/>
194 297
             <attribute default="${build.classes.dir}" name="destdir"/>
@@ -205,15 +308,18 @@ is divided into following sections:
205 308
             <attribute default="${build.classes.dir}" name="destdir"/>
206 309
             <sequential>
207 310
                 <fail unless="javac.includes">Must set javac.includes</fail>
208
-                <pathconvert pathsep="," property="javac.includes.binary">
311
+                <pathconvert pathsep="${line.separator}" property="javac.includes.binary">
209 312
                     <path>
210 313
                         <filelist dir="@{destdir}" files="${javac.includes}"/>
211 314
                     </path>
212 315
                     <globmapper from="*.java" to="*.class"/>
213 316
                 </pathconvert>
317
+                <tempfile deleteonexit="true" property="javac.includesfile.binary"/>
318
+                <echo file="${javac.includesfile.binary}" message="${javac.includes.binary}"/>
214 319
                 <delete>
215
-                    <files includes="${javac.includes.binary}"/>
320
+                    <files includesfile="${javac.includesfile.binary}"/>
216 321
                 </delete>
322
+                <delete file="${javac.includesfile.binary}"/>
217 323
             </sequential>
218 324
         </macrodef>
219 325
     </target>
@@ -223,7 +329,8 @@ is divided into following sections:
223 329
             <attribute default="${excludes}" name="excludes"/>
224 330
             <attribute default="**" name="testincludes"/>
225 331
             <sequential>
226
-                <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" showoutput="true">
332
+                <property name="junit.forkmode" value="perTest"/>
333
+                <junit dir="${work.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" forkmode="${junit.forkmode}" showoutput="true" tempdir="${build.dir}">
227 334
                     <batchtest todir="${build.test.results.dir}">
228 335
                         <fileset dir="${test.src.dir}" excludes="@{excludes},${excludes}" includes="@{includes}">
229 336
                             <filename name="@{testincludes}"/>
@@ -238,11 +345,56 @@ is divided into following sections:
238 345
                     </syspropertyset>
239 346
                     <formatter type="brief" usefile="false"/>
240 347
                     <formatter type="xml"/>
348
+                    <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
241 349
                     <jvmarg line="${run.jvmargs}"/>
242 350
                 </junit>
243 351
             </sequential>
244 352
         </macrodef>
245 353
     </target>
354
+    <target depends="-profile-pre-init, init, -profile-post-init, -profile-init-macrodef-profile, -profile-init-check" name="profile-init"/>
355
+    <target name="-profile-pre-init">
356
+        <!-- Empty placeholder for easier customization. -->
357
+        <!-- You can override this target in the ../build.xml file. -->
358
+    </target>
359
+    <target name="-profile-post-init">
360
+        <!-- Empty placeholder for easier customization. -->
361
+        <!-- You can override this target in the ../build.xml file. -->
362
+    </target>
363
+    <target name="-profile-init-macrodef-profile">
364
+        <macrodef name="resolve">
365
+            <attribute name="name"/>
366
+            <attribute name="value"/>
367
+            <sequential>
368
+                <property name="@{name}" value="${env.@{value}}"/>
369
+            </sequential>
370
+        </macrodef>
371
+        <macrodef name="profile">
372
+            <attribute default="${main.class}" name="classname"/>
373
+            <element name="customize" optional="true"/>
374
+            <sequential>
375
+                <property environment="env"/>
376
+                <resolve name="profiler.current.path" value="${profiler.info.pathvar}"/>
377
+                <java classname="@{classname}" dir="${profiler.info.dir}" fork="true" jvm="${profiler.info.jvm}">
378
+                    <jvmarg value="${profiler.info.jvmargs.agent}"/>
379
+                    <jvmarg line="${profiler.info.jvmargs}"/>
380
+                    <env key="${profiler.info.pathvar}" path="${profiler.info.agentpath}:${profiler.current.path}"/>
381
+                    <arg line="${application.args}"/>
382
+                    <classpath>
383
+                        <path path="${run.classpath}"/>
384
+                    </classpath>
385
+                    <syspropertyset>
386
+                        <propertyref prefix="run-sys-prop."/>
387
+                        <mapper from="run-sys-prop.*" to="*" type="glob"/>
388
+                    </syspropertyset>
389
+                    <customize/>
390
+                </java>
391
+            </sequential>
392
+        </macrodef>
393
+    </target>
394
+    <target depends="-profile-pre-init, init, -profile-post-init, -profile-init-macrodef-profile" name="-profile-init-check">
395
+        <fail unless="profiler.info.jvm">Must set JVM to use for profiling in profiler.info.jvm</fail>
396
+        <fail unless="profiler.info.jvmargs.agent">Must set profiler agent JVM arguments in profiler.info.jvmargs.agent</fail>
397
+    </target>
246 398
     <target depends="-init-debug-args" name="-init-macrodef-nbjpda">
247 399
         <macrodef name="nbjpdastart" uri="http://www.netbeans.org/ns/j2se-project/1">
248 400
             <attribute default="${main.class}" name="name"/>
@@ -294,10 +446,11 @@ is divided into following sections:
294 446
             <element name="customize" optional="true"/>
295 447
             <sequential>
296 448
                 <java classname="@{classname}" dir="${work.dir}" fork="true">
449
+                    <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
297 450
                     <jvmarg line="${debug-args-line}"/>
298 451
                     <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
299
-                    <jvmarg value="-Dfile.encoding=${source.encoding}"/>
300
-                    <redirector errorencoding="${source.encoding}" inputencoding="${source.encoding}" outputencoding="${source.encoding}"/>
452
+                    <jvmarg value="-Dfile.encoding=${runtime.encoding}"/>
453
+                    <redirector errorencoding="${runtime.encoding}" inputencoding="${runtime.encoding}" outputencoding="${runtime.encoding}"/>
301 454
                     <jvmarg line="${run.jvmargs}"/>
302 455
                     <classpath>
303 456
                         <path path="@{classpath}"/>
@@ -318,8 +471,9 @@ is divided into following sections:
318 471
             <element name="customize" optional="true"/>
319 472
             <sequential>
320 473
                 <java classname="@{classname}" dir="${work.dir}" fork="true">
321
-                    <jvmarg value="-Dfile.encoding=${source.encoding}"/>
322
-                    <redirector errorencoding="${source.encoding}" inputencoding="${source.encoding}" outputencoding="${source.encoding}"/>
474
+                    <jvmarg line="${endorsed.classpath.cmd.line.arg}"/>
475
+                    <jvmarg value="-Dfile.encoding=${runtime.encoding}"/>
476
+                    <redirector errorencoding="${runtime.encoding}" inputencoding="${runtime.encoding}" outputencoding="${runtime.encoding}"/>
323 477
                     <jvmarg line="${run.jvmargs}"/>
324 478
                     <classpath>
325 479
                         <path path="@{classpath}"/>
@@ -333,20 +487,86 @@ is divided into following sections:
333 487
             </sequential>
334 488
         </macrodef>
335 489
     </target>
490
+    <target name="-init-macrodef-copylibs">
491
+        <macrodef name="copylibs" uri="http://www.netbeans.org/ns/j2se-project/3">
492
+            <element name="customize" optional="true"/>
493
+            <sequential>
494
+                <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
495
+                <pathconvert property="run.classpath.without.build.classes.dir">
496
+                    <path path="${run.classpath}"/>
497
+                    <map from="${build.classes.dir.resolved}" to=""/>
498
+                </pathconvert>
499
+                <pathconvert pathsep=" " property="jar.classpath">
500
+                    <path path="${run.classpath.without.build.classes.dir}"/>
501
+                    <chainedmapper>
502
+                        <flattenmapper/>
503
+                        <globmapper from="*" to="lib/*"/>
504
+                    </chainedmapper>
505
+                </pathconvert>
506
+                <taskdef classname="org.netbeans.modules.java.j2seproject.copylibstask.CopyLibs" classpath="${libs.CopyLibs.classpath}" name="copylibs"/>
507
+                <copylibs compress="${jar.compress}" index="${jar.index}" jarfile="${dist.jar}" manifest="${manifest.file}" runtimeclasspath="${run.classpath.without.build.classes.dir}">
508
+                    <fileset dir="${build.classes.dir}"/>
509
+                    <manifest>
510
+                        <attribute name="Class-Path" value="${jar.classpath}"/>
511
+                        <customize/>
512
+                    </manifest>
513
+                </copylibs>
514
+            </sequential>
515
+        </macrodef>
516
+    </target>
336 517
     <target name="-init-presetdef-jar">
337 518
         <presetdef name="jar" uri="http://www.netbeans.org/ns/j2se-project/1">
338
-            <jar compress="${jar.compress}" jarfile="${dist.jar}">
519
+            <jar compress="${jar.compress}" index="${jar.index}" jarfile="${dist.jar}">
339 520
                 <j2seproject1:fileset dir="${build.classes.dir}"/>
340 521
             </jar>
341 522
         </presetdef>
342 523
     </target>
343
-    <target depends="-pre-init,-init-private,-init-user,-init-project,-do-init,-post-init,-init-check,-init-macrodef-property,-init-macrodef-javac,-init-macrodef-junit,-init-macrodef-nbjpda,-init-macrodef-debug,-init-macrodef-java,-init-presetdef-jar" name="init"/>
524
+    <target name="-init-ap-cmdline-properties">
525
+        <property name="annotation.processing.enabled" value="true"/>
526
+        <property name="annotation.processing.processors.list" value=""/>
527
+        <property name="annotation.processing.processor.options" value=""/>
528
+        <property name="annotation.processing.run.all.processors" value="true"/>
529
+        <property name="javac.processorpath" value="${javac.classpath}"/>
530
+        <property name="javac.test.processorpath" value="${javac.test.classpath}"/>
531
+        <condition property="ap.supported.internal" value="true">
532
+            <not>
533
+                <matches pattern="1\.[0-5](\..*)?" string="${javac.source}"/>
534
+            </not>
535
+        </condition>
536
+    </target>
537
+    <target depends="-init-ap-cmdline-properties" if="ap.supported.internal" name="-init-ap-cmdline-supported">
538
+        <condition else="" property="ap.processors.internal" value="-processor ${annotation.processing.processors.list}">
539
+            <isfalse value="${annotation.processing.run.all.processors}"/>
540
+        </condition>
541
+        <condition else="" property="ap.proc.none.internal" value="-proc:none">
542
+            <isfalse value="${annotation.processing.enabled}"/>
543
+        </condition>
544
+    </target>
545
+    <target depends="-init-ap-cmdline-properties,-init-ap-cmdline-supported" name="-init-ap-cmdline">
546
+        <property name="ap.cmd.line.internal" value=""/>
547
+    </target>
548
+    <target depends="-pre-init,-init-private,-init-user,-init-project,-do-init,-post-init,-init-check,-init-macrodef-property,-init-macrodef-javac,-init-macrodef-junit,-init-macrodef-nbjpda,-init-macrodef-debug,-init-macrodef-java,-init-presetdef-jar,-init-ap-cmdline" name="init"/>
344 549
     <!--
345 550
                 ===================
346 551
                 COMPILATION SECTION
347 552
                 ===================
348 553
             -->
349
-    <target depends="init" name="deps-jar" unless="no.deps"/>
554
+    <target name="-deps-jar-init" unless="built-jar.properties">
555
+        <property location="${build.dir}/built-jar.properties" name="built-jar.properties"/>
556
+        <delete file="${built-jar.properties}" quiet="true"/>
557
+    </target>
558
+    <target if="already.built.jar.${basedir}" name="-warn-already-built-jar">
559
+        <echo level="warn" message="Cycle detected: charliebravo was already built"/>
560
+    </target>
561
+    <target depends="init,-deps-jar-init" name="deps-jar" unless="no.deps">
562
+        <mkdir dir="${build.dir}"/>
563
+        <touch file="${built-jar.properties}" verbose="false"/>
564
+        <property file="${built-jar.properties}" prefix="already.built.jar."/>
565
+        <antcall target="-warn-already-built-jar"/>
566
+        <propertyfile file="${built-jar.properties}">
567
+            <entry key="${basedir}" value=""/>
568
+        </propertyfile>
569
+    </target>
350 570
     <target depends="init,-check-automatic-build,-clean-after-automatic-build" name="-verify-automatic-build"/>
351 571
     <target depends="init" name="-check-automatic-build">
352 572
         <available file="${build.classes.dir}/.netbeans_automatic_build" property="netbeans.automatic.build"/>
@@ -369,7 +589,7 @@ is divided into following sections:
369 589
         </pathconvert>
370 590
         <j2seproject3:depend srcdir="${src.src4.dir}:${src.java.dir}:${src.src3.dir}:${src.src2.dir}:${src.src.dir}:${src.dir}:${build.generated.subdirs}"/>
371 591
     </target>
372
-    <target depends="init,deps-jar,-pre-pre-compile,-pre-compile,-compile-depend" if="have.sources" name="-do-compile">
592
+    <target depends="init,deps-jar,-pre-pre-compile,-pre-compile, -copy-persistence-xml,-compile-depend" if="have.sources" name="-do-compile">
373 593
         <j2seproject3:javac gensrcdir="${build.generated.sources.dir}"/>
374 594
         <copy todir="${build.classes.dir}">
375 595
             <fileset dir="${src.src4.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
@@ -380,6 +600,12 @@ is divided into following sections:
380 600
             <fileset dir="${src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
381 601
         </copy>
382 602
     </target>
603
+    <target if="has.persistence.xml" name="-copy-persistence-xml">
604
+        <mkdir dir="${build.classes.dir}/META-INF"/>
605
+        <copy todir="${build.classes.dir}/META-INF">
606
+            <fileset dir="${meta.inf.dir}" includes="persistence.xml"/>
607
+        </copy>
608
+    </target>
383 609
     <target name="-post-compile">
384 610
         <!-- Empty placeholder for easier customization. -->
385 611
         <!-- You can override this target in the ../build.xml file. -->
@@ -412,13 +638,13 @@ is divided into following sections:
412 638
         <!-- Empty placeholder for easier customization. -->
413 639
         <!-- You can override this target in the ../build.xml file. -->
414 640
     </target>
415
-    <target depends="init,compile,-pre-pre-jar,-pre-jar" name="-do-jar-without-manifest" unless="manifest.available">
641
+    <target depends="init,compile,-pre-pre-jar,-pre-jar" if="do.archive" name="-do-jar-without-manifest" unless="manifest.available">
416 642
         <j2seproject1:jar/>
417 643
     </target>
418
-    <target depends="init,compile,-pre-pre-jar,-pre-jar" if="manifest.available" name="-do-jar-with-manifest" unless="manifest.available+main.class">
644
+    <target depends="init,compile,-pre-pre-jar,-pre-jar" if="do.archive+manifest.available" name="-do-jar-with-manifest" unless="manifest.available+main.class">
419 645
         <j2seproject1:jar manifest="${manifest.file}"/>
420 646
     </target>
421
-    <target depends="init,compile,-pre-pre-jar,-pre-jar" if="manifest.available+main.class" name="-do-jar-with-mainclass" unless="manifest.available+main.class+mkdist.available">
647
+    <target depends="init,compile,-pre-pre-jar,-pre-jar" if="do.archive+manifest.available+main.class" name="-do-jar-with-mainclass" unless="manifest.available+main.class+mkdist.available">
422 648
         <j2seproject1:jar manifest="${manifest.file}">
423 649
             <j2seproject1:manifest>
424 650
                 <j2seproject1:attribute name="Main-Class" value="${main.class}"/>
@@ -433,54 +659,35 @@ is divided into following sections:
433 659
         </pathconvert>
434 660
         <echo>java -cp "${run.classpath.with.dist.jar}" ${main.class}</echo>
435 661
     </target>
436
-    <target depends="init,compile,-pre-pre-jar,-pre-jar" if="manifest.available+main.class+mkdist.available" name="-do-jar-with-libraries">
437
-        <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
438
-        <pathconvert property="run.classpath.without.build.classes.dir">
439
-            <path path="${run.classpath}"/>
440
-            <map from="${build.classes.dir.resolved}" to=""/>
441
-        </pathconvert>
442
-        <pathconvert pathsep=" " property="jar.classpath">
443
-            <path path="${run.classpath.without.build.classes.dir}"/>
444
-            <chainedmapper>
445
-                <flattenmapper/>
446
-                <globmapper from="*" to="lib/*"/>
447
-            </chainedmapper>
448
-        </pathconvert>
449
-        <taskdef classname="org.netbeans.modules.java.j2seproject.copylibstask.CopyLibs" classpath="${libs.CopyLibs.classpath}" name="copylibs"/>
450
-        <copylibs compress="${jar.compress}" jarfile="${dist.jar}" manifest="${manifest.file}" runtimeclasspath="${run.classpath.without.build.classes.dir}">
451
-            <fileset dir="${build.classes.dir}"/>
452
-            <manifest>
662
+    <target depends="init,compile,-pre-pre-jar,-pre-jar,-init-macrodef-copylibs" if="do.archive+manifest.available+main.class+mkdist.available+splashscreen.available" name="-do-jar-with-libraries-and-splashscreen">
663
+        <basename file="${application.splash}" property="splashscreen.basename"/>
664
+        <mkdir dir="${build.classes.dir}/META-INF"/>
665
+        <copy failonerror="false" file="${application.splash}" todir="${build.classes.dir}/META-INF"/>
666
+        <j2seproject3:copylibs>
667
+            <customize>
453 668
                 <attribute name="Main-Class" value="${main.class}"/>
454
-                <attribute name="Class-Path" value="${jar.classpath}"/>
455
-            </manifest>
456
-        </copylibs>
669
+                <attribute name="SplashScreen-Image" value="META-INF/${splashscreen.basename}"/>
670
+            </customize>
671
+        </j2seproject3:copylibs>
457 672
         <echo>To run this application from the command line without Ant, try:</echo>
458 673
         <property location="${dist.jar}" name="dist.jar.resolved"/>
459 674
         <echo>java -jar "${dist.jar.resolved}"</echo>
460 675
     </target>
461
-    <target depends="init,compile,-pre-pre-jar,-pre-jar" if="libs.CopyLibs.classpath" name="-do-jar-with-libraries-without-manifest" unless="manifest.available+main.class">
462
-        <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
463
-        <pathconvert property="run.classpath.without.build.classes.dir">
464
-            <path path="${run.classpath}"/>
465
-            <map from="${build.classes.dir.resolved}" to=""/>
466
-        </pathconvert>
467
-        <pathconvert pathsep=" " property="jar.classpath">
468
-            <path path="${run.classpath.without.build.classes.dir}"/>
469
-            <chainedmapper>
470
-                <flattenmapper/>
471
-                <globmapper from="*" to="lib/*"/>
472
-            </chainedmapper>
473
-        </pathconvert>
474
-        <taskdef classname="org.netbeans.modules.java.j2seproject.copylibstask.CopyLibs" classpath="${libs.CopyLibs.classpath}" name="copylibs"/>
475
-        <copylibs compress="${jar.compress}" jarfile="${dist.jar}" runtimeclasspath="${run.classpath.without.build.classes.dir}">
476
-            <fileset dir="${build.classes.dir}"/>
477
-        </copylibs>
676
+    <target depends="init,compile,-pre-pre-jar,-pre-jar,-init-macrodef-copylibs" if="do.archive+manifest.available+main.class+mkdist.available" name="-do-jar-with-libraries" unless="splashscreen.available">
677
+        <j2seproject3:copylibs>
678
+            <customize>
679
+                <attribute name="Main-Class" value="${main.class}"/>
680
+            </customize>
681
+        </j2seproject3:copylibs>
682
+        <echo>To run this application from the command line without Ant, try:</echo>
683
+        <property location="${dist.jar}" name="dist.jar.resolved"/>
684
+        <echo>java -jar "${dist.jar.resolved}"</echo>
478 685
     </target>
479 686
     <target name="-post-jar">
480 687
         <!-- Empty placeholder for easier customization. -->
481 688
         <!-- You can override this target in the ../build.xml file. -->
482 689
     </target>
483
-    <target depends="init,compile,-pre-jar,-do-jar-with-manifest,-do-jar-without-manifest,-do-jar-with-mainclass,-do-jar-with-libraries,-do-jar-with-libraries-without-manifest,-post-jar" description="Build JAR." name="jar"/>
690
+    <target depends="init,compile,-pre-jar,-do-jar-with-manifest,-do-jar-without-manifest,-do-jar-with-mainclass,-do-jar-with-libraries-and-splashscreen,-do-jar-with-libraries,-post-jar" description="Build JAR." name="jar"/>
484 691
     <!--
485 692
                 =================
486 693
                 EXECUTION SECTION
@@ -496,11 +703,11 @@ is divided into following sections:
496 703
     <target name="-do-not-recompile">
497 704
         <property name="javac.includes.binary" value=""/>
498 705
     </target>
499
-    <target depends="init,-do-not-recompile,compile-single" name="run-single">
706
+    <target depends="init,compile-single" name="run-single">
500 707
         <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
501 708
         <j2seproject1:java classname="${run.class}"/>
502 709
     </target>
503
-    <target depends="init,-do-not-recompile,compile-test-single" name="run-test-with-main">
710
+    <target depends="init,compile-test-single" name="run-test-with-main">
504 711
         <fail unless="run.class">Must select one file in the IDE or set run.class</fail>
505 712
         <j2seproject1:java classname="${run.class}" classpath="${run.test.classpath}"/>
506 713
     </target>
@@ -531,12 +738,12 @@ is divided into following sections:
531 738
         <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
532 739
         <j2seproject3:debug classname="${debug.class}"/>
533 740
     </target>
534
-    <target depends="init,-do-not-recompile,compile-single,-debug-start-debugger,-debug-start-debuggee-single" if="netbeans.home" name="debug-single"/>
741
+    <target depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-single" if="netbeans.home" name="debug-single"/>
535 742
     <target depends="init,compile-test-single" if="netbeans.home" name="-debug-start-debuggee-main-test">
536 743
         <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail>
537 744
         <j2seproject3:debug classname="${debug.class}" classpath="${debug.test.classpath}"/>
538 745
     </target>
539
-    <target depends="init,-do-not-recompile,compile-test-single,-debug-start-debugger-main-test,-debug-start-debuggee-main-test" if="netbeans.home" name="debug-test-with-main"/>
746
+    <target depends="init,compile-test-single,-debug-start-debugger-main-test,-debug-start-debuggee-main-test" if="netbeans.home" name="debug-test-with-main"/>
540 747
     <target depends="init" name="-pre-debug-fix">
541 748
         <fail unless="fix.includes">Must set fix.includes</fail>
542 749
         <property name="javac.includes" value="${fix.includes}.java"/>
@@ -545,12 +752,78 @@ is divided into following sections:
545 752
         <j2seproject1:nbjpdareload/>
546 753
     </target>
547 754
     <target depends="init,-pre-debug-fix,-do-debug-fix" if="netbeans.home" name="debug-fix"/>
755
+    <!--
756
+                =================
757
+                PROFILING SECTION
758
+                =================
759
+            -->
760
+    <target depends="profile-init,compile" description="Profile a project in the IDE." if="netbeans.home" name="profile">
761
+        <nbprofiledirect>
762
+            <classpath>
763
+                <path path="${run.classpath}"/>
764
+            </classpath>
765
+        </nbprofiledirect>
766
+        <profile/>
767
+    </target>
768
+    <target depends="profile-init,compile-single" description="Profile a selected class in the IDE." if="netbeans.home" name="profile-single">
769
+        <fail unless="profile.class">Must select one file in the IDE or set profile.class</fail>
770
+        <nbprofiledirect>
771
+            <classpath>
772
+                <path path="${run.classpath}"/>
773
+            </classpath>
774
+        </nbprofiledirect>
775
+        <profile classname="${profile.class}"/>
776
+    </target>
777
+    <!--
778
+                =========================
779
+                APPLET PROFILING  SECTION
780
+                =========================
781
+            -->
782
+    <target depends="profile-init,compile-single" if="netbeans.home" name="profile-applet">
783
+        <nbprofiledirect>
784
+            <classpath>
785
+                <path path="${run.classpath}"/>
786
+            </classpath>
787
+        </nbprofiledirect>
788
+        <profile classname="sun.applet.AppletViewer">
789
+            <customize>
790
+                <arg value="${applet.url}"/>
791
+            </customize>
792
+        </profile>
793
+    </target>
794
+    <!--
795
+                =========================
796
+                TESTS PROFILING  SECTION
797
+                =========================
798
+            -->
799
+    <target depends="profile-init,compile-test-single" if="netbeans.home" name="profile-test-single">
800
+        <nbprofiledirect>
801
+            <classpath>
802
+                <path path="${run.test.classpath}"/>
803
+            </classpath>
804
+        </nbprofiledirect>
805
+        <junit dir="${profiler.info.dir}" errorproperty="tests.failed" failureproperty="tests.failed" fork="true" jvm="${profiler.info.jvm}" showoutput="true">
806
+            <env key="${profiler.info.pathvar}" path="${profiler.info.agentpath}:${profiler.current.path}"/>
807
+            <jvmarg value="${profiler.info.jvmargs.agent}"/>
808
+            <jvmarg line="${profiler.info.jvmargs}"/>
809
+            <test name="${profile.class}"/>
810
+            <classpath>
811
+                <path path="${run.test.classpath}"/>
812
+            </classpath>
813
+            <syspropertyset>
814
+                <propertyref prefix="test-sys-prop."/>
815
+                <mapper from="test-sys-prop.*" to="*" type="glob"/>
816
+            </syspropertyset>
817
+            <formatter type="brief" usefile="false"/>
818
+            <formatter type="xml"/>
819
+        </junit>
820
+    </target>
548 821
     <!--
549 822
                 ===============
550 823
                 JAVADOC SECTION
551 824
                 ===============
552 825
             -->
553
-    <target depends="init" name="-javadoc-build">
826
+    <target depends="init" if="have.sources" name="-javadoc-build">
554 827
         <mkdir dir="${dist.javadoc.dir}"/>
555 828
         <javadoc additionalparam="${javadoc.additionalparam}" author="${javadoc.author}" charset="UTF-8" destdir="${dist.javadoc.dir}" docencoding="UTF-8" encoding="${javadoc.encoding.used}" failonerror="true" noindex="${javadoc.noindex}" nonavbar="${javadoc.nonavbar}" notree="${javadoc.notree}" private="${javadoc.private}" source="${javac.source}" splitindex="${javadoc.splitindex}" use="${javadoc.use}" useexternalfile="true" version="${javadoc.version}" windowtitle="${javadoc.windowtitle}">
556 829
             <classpath>
@@ -578,6 +851,29 @@ is divided into following sections:
578 851
                 <include name="**/*.java"/>
579 852
             </fileset>
580 853
         </javadoc>
854
+        <copy todir="${dist.javadoc.dir}">
855
+            <fileset dir="${src.src4.dir}" excludes="${excludes}" includes="${includes}">
856
+                <filename name="**/doc-files/**"/>
857
+            </fileset>
858
+            <fileset dir="${src.java.dir}" excludes="${excludes}" includes="${includes}">
859
+                <filename name="**/doc-files/**"/>
860
+            </fileset>
861
+            <fileset dir="${src.src3.dir}" excludes="${excludes}" includes="${includes}">
862
+                <filename name="**/doc-files/**"/>
863
+            </fileset>
864
+            <fileset dir="${src.src2.dir}" excludes="${excludes}" includes="${includes}">
865
+                <filename name="**/doc-files/**"/>
866
+            </fileset>
867
+            <fileset dir="${src.src.dir}" excludes="${excludes}" includes="${includes}">
868
+                <filename name="**/doc-files/**"/>
869
+            </fileset>
870
+            <fileset dir="${src.dir}" excludes="${excludes}" includes="${includes}">
871
+                <filename name="**/doc-files/**"/>
872
+            </fileset>
873
+            <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false">
874
+                <include name="**/doc-files/**"/>
875
+            </fileset>
876
+        </copy>
581 877
     </target>
582 878
     <target depends="init,-javadoc-build" if="netbeans.home" name="-javadoc-browse" unless="no.javadoc.preview">
583 879
         <nbbrowse file="${dist.javadoc.dir}/index.html"/>
@@ -599,7 +895,7 @@ is divided into following sections:
599 895
         <j2seproject3:depend classpath="${javac.test.classpath}" destdir="${build.test.classes.dir}" srcdir="${test.src.dir}"/>
600 896
     </target>
601 897
     <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-compile-test-depend" if="have.tests" name="-do-compile-test">
602
-        <j2seproject3:javac classpath="${javac.test.classpath}" debug="true" destdir="${build.test.classes.dir}" srcdir="${test.src.dir}"/>
898
+        <j2seproject3:javac apgeneratedsrcdir="${build.test.classes.dir}" classpath="${javac.test.classpath}" debug="true" destdir="${build.test.classes.dir}" processorpath="${javac.test.processorpath}" srcdir="${test.src.dir}"/>
603 899
         <copy todir="${build.test.classes.dir}">
604 900
             <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
605 901
         </copy>
@@ -616,7 +912,7 @@ is divided into following sections:
616 912
     <target depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single" if="have.tests" name="-do-compile-test-single">
617 913
         <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail>
618 914
         <j2seproject3:force-recompile destdir="${build.test.classes.dir}"/>
619
-        <j2seproject3:javac classpath="${javac.test.classpath}" debug="true" destdir="${build.test.classes.dir}" excludes="" includes="${javac.includes}" sourcepath="${test.src.dir}" srcdir="${test.src.dir}"/>
915
+        <j2seproject3:javac apgeneratedsrcdir="${build.test.classes.dir}" classpath="${javac.test.classpath}" debug="true" destdir="${build.test.classes.dir}" excludes="" includes="${javac.includes}" processorpath="${javac.test.processorpath}" sourcepath="${test.src.dir}" srcdir="${test.src.dir}"/>
620 916
         <copy todir="${build.test.classes.dir}">
621 917
             <fileset dir="${test.src.dir}" excludes="${build.classes.excludes},${excludes}" includes="${includes}"/>
622 918
         </copy>
@@ -653,7 +949,7 @@ is divided into following sections:
653 949
     <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single" if="have.tests" name="-post-test-run-single">
654 950
         <fail if="tests.failed" unless="ignore.failing.tests">Some tests failed; see details above.</fail>
655 951
     </target>
656
-    <target depends="init,-do-not-recompile,compile-test-single,-pre-test-run-single,-do-test-run-single,-post-test-run-single" description="Run single unit test." name="test-single"/>
952
+    <target depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single,-post-test-run-single" description="Run single unit test." name="test-single"/>
657 953
     <!--
658 954
                 =======================
659 955
                 JUNIT DEBUGGING SECTION
@@ -680,7 +976,7 @@ is divided into following sections:
680 976
     <target depends="init,compile-test" if="netbeans.home+have.tests" name="-debug-start-debugger-test">
681 977
         <j2seproject1:nbjpdastart classpath="${debug.test.classpath}" name="${test.class}"/>
682 978
     </target>
683
-    <target depends="init,-do-not-recompile,compile-test-single,-debug-start-debugger-test,-debug-start-debuggee-test" name="debug-test"/>
979
+    <target depends="init,compile-test-single,-debug-start-debugger-test,-debug-start-debuggee-test" name="debug-test"/>
684 980
     <target depends="init,-pre-debug-fix,compile-test-single" if="netbeans.home" name="-do-debug-fix-test">
685 981
         <j2seproject1:nbjpdareload dir="${build.test.classes.dir}"/>
686 982
     </target>
@@ -717,14 +1013,45 @@ is divided into following sections:
717 1013
                 CLEANUP SECTION
718 1014
                 ===============
719 1015
             -->
720
-    <target depends="init" name="deps-clean" unless="no.deps"/>
1016
+    <target name="-deps-clean-init" unless="built-clean.properties">
1017
+        <property location="${build.dir}/built-clean.properties" name="built-clean.properties"/>
1018
+        <delete file="${built-clean.properties}" quiet="true"/>
1019
+    </target>
1020
+    <target if="already.built.clean.${basedir}" name="-warn-already-built-clean">
1021
+        <echo level="warn" message="Cycle detected: charliebravo was already built"/>
1022
+    </target>
1023
+    <target depends="init,-deps-clean-init" name="deps-clean" unless="no.deps">
1024
+        <mkdir dir="${build.dir}"/>
1025
+        <touch file="${built-clean.properties}" verbose="false"/>
1026
+        <property file="${built-clean.properties}" prefix="already.built.clean."/>
1027
+        <antcall target="-warn-already-built-clean"/>
1028
+        <propertyfile file="${built-clean.properties}">
1029
+            <entry key="${basedir}" value=""/>
1030
+        </propertyfile>
1031
+    </target>
721 1032
     <target depends="init" name="-do-clean">
722 1033
         <delete dir="${build.dir}"/>
723
-        <delete dir="${dist.dir}"/>
1034
+        <delete dir="${dist.dir}" followsymlinks="false" includeemptydirs="true"/>
724 1035
     </target>
725 1036
     <target name="-post-clean">
726 1037
         <!-- Empty placeholder for easier customization. -->
727 1038
         <!-- You can override this target in the ../build.xml file. -->
728 1039
     </target>
729 1040
     <target depends="init,deps-clean,-do-clean,-post-clean" description="Clean build products." name="clean"/>
1041
+    <target name="-check-call-dep">
1042
+        <property file="${call.built.properties}" prefix="already.built."/>
1043
+        <condition property="should.call.dep">
1044
+            <not>
1045
+                <isset property="already.built.${call.subproject}"/>
1046
+            </not>
1047
+        </condition>
1048
+    </target>
1049
+    <target depends="-check-call-dep" if="should.call.dep" name="-maybe-call-dep">
1050
+        <ant antfile="${call.script}" inheritall="false" target="${call.target}">
1051
+            <propertyset>
1052
+                <propertyref prefix="transfer."/>
1053
+                <mapper from="transfer.*" to="*" type="glob"/>
1054
+            </propertyset>
1055
+        </ant>
1056
+    </target>
730 1057
 </project>

+ 3
- 3
nbproject/genfiles.properties 파일 보기

@@ -1,8 +1,8 @@
1 1
 build.xml.data.CRC32=96efc3b9
2 2
 build.xml.script.CRC32=d4296ee3
3
-build.xml.stylesheet.CRC32=958a1d3e
3
+build.xml.stylesheet.CRC32=28e38971@1.40.0.45
4 4
 # This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
5 5
 # Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
6 6
 nbproject/build-impl.xml.data.CRC32=96efc3b9
7
-nbproject/build-impl.xml.script.CRC32=f57586c1
8
-nbproject/build-impl.xml.stylesheet.CRC32=5c621a33@1.26.1.45
7
+nbproject/build-impl.xml.script.CRC32=627b944c
8
+nbproject/build-impl.xml.stylesheet.CRC32=fce8b508@1.40.0.45

+ 0
- 2
src/com/md87/charliebravo/InputHandler.java 파일 보기

@@ -48,7 +48,6 @@ import com.md87.charliebravo.commands.SnippetsCommand;
48 48
 import com.md87.charliebravo.commands.LawCommand;
49 49
 import com.md87.charliebravo.commands.QuoteCommand;
50 50
 import com.md87.charliebravo.commands.TranslateCommand;
51
-import com.md87.charliebravo.commands.TwitterCommand;
52 51
 import com.md87.charliebravo.commands.WhoisCommand;
53 52
 import com.md87.util.crypto.ArcFourEncrypter;
54 53
 import java.util.ArrayList;
@@ -94,7 +93,6 @@ public class InputHandler implements IChannelMessage, IPrivateMessage, IPrivateC
94 93
         commands.add(new DefineCommand());
95 94
         commands.add(new LawCommand());
96 95
         commands.add(new QuoteCommand());
97
-        commands.add(new TwitterCommand());
98 96
     }
99 97
 
100 98
     public Config getConfig() {

+ 0
- 50
src/com/md87/charliebravo/commands/TwitterCommand.java 파일 보기

@@ -1,50 +0,0 @@
1
-/*
2
- * Copyright (c) 2009-2010 Chris Smith
3
- *
4
- * Permission is hereby granted, free of charge, to any person obtaining a copy
5
- * of this software and associated documentation files (the "Software"), to deal
6
- * in the Software without restriction, including without limitation the rights
7
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
- * copies of the Software, and to permit persons to whom the Software is
9
- * furnished to do so, subject to the following conditions:
10
- *
11
- * The above copyright notice and this permission notice shall be included in
12
- * all copies or substantial portions of the Software.
13
- *
14
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
- * SOFTWARE.
21
- */
22
-
23
-package com.md87.charliebravo.commands;
24
-
25
-import com.md87.charliebravo.Command;
26
-import com.md87.charliebravo.CommandOptions;
27
-import com.md87.charliebravo.InputHandler;
28
-import com.md87.charliebravo.Response;
29
-import twitter4j.Twitter;
30
-
31
-/**
32
- *
33
- * @author chris
34
- */
35
-@CommandOptions(requireAuthorisation=true, requiredSettings={"twitter.username","twitter.password"})
36
-public class TwitterCommand implements Command {
37
-
38
-    public void execute(InputHandler handler, Response response, String line) throws Exception {
39
-        final String openID = (String) handler.getParser().getClientInfoOrFake(response.getSource())
40
-                .getMap().get("OpenID");
41
-
42
-        String user = handler.getConfig().getOption(openID, "twitter.username");
43
-        String pass = handler.getConfig().getOption(openID, "twitter.password");
44
-
45
-        Twitter twitter = new Twitter(user, pass);
46
-        twitter.updateStatus(line);
47
-        response.sendMessage("Done", true);
48
-    }
49
-
50
-}

Loading…
취소
저장