Changed the name for the whole project

This commit is contained in:
Louis Vallat 2019-07-15 21:13:32 +02:00
parent 94550197e2
commit ed90b8a768
30 changed files with 129 additions and 65 deletions

View File

@ -7,8 +7,8 @@
<!-- the Compile on Save feature is turned off for the project. -->
<!-- You can turn off the Compile on Save (or Deploy on Save) setting -->
<!-- in the project's Project Properties dialog box.-->
<project name="TwitterTechSupportGoreBot" default="default" basedir=".">
<description>Builds, tests, and runs the project TwitterTechSupportGoreBot.</description>
<project name="RedditReposterBot" default="default" basedir=".">
<description>Builds, tests, and runs the project RedditReposterBot.</description>
<import file="nbproject/build-impl.xml"/>
<!--
@ -58,7 +58,7 @@
An example of overriding the target for project execution could look like this:
<target name="run" depends="TwitterTechSupportGoreBot-impl.jar">
<target name="run" depends="RedditReposterBot-impl.jar">
<exec dir="bin" executable="launcher.exe">
<arg file="${dist.jar}"/>
</exec>

View File

@ -0,0 +1,4 @@
#Mon, 15 Jul 2019 21:12:22 +0200
C\:\\Users\\louis\\Documents\\GitHub\\twitter_techsupportgore_bot\\reddit_reposter_bot=

32
reddit_reposter_bot/dist/README.TXT vendored Normal file
View File

@ -0,0 +1,32 @@
========================
BUILD OUTPUT DESCRIPTION
========================
When you build an Java application project that has a main class, the IDE
automatically copies all of the JAR
files on the projects classpath to your projects dist/lib folder. The IDE
also adds each of the JAR files to the Class-Path element in the application
JAR files manifest file (MANIFEST.MF).
To run the project from the command line, go to the dist folder and
type the following:
java -jar "RedditReposterBot.jar"
To distribute this project, zip up the dist folder (including the lib folder)
and distribute the ZIP file.
Notes:
* If two JAR files on the project classpath have the same name, only the first
JAR file is copied to the lib folder.
* Only JAR files are copied to the lib folder.
If the classpath contains other types of files or folders, these files (folders)
are not copied.
* If a library on the projects classpath also has a Class-Path element
specified in the manifest,the content of the Class-Path element has to be on
the projects runtime path.
* To set a main class in a standard Java project, right-click the project node
in the Projects window and choose Properties. Then click Run and enter the
class name in the Main Class field. Alternatively, you can manually type the
class name in the manifest Main-Class element.

View File

@ -19,7 +19,7 @@ is divided into following sections:
- cleanup
-->
<project xmlns:j2seproject1="http://www.netbeans.org/ns/j2se-project/1" xmlns:j2seproject3="http://www.netbeans.org/ns/j2se-project/3" xmlns:jaxrpc="http://www.netbeans.org/ns/j2se-project/jax-rpc" basedir=".." default="default" name="TwitterTechSupportGoreBot-impl">
<project xmlns:j2seproject1="http://www.netbeans.org/ns/j2se-project/1" xmlns:j2seproject3="http://www.netbeans.org/ns/j2se-project/3" xmlns:jaxrpc="http://www.netbeans.org/ns/j2se-project/jax-rpc" basedir=".." default="default" name="RedditReposterBot-impl">
<fail message="Please build using Ant 1.8.0 or higher.">
<condition>
<not>
@ -450,7 +450,7 @@ is divided into following sections:
</fileset>
</union>
<taskdef classname="org.testng.TestNGAntTask" classpath="${run.test.classpath}" name="testng"/>
<testng classfilesetref="test.set" failureProperty="tests.failed" listeners="org.testng.reporters.VerboseReporter" methods="${testng.methods.arg}" mode="${testng.mode}" outputdir="${build.test.results.dir}" suitename="TwitterTechSupportGoreBot" testname="TestNG tests" workingDir="${work.dir}">
<testng classfilesetref="test.set" failureProperty="tests.failed" listeners="org.testng.reporters.VerboseReporter" methods="${testng.methods.arg}" mode="${testng.mode}" outputdir="${build.test.results.dir}" suitename="RedditReposterBot" testname="TestNG tests" workingDir="${work.dir}">
<xmlfileset dir="${build.test.classes.dir}" includes="@{testincludes}"/>
<propertyset>
<propertyref prefix="test-sys-prop."/>
@ -601,7 +601,7 @@ is divided into following sections:
<condition else="-testclass @{testClass}" property="test.class.or.method" value="-methods @{testClass}.@{testMethod}">
<isset property="test.method"/>
</condition>
<condition else="-suitename TwitterTechSupportGoreBot -testname @{testClass} ${test.class.or.method}" property="testng.cmd.args" value="@{testClass}">
<condition else="-suitename RedditReposterBot -testname @{testClass} ${test.class.or.method}" property="testng.cmd.args" value="@{testClass}">
<matches pattern=".*\.xml" string="@{testClass}"/>
</condition>
<delete dir="${build.test.results.dir}" quiet="true"/>
@ -893,7 +893,7 @@ is divided into following sections:
<delete file="${built-jar.properties}" quiet="true"/>
</target>
<target if="already.built.jar.${basedir}" name="-warn-already-built-jar">
<echo level="warn" message="Cycle detected: TwitterTechSupportGoreBot was already built"/>
<echo level="warn" message="Cycle detected: RedditReposterBot was already built"/>
</target>
<target depends="init,-deps-jar-init" name="deps-jar" unless="no.deps">
<mkdir dir="${build.dir}"/>
@ -1378,7 +1378,7 @@ is divided into following sections:
<delete file="${built-clean.properties}" quiet="true"/>
</target>
<target if="already.built.clean.${basedir}" name="-warn-already-built-clean">
<echo level="warn" message="Cycle detected: TwitterTechSupportGoreBot was already built"/>
<echo level="warn" message="Cycle detected: RedditReposterBot was already built"/>
</target>
<target depends="init,-deps-clean-init" name="deps-clean" unless="no.deps">
<mkdir dir="${build.dir}"/>

View File

@ -1,8 +1,8 @@
build.xml.data.CRC32=3680b253
build.xml.script.CRC32=9d82390b
build.xml.data.CRC32=9dc9f11e
build.xml.script.CRC32=293f3476
build.xml.stylesheet.CRC32=8064a381@1.80.1.48
# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
nbproject/build-impl.xml.data.CRC32=3680b253
nbproject/build-impl.xml.script.CRC32=ee04fc0e
nbproject/build-impl.xml.data.CRC32=9dc9f11e
nbproject/build-impl.xml.script.CRC32=69003ede
nbproject/build-impl.xml.stylesheet.CRC32=830a3534@1.80.1.48

View File

@ -0,0 +1,9 @@
application.args=helo
#
#Mon Apr 22 18:09:19 CEST 2019
javac.debug=true
javadoc.preview=true
do.depend=false
do.jar=true
compile.on.save=false
user.properties.file=C\:\\Users\\louis\\AppData\\Roaming\\NetBeans\\8.2\\build.properties

View File

@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<project-private xmlns="http://www.netbeans.org/ns/project-private/1">
<editor-bookmarks xmlns="http://www.netbeans.org/ns/editor-bookmarks/2" lastBookmarkId="0"/>
<open-files xmlns="http://www.netbeans.org/ns/projectui-open-files/2">
<group/>
</open-files>
</project-private>

View File

@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd">
<properties>
<comment/>
<entry key="ACTIVATED_FEATURES">#org.netbeans.modules.profiler.v2.features.MonitorFeature@#org.netbeans.modules.profiler.v2.features.ThreadsFeature@#org.netbeans.modules.profiler.v2.features.SQLFeature@</entry>
<entry key="SINGLE_FEATURE">false</entry>
</properties>

View File

@ -3,7 +3,7 @@ annotation.processing.enabled.in.editor=false
annotation.processing.processors.list=
annotation.processing.run.all.processors=true
annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output
application.title=TwitterTechSupportGoreBot
application.title=RedditReposterBot
application.vendor=louis
build.classes.dir=${build.dir}/classes
build.classes.excludes=**/*.java,**/*.form
@ -25,7 +25,7 @@ debug.test.classpath=\
dist.archive.excludes=
# This directory is removed when the project is cleaned:
dist.dir=dist
dist.jar=${dist.dir}/TwitterTechSupportGoreBot.jar
dist.jar=${dist.dir}/RedditReposterBot.jar
dist.javadoc.dir=${dist.dir}/javadoc
endorsed.classpath=
excludes=
@ -64,7 +64,7 @@ javadoc.use=true
javadoc.version=false
javadoc.windowtitle=
kotlinc.classpath=${file.reference.kotlin-runtime.jar}
main.class=TwitterTechSupportGoreBot.TwitterTechSupportGoreBot
main.class=RedditReposterBot.TwitterTechSupportGoreBot
manifest.file=manifest.mf
meta.inf.dir=${src.dir}/META-INF
mkdist.disabled=false

View File

@ -3,7 +3,7 @@
<type>org.netbeans.modules.java.j2seproject</type>
<configuration>
<data xmlns="http://www.netbeans.org/ns/j2se-project/3">
<name>TwitterTechSupportGoreBot</name>
<name>RedditReposterBot</name>
<source-roots>
<root id="src.dir"/>
</source-roots>

View File

@ -14,11 +14,13 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package TwitterTechSupportGoreBot;
package RedditReposterBot;
import RedditReposterBot.exceptions.NoSuchFile;
import RedditReposterBot.exceptions.NotSufficientRights;
import RedditReposterBot.exceptions.NoSuchProperty;
import java.io.File;
import java.util.Properties;
import TwitterTechSupportGoreBot.exceptions.*;
import java.io.FileInputStream;
import java.io.IOException;

View File

@ -14,12 +14,15 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package TwitterTechSupportGoreBot;
package RedditReposterBot;
import TwitterTechSupportGoreBot.redditHandler.RedditPost;
import TwitterTechSupportGoreBot.socialMediaHandler.*;
import TwitterTechSupportGoreBot.redditHandler.*;
import TwitterTechSupportGoreBot.exceptions.*;
import RedditReposterBot.socialMediaHandler.SocialMediaPoster;
import RedditReposterBot.redditHandler.RedditExtractor;
import RedditReposterBot.exceptions.NoSuchFile;
import RedditReposterBot.exceptions.NoSuchOrder;
import RedditReposterBot.exceptions.NotSufficientRights;
import RedditReposterBot.exceptions.NoSuchProperty;
import RedditReposterBot.redditHandler.RedditPost;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
@ -32,7 +35,6 @@ import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.Iterator;
/**
* Singleton Hypervisor. This is the object that does everything. So we want it

View File

@ -14,13 +14,13 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package TwitterTechSupportGoreBot;
package RedditReposterBot;
import TwitterTechSupportGoreBot.exceptions.NoSuchFile;
import TwitterTechSupportGoreBot.exceptions.NoSuchOrder;
import TwitterTechSupportGoreBot.exceptions.NoSuchProperty;
import TwitterTechSupportGoreBot.socialMediaHandler.*;
import TwitterTechSupportGoreBot.exceptions.NotSufficientRights;
import RedditReposterBot.socialMediaHandler.TwitterBot;
import RedditReposterBot.exceptions.NoSuchFile;
import RedditReposterBot.exceptions.NoSuchOrder;
import RedditReposterBot.exceptions.NoSuchProperty;
import RedditReposterBot.exceptions.NotSufficientRights;
import java.io.IOException;
import java.sql.SQLException;

View File

@ -14,7 +14,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package TwitterTechSupportGoreBot.exceptions;
package RedditReposterBot.exceptions;
/**
* Exception throwable when there are no file at a given path.

View File

@ -14,7 +14,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package TwitterTechSupportGoreBot.exceptions;
package RedditReposterBot.exceptions;
/**
* Exception throwable when a sort order isn't a correct one.

View File

@ -14,7 +14,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package TwitterTechSupportGoreBot.exceptions;
package RedditReposterBot.exceptions;
/**
* Exception throwable when there are no property in the config file for a given

View File

@ -14,7 +14,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package TwitterTechSupportGoreBot.exceptions;
package RedditReposterBot.exceptions;
/**
* Exception throwable when the rights on a folder or a file aren't sufficient.

View File

@ -14,12 +14,12 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package TwitterTechSupportGoreBot.redditHandler;
package RedditReposterBot.redditHandler;
import TwitterTechSupportGoreBot.exceptions.NoSuchFile;
import TwitterTechSupportGoreBot.exceptions.NoSuchOrder;
import TwitterTechSupportGoreBot.exceptions.NoSuchProperty;
import TwitterTechSupportGoreBot.exceptions.NotSufficientRights;
import RedditReposterBot.exceptions.NoSuchFile;
import RedditReposterBot.exceptions.NoSuchOrder;
import RedditReposterBot.exceptions.NoSuchProperty;
import RedditReposterBot.exceptions.NotSufficientRights;
import com.google.gson.JsonArray;
import com.google.gson.JsonObject;
import com.google.gson.JsonParser;
@ -50,9 +50,9 @@ public final class RedditExtractor {
* @param subreddit Subreddit name. Just after /r/
*
* @throws IOException
* @throws TwitterTechSupportGoreBot.exceptions.NoSuchProperty
* @throws TwitterTechSupportGoreBot.exceptions.NoSuchFile
* @throws TwitterTechSupportGoreBot.exceptions.NotSufficientRights
* @throws RedditReposterBot.exceptions.NoSuchProperty
* @throws RedditReposterBot.exceptions.NoSuchFile
* @throws RedditReposterBot.exceptions.NotSufficientRights
* @throws NoSuchOrder
*/
public RedditExtractor(String subreddit)

View File

@ -14,7 +14,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package TwitterTechSupportGoreBot.redditHandler;
package RedditReposterBot.redditHandler;
/**
* This is an abstract class to define all RedditPosts.

View File

@ -14,7 +14,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package TwitterTechSupportGoreBot.redditHandler;
package RedditReposterBot.redditHandler;
/**
* Reddit image post object representation.

View File

@ -14,7 +14,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package TwitterTechSupportGoreBot.redditHandler;
package RedditReposterBot.redditHandler;
/**
* Reddit link post object representation.

View File

@ -14,7 +14,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package TwitterTechSupportGoreBot.redditHandler;
package RedditReposterBot.redditHandler;
/**
* Reddit text post object representation.

View File

@ -14,7 +14,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package TwitterTechSupportGoreBot.redditHandler;
package RedditReposterBot.redditHandler;
/**
* Reddit video post object representation.

View File

@ -14,13 +14,13 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package TwitterTechSupportGoreBot.redditHandler;
package RedditReposterBot.redditHandler;
import TwitterTechSupportGoreBot.ConfigFileReader;
import TwitterTechSupportGoreBot.exceptions.NoSuchFile;
import TwitterTechSupportGoreBot.exceptions.NoSuchOrder;
import TwitterTechSupportGoreBot.exceptions.NoSuchProperty;
import TwitterTechSupportGoreBot.exceptions.NotSufficientRights;
import RedditReposterBot.ConfigFileReader;
import RedditReposterBot.exceptions.NoSuchFile;
import RedditReposterBot.exceptions.NoSuchOrder;
import RedditReposterBot.exceptions.NoSuchProperty;
import RedditReposterBot.exceptions.NotSufficientRights;
import java.util.Arrays;
/**
@ -60,10 +60,10 @@ public final class SubReddit {
*
* @param name subreddit's name
*
* @throws TwitterTechSupportGoreBot.exceptions.NoSuchProperty
* @throws TwitterTechSupportGoreBot.exceptions.NoSuchFile
* @throws TwitterTechSupportGoreBot.exceptions.NotSufficientRights
* @throws TwitterTechSupportGoreBot.exceptions.NoSuchOrder
* @throws RedditReposterBot.exceptions.NoSuchProperty
* @throws RedditReposterBot.exceptions.NoSuchFile
* @throws RedditReposterBot.exceptions.NotSufficientRights
* @throws RedditReposterBot.exceptions.NoSuchOrder
*/
public SubReddit(String name) throws NoSuchProperty, NoSuchFile,
NotSufficientRights, NoSuchOrder {

View File

@ -14,7 +14,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package TwitterTechSupportGoreBot.socialMediaHandler;
package RedditReposterBot.socialMediaHandler;
/**
* Interface to specify what methods should social media posters implement.

View File

@ -14,11 +14,12 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package TwitterTechSupportGoreBot.socialMediaHandler;
package RedditReposterBot.socialMediaHandler;
import TwitterTechSupportGoreBot.ConfigFileReader;
import TwitterTechSupportGoreBot.exceptions.NoSuchFile;
import TwitterTechSupportGoreBot.exceptions.*;
import RedditReposterBot.exceptions.NotSufficientRights;
import RedditReposterBot.exceptions.NoSuchProperty;
import RedditReposterBot.ConfigFileReader;
import RedditReposterBot.exceptions.NoSuchFile;
import java.io.File;
import twitter4j.StatusUpdate;
import twitter4j.Twitter;
@ -61,9 +62,9 @@ public final class TwitterBot implements SocialMediaPoster {
/**
* Main constructor for the Twitter Bot.
*
* @throws TwitterTechSupportGoreBot.exceptions.NoSuchFile
* @throws TwitterTechSupportGoreBot.exceptions.NotSufficientRights
* @throws TwitterTechSupportGoreBot.exceptions.NoSuchProperty
* @throws RedditReposterBot.exceptions.NoSuchFile
* @throws RedditReposterBot.exceptions.NotSufficientRights
* @throws RedditReposterBot.exceptions.NoSuchProperty
*/
public TwitterBot() throws NoSuchFile, NotSufficientRights, NoSuchProperty {
ConfigFileReader reader = new ConfigFileReader();