Use org.mvndaemon package

This commit is contained in:
Guillaume Nodet
2020-11-12 00:39:22 +01:00
committed by Peter Palaga
parent c8c5d08e1f
commit c83f7045d6
141 changed files with 373 additions and 374 deletions

View File

@@ -20,7 +20,7 @@
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.jboss.fuse.mvnd</groupId>
<groupId>org.mvndaemon.mvnd</groupId>
<artifactId>mvnd</artifactId>
<version>0.0.12-SNAPSHOT</version>
</parent>

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.jboss.fuse.mvnd.common;
package org.mvndaemon.mvnd.common;
import java.nio.Buffer;

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.jboss.fuse.mvnd.common;
package org.mvndaemon.mvnd.common;
import java.io.IOException;
import java.io.InputStream;

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.jboss.fuse.mvnd.common;
package org.mvndaemon.mvnd.common;
import java.nio.file.Path;
import java.nio.file.Paths;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.jboss.fuse.mvnd.common;
package org.mvndaemon.mvnd.common;
import java.io.Closeable;
import java.io.DataInputStream;

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.jboss.fuse.mvnd.common;
package org.mvndaemon.mvnd.common;
public class DaemonException extends RuntimeException {

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.jboss.fuse.mvnd.common;
package org.mvndaemon.mvnd.common;
/**
* Expiration status for daemon expiration check results.

View File

@@ -13,12 +13,12 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.jboss.fuse.mvnd.common;
package org.mvndaemon.mvnd.common;
import java.util.List;
import static org.jboss.fuse.mvnd.common.DaemonState.Busy;
import static org.jboss.fuse.mvnd.common.DaemonState.Idle;
import static org.mvndaemon.mvnd.common.DaemonState.Busy;
import static org.mvndaemon.mvnd.common.DaemonState.Idle;
/**
* File origin:

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.jboss.fuse.mvnd.common;
package org.mvndaemon.mvnd.common;
import java.io.File;
import java.io.IOException;
@@ -41,8 +41,8 @@ import org.slf4j.LoggerFactory;
import sun.misc.Unsafe;
import sun.nio.ch.DirectBuffer;
import static org.jboss.fuse.mvnd.common.DaemonState.Canceled;
import static org.jboss.fuse.mvnd.common.DaemonState.Idle;
import static org.mvndaemon.mvnd.common.DaemonState.Canceled;
import static org.mvndaemon.mvnd.common.DaemonState.Idle;
/**
* Access to daemon registry files. Useful also for testing.

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.jboss.fuse.mvnd.common;
package org.mvndaemon.mvnd.common;
/**
* File origin

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.jboss.fuse.mvnd.common;
package org.mvndaemon.mvnd.common;
import java.io.Serializable;
import java.text.DateFormat;

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.jboss.fuse.mvnd.common;
package org.mvndaemon.mvnd.common;
import java.nio.file.Path;
import java.nio.file.Paths;

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.jboss.fuse.mvnd.common;
package org.mvndaemon.mvnd.common;
import java.io.File;
import java.net.MalformedURLException;
@@ -71,7 +71,7 @@ public class MavenDaemon {
}
};
Thread.currentThread().setContextClassLoader(loader);
Class<?> clazz = loader.loadClass("org.jboss.fuse.mvnd.daemon.Server");
Class<?> clazz = loader.loadClass("org.mvndaemon.mvnd.daemon.Server");
try (AutoCloseable server = (AutoCloseable) clazz.getConstructor().newInstance()) {
((Runnable) server).run();
}

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.jboss.fuse.mvnd.common;
package org.mvndaemon.mvnd.common;
import java.io.DataInputStream;
import java.io.DataOutputStream;

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.jboss.fuse.mvnd.common;
package org.mvndaemon.mvnd.common;
import java.util.Locale;

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.jboss.fuse.mvnd.common;
package org.mvndaemon.mvnd.common;
import java.io.BufferedReader;
import java.io.IOException;

View File

@@ -13,11 +13,11 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.jboss.fuse.mvnd.common.logging;
package org.mvndaemon.mvnd.common.logging;
import java.util.List;
import java.util.function.Consumer;
import org.jboss.fuse.mvnd.common.Message;
import org.mvndaemon.mvnd.common.Message;
/**
* A sink for various kinds of events sent by the daemon.

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.jboss.fuse.mvnd.common.logging;
package org.mvndaemon.mvnd.common.logging;
import java.io.IOException;
import java.io.InterruptedIOException;
@@ -33,11 +33,6 @@ import java.util.concurrent.locks.ReentrantReadWriteLock;
import java.util.function.Consumer;
import java.util.stream.Collector;
import java.util.stream.Collectors;
import org.jboss.fuse.mvnd.common.Message;
import org.jboss.fuse.mvnd.common.Message.BuildException;
import org.jboss.fuse.mvnd.common.Message.BuildStarted;
import org.jboss.fuse.mvnd.common.Message.ProjectEvent;
import org.jboss.fuse.mvnd.common.Message.StringMessage;
import org.jline.terminal.Size;
import org.jline.terminal.Terminal;
import org.jline.terminal.TerminalBuilder;
@@ -46,6 +41,11 @@ import org.jline.utils.AttributedString;
import org.jline.utils.AttributedStringBuilder;
import org.jline.utils.AttributedStyle;
import org.jline.utils.Display;
import org.mvndaemon.mvnd.common.Message;
import org.mvndaemon.mvnd.common.Message.BuildException;
import org.mvndaemon.mvnd.common.Message.BuildStarted;
import org.mvndaemon.mvnd.common.Message.ProjectEvent;
import org.mvndaemon.mvnd.common.Message.StringMessage;
/**
* A terminal {@link ClientOutput} based on JLine.

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.jboss.fuse.mvnd.common;
package org.mvndaemon.mvnd.common;
import java.io.File;
import java.io.IOException;

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.jboss.fuse.mvnd.common;
package org.mvndaemon.mvnd.common;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.jboss.fuse.mvnd.common;
package org.mvndaemon.mvnd.common;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;