Refactored packages from fr.imirhil.april.* to org.april.*

This commit is contained in:
Christian P. MOMON 2017-12-14 21:57:51 +01:00
parent ab223bb6be
commit ca0f25afb2
33 changed files with 84 additions and 85 deletions

View File

@ -1,6 +1,6 @@
analyseLocally=false
eclipse.preferences.version=1
extraProperties=
projectKey=fr.imirhil.april\:hebdobot
projectKey=org.april\:hebdobot
serverUrl=http\://localhost\:9000
version=2

View File

@ -3,7 +3,7 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd">
<context:component-scan base-package="fr.imirhil.april.hebdobot" />
<context:component-scan base-package="org.april.hebdobot" />
<bean id="properties"
class="org.springframework.beans.factory.config.PropertiesFactoryBean">
@ -14,21 +14,21 @@
</property>
</bean>
<bean id="userAliases" class="fr.imirhil.april.hebdobot.xml.UserAlias">
<bean id="userAliases" class="org.april.hebdobot.xml.UserAlias">
<constructor-arg name="source" value="file:users.xml" />
</bean>
<bean id="bot" class="fr.imirhil.april.hebdobot.irc.Bot"
<bean id="bot" class="org.april.hebdobot.irc.Bot"
init-method="init" destroy-method="close">
<constructor-arg name="host" value="irc.freenode.org" />
<constructor-arg name="port" value="6667" />
<constructor-arg name="name" value="Hebdobot" />
<constructor-arg name="channel" value="#april" />
</bean>
<bean id="pastebin" class="fr.imirhil.april.hebdobot.pastebin.PastebinClient">
<bean id="pastebin" class="org.april.hebdobot.pastebin.PastebinClient">
<constructor-arg name="apiKey"
value="XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" />
</bean>
<bean id="identi.ca" class="fr.imirhil.april.hebdobot.statusnet.IdentiCaClient">
<bean id="identi.ca" class="org.april.hebdobot.statusnet.IdentiCaClient">
<constructor-arg name="apiKey"
value="ef8ad74a5ab4a92138ff397763776a14" />
<constructor-arg name="apiSecret"
@ -39,7 +39,7 @@
value="XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" />
</bean>
<bean id="job" class="fr.imirhil.april.hebdobot.Job">
<bean id="job" class="org.april.hebdobot.Job">
<property name="statusNetMessage"
value="Revue hebdomadaire !april dans %dmin sur irc://irc.freenode.org/april ou http://webchat.freenode.net/?channels=april" />
<property name="ircMessage" value="Revue hebdomadaire dans %dmin" />

View File

@ -4,7 +4,7 @@ NAME=hebdobot
BASE_DIR=$HOME/$NAME
PID_FILE=$BASE_DIR/$NAME.pid
DAEMON=java
DAEMON_ARGS="-cp *:lib/* fr.imirhil.april.hebdobot.Application"
DAEMON_ARGS="-cp *:lib/* org.april.hebdobot.Application"
CMD="/sbin/start-stop-daemon --chdir $BASE_DIR --quiet --make-pidfile --pidfile $PID_FILE --exec $DAEMON"
case "$1" in

View File

@ -1,2 +1,2 @@
#!/bin/sh
java -cp '*:lib/*' fr.imirhil.april.hebdobot.Application
java -cp '*:lib/*' org.april.hebdobot.Application

View File

@ -10,11 +10,11 @@
<stayAlive>false</stayAlive>
<icon>hebdobot.ico</icon>
<classPath>
<mainClass>fr.imirhil..april.hebdobot.Bot</mainClass>
<mainClass>org.april.hebdobot.Bot</mainClass>
<cp>lib/*</cp>
</classPath>
<jre>
<minVersion>1.6.0</minVersion>
<minVersion>1.7.0</minVersion>
<jdkPreference>preferJre</jdkPreference>
</jre>
</launch4jConfig>

View File

@ -1,7 +1,7 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>fr.imirhil.april</groupId>
<groupId>org.april</groupId>
<artifactId>hebdobot</artifactId>
<version>1.2.3-SNAPSHOT</version>
<scm>
@ -28,8 +28,8 @@
</execution>
</executions>
<configuration>
<schemaDirectory>${basedir}/src/main/resources/fr/imirhil/april/hebdobot</schemaDirectory>
<bindingDirectory>${basedir}/src/main/resources/fr/imirhil/april/hebdobot</bindingDirectory>
<schemaDirectory>${basedir}/src/main/resources/org/april/hebdobot</schemaDirectory>
<bindingDirectory>${basedir}/src/main/resources/org/april/hebdobot</bindingDirectory>
</configuration>
</plugin>
<plugin>

View File

@ -17,24 +17,23 @@
* You should have received a copy of the GNU Affero General Public License
* along with Hebdobot. If not, see <http://www.gnu.org/licenses/>
*/
package fr.imirhil.april.hebdobot;
package org.april.hebdobot;
import java.io.File;
import java.util.Properties;
import org.apache.commons.io.FileUtils;
import org.april.hebdobot.irc.Hebdobot;
import org.april.hebdobot.irc.ReviewListener;
import org.april.hebdobot.pastebin.PastebinClient;
import org.april.hebdobot.pastebin.Private;
import org.april.hebdobot.review.Review;
import org.joda.time.DateTime;
import org.joda.time.format.ISODateTimeFormat;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.support.FileSystemXmlApplicationContext;
import fr.imirhil.april.hebdobot.irc.Hebdobot;
import fr.imirhil.april.hebdobot.irc.ReviewListener;
import fr.imirhil.april.hebdobot.pastebin.PastebinClient;
import fr.imirhil.april.hebdobot.pastebin.Private;
import fr.imirhil.april.hebdobot.review.Review;
/**
* The Class Application.
*/
@ -63,7 +62,7 @@ public class Application implements ReviewListener
}
/* (non-Javadoc)
* @see fr.imirhil.april.hebdobot.irc.ReviewListener#onEnd(fr.imirhil.april.hebdobot.review.Review)
* @see org.april.hebdobot.irc.ReviewListener#onEnd(org.april.hebdobot.review.Review)
*/
@Override
public void onEnd(final Review review)

View File

@ -17,7 +17,7 @@
* You should have received a copy of the GNU Affero General Public License
* along with Hebdobot. If not, see <http://www.gnu.org/licenses/>
*/
package fr.imirhil.april.hebdobot;
package org.april.hebdobot;
import org.springframework.beans.BeansException;
import org.springframework.context.ApplicationContext;

View File

@ -17,14 +17,13 @@
* You should have received a copy of the GNU Affero General Public License
* along with Hebdobot. If not, see <http://www.gnu.org/licenses/>
*/
package fr.imirhil.april.hebdobot;
package org.april.hebdobot;
import javax.annotation.Resource;
import org.april.hebdobot.irc.Hebdobot;
import org.springframework.social.twitter.api.impl.TwitterTemplate;
import fr.imirhil.april.hebdobot.irc.Hebdobot;
/**
* The Class Job.
*/

View File

@ -17,7 +17,7 @@
* You should have received a copy of the GNU Affero General Public License
* along with Hebdobot. If not, see <http://www.gnu.org/licenses/>
*/
package fr.imirhil.april.hebdobot;
package org.april.hebdobot;
import java.util.Scanner;

View File

@ -17,7 +17,7 @@
* You should have received a copy of the GNU Affero General Public License
* along with Hebdobot. If not, see <http://www.gnu.org/licenses/>
*/
package fr.imirhil.april.hebdobot.irc;
package org.april.hebdobot.irc;
/**
* The Class Handler.

View File

@ -17,7 +17,7 @@
* You should have received a copy of the GNU Affero General Public License
* along with Hebdobot. If not, see <http://www.gnu.org/licenses/>
*/
package fr.imirhil.april.hebdobot.irc;
package org.april.hebdobot.irc;
import java.util.Collection;
import java.util.Iterator;
@ -26,17 +26,16 @@ import java.util.List;
import org.apache.commons.collections.CollectionUtils;
import org.apache.commons.lang.StringUtils;
import org.april.hebdobot.Context;
import org.april.hebdobot.review.CollectiveTopic;
import org.april.hebdobot.review.IndividualTopic;
import org.april.hebdobot.review.Message;
import org.april.hebdobot.review.Review;
import org.april.hebdobot.review.Topic;
import org.jibble.pircbot.PircBot;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import fr.imirhil.april.hebdobot.Context;
import fr.imirhil.april.hebdobot.review.CollectiveTopic;
import fr.imirhil.april.hebdobot.review.IndividualTopic;
import fr.imirhil.april.hebdobot.review.Message;
import fr.imirhil.april.hebdobot.review.Review;
import fr.imirhil.april.hebdobot.review.Topic;
/**
* The Class Bot.
*/
@ -149,7 +148,7 @@ public class Hebdobot extends PircBot
this.handlers.add(new Handler()
{
/* (non-Javadoc)
* @see fr.imirhil.april.hebdobot.irc.Bot.Handler#handle(java.lang.String, java.lang.String)
* @see org.april.hebdobot.irc.Bot.Handler#handle(java.lang.String, java.lang.String)
*/
@Override
public boolean handle(final String sender, final String message)
@ -159,7 +158,8 @@ public class Hebdobot extends PircBot
if (StringUtils.equalsIgnoreCase(message, "!help"))
{
Hebdobot.this.sendMessage(sender, "Bienvenue " + sender);
Hebdobot.this.sendMessage(sender, "Je suis " + Hebdobot.this.getName() + ", le robot de gestion des revues hebdomadaires de l'APRIL");
Hebdobot.this.sendMessage(sender,
"Je suis " + Hebdobot.this.getName() + ", le robot de gestion des revues hebdomadaires de l'APRIL");
Hebdobot.this.sendMessage(sender, "Voici les commandes que je comprend :");
Hebdobot.this.sendMessage(sender, " ");
Hebdobot.this.sendMessage(sender, "— !debut : commencer une nouvelle revue");
@ -185,7 +185,7 @@ public class Hebdobot extends PircBot
this.handlers.add(new Handler()
{
/* (non-Javadoc)
* @see fr.imirhil.april.hebdobot.irc.Bot.Handler#handle(java.lang.String, java.lang.String)
* @see org.april.hebdobot.irc.Bot.Handler#handle(java.lang.String, java.lang.String)
*/
@Override
public boolean handle(final String sender, final String message)
@ -216,7 +216,7 @@ public class Hebdobot extends PircBot
this.handlers.add(new Handler()
{
/* (non-Javadoc)
* @see fr.imirhil.april.hebdobot.irc.Bot.Handler#handle(java.lang.String, java.lang.String)
* @see org.april.hebdobot.irc.Bot.Handler#handle(java.lang.String, java.lang.String)
*/
@Override
public boolean handle(final String sender, final String message)
@ -247,7 +247,7 @@ public class Hebdobot extends PircBot
this.handlers.add(new Handler()
{
/* (non-Javadoc)
* @see fr.imirhil.april.hebdobot.irc.Bot.Handler#handle(java.lang.String, java.lang.String)
* @see org.april.hebdobot.irc.Bot.Handler#handle(java.lang.String, java.lang.String)
*/
@Override
public boolean handle(final String sender, final String message)
@ -292,7 +292,7 @@ public class Hebdobot extends PircBot
this.handlers.add(new Handler()
{
/* (non-Javadoc)
* @see fr.imirhil.april.hebdobot.irc.Bot.Handler#handle(java.lang.String, java.lang.String)
* @see org.april.hebdobot.irc.Bot.Handler#handle(java.lang.String, java.lang.String)
*/
@Override
public boolean handle(final String sender, final String message)
@ -336,7 +336,7 @@ public class Hebdobot extends PircBot
this.handlers.add(new Handler()
{
/* (non-Javadoc)
* @see fr.imirhil.april.hebdobot.irc.Bot.Handler#handle(java.lang.String, java.lang.String)
* @see org.april.hebdobot.irc.Bot.Handler#handle(java.lang.String, java.lang.String)
*/
@Override
public boolean handle(final String sender, final String message)
@ -373,7 +373,7 @@ public class Hebdobot extends PircBot
this.handlers.add(new Handler()
{
/* (non-Javadoc)
* @see fr.imirhil.april.hebdobot.irc.Bot.Handler#handle(java.lang.String, java.lang.String)
* @see org.april.hebdobot.irc.Bot.Handler#handle(java.lang.String, java.lang.String)
*/
@Override
public boolean handle(final String sender, final String message)
@ -405,7 +405,8 @@ public class Hebdobot extends PircBot
}
else
{
Hebdobot.this.sendMessage(String.format("Les participants suivants sont manquants : %1s", StringUtils.join(missing, ", ")));
Hebdobot.this
.sendMessage(String.format("Les participants suivants sont manquants : %1s", StringUtils.join(missing, ", ")));
result = true;
}
}
@ -420,7 +421,7 @@ public class Hebdobot extends PircBot
this.handlers.add(new Handler()
{
/* (non-Javadoc)
* @see fr.imirhil.april.hebdobot.irc.Bot.Handler#handle(java.lang.String, java.lang.String)
* @see org.april.hebdobot.irc.Bot.Handler#handle(java.lang.String, java.lang.String)
*/
@Override
public boolean handle(final String sender, final String message)
@ -459,7 +460,7 @@ public class Hebdobot extends PircBot
this.handlers.add(new Handler()
{
/* (non-Javadoc)
* @see fr.imirhil.april.hebdobot.irc.Bot.Handler#handle(java.lang.String, java.lang.String)
* @see org.april.hebdobot.irc.Bot.Handler#handle(java.lang.String, java.lang.String)
*/
@Override
public boolean handle(final String sender, final String message)
@ -485,7 +486,7 @@ public class Hebdobot extends PircBot
this.handlers.add(new Handler()
{
/* (non-Javadoc)
* @see fr.imirhil.april.hebdobot.irc.Bot.Handler#handle(java.lang.String, java.lang.String)
* @see org.april.hebdobot.irc.Bot.Handler#handle(java.lang.String, java.lang.String)
*/
@Override
public boolean handle(final String sender, final String message)

View File

@ -17,9 +17,9 @@
* You should have received a copy of the GNU Affero General Public License
* along with Hebdobot. If not, see <http://www.gnu.org/licenses/>
*/
package fr.imirhil.april.hebdobot.irc;
package org.april.hebdobot.irc;
import fr.imirhil.april.hebdobot.review.Review;
import org.april.hebdobot.review.Review;
/**
* The listener interface for receiving review events. The class that is

View File

@ -17,7 +17,7 @@
* You should have received a copy of the GNU Affero General Public License
* along with Hebdobot. If not, see <http://www.gnu.org/licenses/>
*/
package fr.imirhil.april.hebdobot.pastebin;
package org.april.hebdobot.pastebin;
public class APIException extends Exception
{

View File

@ -17,7 +17,7 @@
* You should have received a copy of the GNU Affero General Public License
* along with Hebdobot. If not, see <http://www.gnu.org/licenses/>
*/
package fr.imirhil.april.hebdobot.pastebin;
package org.april.hebdobot.pastebin;
/**
* The Enum Expiration.

View File

@ -17,7 +17,7 @@
* You should have received a copy of the GNU Affero General Public License
* along with Hebdobot. If not, see <http://www.gnu.org/licenses/>
*/
package fr.imirhil.april.hebdobot.pastebin;
package org.april.hebdobot.pastebin;
/**
* The Enum Format.

View File

@ -17,7 +17,7 @@
* You should have received a copy of the GNU Affero General Public License
* along with Hebdobot. If not, see <http://www.gnu.org/licenses/>
*/
package fr.imirhil.april.hebdobot.pastebin;
package org.april.hebdobot.pastebin;
/**
* The Enum Option.

View File

@ -17,7 +17,7 @@
* You should have received a copy of the GNU Affero General Public License
* along with Hebdobot. If not, see <http://www.gnu.org/licenses/>
*/
package fr.imirhil.april.hebdobot.pastebin;
package org.april.hebdobot.pastebin;
import java.util.LinkedList;
import java.util.List;

View File

@ -17,7 +17,7 @@
* You should have received a copy of the GNU Affero General Public License
* along with Hebdobot. If not, see <http://www.gnu.org/licenses/>
*/
package fr.imirhil.april.hebdobot.pastebin;
package org.april.hebdobot.pastebin;
/**
* The Enum Private.

View File

@ -17,7 +17,7 @@
* You should have received a copy of the GNU Affero General Public License
* along with Hebdobot. If not, see <http://www.gnu.org/licenses/>
*/
package fr.imirhil.april.hebdobot.review;
package org.april.hebdobot.review;
import java.util.HashSet;
import java.util.List;
@ -44,7 +44,7 @@ public class CollectiveTopic extends Topic
}
/* (non-Javadoc)
* @see fr.imirhil.april.hebdobot.review.Topic#add(fr.imirhil.april.hebdobot.review.Message)
* @see org.april.hebdobot.review.Topic#add(org.april.hebdobot.review.Message)
*/
@Override
public void add(final Message message)
@ -63,7 +63,7 @@ public class CollectiveTopic extends Topic
}
/* (non-Javadoc)
* @see fr.imirhil.april.hebdobot.review.Topic#getParticipants()
* @see org.april.hebdobot.review.Topic#getParticipants()
*/
@Override
public Set<String> getParticipants()

View File

@ -17,7 +17,7 @@
* You should have received a copy of the GNU Affero General Public License
* along with Hebdobot. If not, see <http://www.gnu.org/licenses/>
*/
package fr.imirhil.april.hebdobot.review;
package org.april.hebdobot.review;
import java.util.HashMap;
import java.util.Map;
@ -44,7 +44,7 @@ public class IndividualTopic extends Topic
}
/* (non-Javadoc)
* @see fr.imirhil.april.hebdobot.review.Topic#add(fr.imirhil.april.hebdobot.review.Message)
* @see org.april.hebdobot.review.Topic#add(org.april.hebdobot.review.Message)
*/
@Override
public void add(final Message message)
@ -70,7 +70,7 @@ public class IndividualTopic extends Topic
}
/* (non-Javadoc)
* @see fr.imirhil.april.hebdobot.review.Topic#getParticipants()
* @see org.april.hebdobot.review.Topic#getParticipants()
*/
@Override
public Set<String> getParticipants()

View File

@ -17,7 +17,7 @@
* You should have received a copy of the GNU Affero General Public License
* along with Hebdobot. If not, see <http://www.gnu.org/licenses/>
*/
package fr.imirhil.april.hebdobot.review;
package org.april.hebdobot.review;
import org.joda.time.DateTime;

View File

@ -16,7 +16,7 @@
* You should have received a copy of the GNU Affero General Public License
* along with Hebdobot. If not, see <http://www.gnu.org/licenses/>
*/
package fr.imirhil.april.hebdobot.review;
package org.april.hebdobot.review;
import java.util.LinkedList;

View File

@ -17,7 +17,7 @@
* You should have received a copy of the GNU Affero General Public License
* along with Hebdobot. If not, see <http://www.gnu.org/licenses/>
*/
package fr.imirhil.april.hebdobot.review;
package org.april.hebdobot.review;
import java.util.Collection;
import java.util.HashSet;
@ -26,12 +26,11 @@ import java.util.List;
import java.util.Set;
import org.apache.commons.lang.StringUtils;
import org.april.hebdobot.Context;
import org.april.hebdobot.xml.UserAlias;
import org.joda.time.DateTime;
import org.joda.time.format.DateTimeFormat;
import fr.imirhil.april.hebdobot.Context;
import fr.imirhil.april.hebdobot.xml.UserAlias;
/**
* The Class Review.
*/

View File

@ -17,7 +17,7 @@
* You should have received a copy of the GNU Affero General Public License
* along with Hebdobot. If not, see <http://www.gnu.org/licenses/>
*/
package fr.imirhil.april.hebdobot.review;
package org.april.hebdobot.review;
import java.util.Set;

View File

@ -17,7 +17,7 @@
* You should have received a copy of the GNU Affero General Public License
* along with Hebdobot. If not, see <http://www.gnu.org/licenses/>
*/
package fr.imirhil.april.hebdobot.xml;
package org.april.hebdobot.xml;
import java.io.InputStream;
import java.util.HashMap;
@ -53,7 +53,7 @@ public class UserAlias
{
final Unmarshaller unmarshaller = JAXBContext.newInstance(Users.class).createUnmarshaller();
unmarshaller.setSchema(SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI)
.newSchema(UserAlias.class.getResource("/fr/imirhil/april/hebdobot/users.xsd")));
.newSchema(UserAlias.class.getResource("/org/april/hebdobot/users.xsd")));
for (final User user : unmarshaller.unmarshal(new StreamSource(source), Users.class).getValue().getUser())
{

View File

@ -1,6 +1,6 @@
log4j.rootLogger = warn, stdout
log4j.logger.fr.imirhil.april.hebdobot = info
log4j.logger.org.april.hebdobot = info
log4j.appender.stdout = org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout = org.apache.log4j.PatternLayout

View File

@ -3,7 +3,7 @@
xmlns:xsi="http://www.w3.org/2000/10/XMLSchema-instance" version="2.1">
<bindings schemaLocation="users.xsd">
<schemaBindings>
<package name="fr.imirhil.april.hebdobot.xml" />
<package name="org.april.hebdobot.xml" />
</schemaBindings>
</bindings>
</bindings>

View File

@ -17,7 +17,7 @@
* You should have received a copy of the GNU Affero General Public License
* along with Hebdobot. If not, see <http://www.gnu.org/licenses/>
*/
package fr.imirhil.april.hebdobot.irc;
package org.april.hebdobot.irc;
import java.io.BufferedReader;
import java.io.File;
@ -29,6 +29,7 @@ import java.util.regex.Matcher;
import java.util.regex.Pattern;
import org.apache.commons.io.FileUtils;
import org.april.hebdobot.review.Review;
import org.joda.time.DateTime;
import org.joda.time.format.ISODateTimeFormat;
import org.junit.Test;
@ -36,13 +37,11 @@ import org.junit.runner.RunWith;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import fr.imirhil.april.hebdobot.review.Review;
/**
* The Class BotTest.
*/
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations = "/fr/imirhil/april/hebdobot/conf.xml")
@ContextConfiguration(locations = "/org/april/hebdobot/conf.xml")
public class BotTest implements ReviewListener
{
/**
@ -62,7 +61,7 @@ public class BotTest implements ReviewListener
}
/* (non-Javadoc)
* @see fr.imirhil.april.hebdobot.irc.Bot#onMessage(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)
* @see org.april.hebdobot.irc.Bot#onMessage(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)
*/
@Override
public void onMessage(final String channel, final String sender, final String login, final String hostname, final String message)
@ -72,7 +71,7 @@ public class BotTest implements ReviewListener
}
/* (non-Javadoc)
* @see fr.imirhil.april.hebdobot.irc.ReviewListener#onEnd(fr.imirhil.april.hebdobot.review.Review)
* @see org.april.hebdobot.irc.ReviewListener#onEnd(org.april.hebdobot.review.Review)
*/
@Override
public void onEnd(final Review review)
@ -102,7 +101,7 @@ public class BotTest implements ReviewListener
final Hebdobot bot = new BotMock();
bot.add(this);
final InputStream is = BotTest.class.getResourceAsStream("/fr/imirhil/april/hebdobot/review.log");
final InputStream is = BotTest.class.getResourceAsStream("/org/april/hebdobot/review.log");
if (is == null)
{
return;

View File

@ -17,8 +17,10 @@
* You should have received a copy of the GNU Affero General Public License
* along with Hebdobot. If not, see <http://www.gnu.org/licenses/>
*/
package fr.imirhil.april.hebdobot.pastebin;
package org.april.hebdobot.pastebin;
import org.april.hebdobot.pastebin.Expiration;
import org.april.hebdobot.pastebin.PastebinClient;
import org.junit.Test;
/**

View File

@ -3,7 +3,7 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd">
<context:component-scan base-package="fr.imirhil.april.hebdobot" />
<context:component-scan base-package="org.april.hebdobot" />
<bean id="properties"
class="org.springframework.beans.factory.config.PropertiesFactoryBean">
@ -14,9 +14,9 @@
</property>
</bean>
<bean id="userAliases" class="fr.imirhil.april.hebdobot.xml.UserAlias">
<constructor-arg name="source" value="classpath:/fr/imirhil/april/hebdobot/users.xml" />
<bean id="userAliases" class="org.april.hebdobot.xml.UserAlias">
<constructor-arg name="source" value="classpath:/org/april/hebdobot/users.xml" />
</bean>
<bean id="bot" class="fr.imirhil.april.hebdobot.irc.BotTest.BotMock" />
<bean id="bot" class="org.april.hebdobot.irc.BotTest.BotMock" />
</beans>