• Join/Login
  • Business Software
  • Open Source Software
  • For Vendors
  • Blog
  • About
  • More
    • Articles
    • Create
    • SourceForge Podcast
    • Site Documentation
    • Subscribe to our Newsletter
    • Support Request
SourceForge logo
For Vendors Help Create Join Login
SourceForge logo
Business Software
Open Source Software
SourceForge Podcast
Resources
  • Articles
  • Case Studies
  • Blog
Menu
  • Help
  • Create
  • Join
  • Login
  • Home
  • Browse
  • JLink Game
  • Mailing Lists

[Java-link-svn] SF.net SVN: java-link: [7] trunk

Status: Pre-Alpha
Brought to you by: welterde0
  • Summary
  • Files
  • Reviews
  • Support
  • Mailing Lists
  • Browse SVN
Menu ▾ ▴
  • java-link-svn

[Java-link-svn] SF.net SVN: java-link: [7] trunk

[Java-link-svn] SF.net SVN: java-link: [7] trunk
From: <wel...@us...> - 2006-05-14 19:24:20
Revision: 7
Author:   welterde0
Date:     2006-05-14 12:23:51 -0700 (Sun, 14 May 2006)
ViewCVS:  http://svn.sourceforge.net/java-link/?rev=7&view=rev

Log Message:
-----------
buildsystem update from ant to maven2: step2
updated some ll net things

Modified Paths:
--------------
    trunk/client/pom.xml
    trunk/server/pom.xml
    trunk/share/nbproject/project.xml
    trunk/share/pom.xml
    trunk/share/src/main/java/org/jlink/net/ll/LLEvent.java
    trunk/templates/maven2/pom.xml

Added Paths:
-----------
    trunk/share/src/main/java/org/jlink/net/ll/LLConfiguration.java
    trunk/share/src/main/java/org/jlink/net/ll/LLConfigurationException.java
    trunk/share/src/main/java/org/jlink/net/ll/LLFactory.java
    trunk/share/src/main/java/org/jlink/net/ll/LLServerConfiguration.java
    trunk/share/src/main/java/org/jlink/net/ll/LLServerConfigurationException.java
    trunk/share/src/main/java/org/jlink/net/ll/LLServerFactory.java

Removed Paths:
-------------
    trunk/lib/
    trunk/share/src/main/java/org/jlink/net/ll/LLNetworkInterface.java
Modified: trunk/client/pom.xml
===================================================================
--- trunk/client/pom.xml	2006-05-13 20:41:47 UTC (rev 6)
+++ trunk/client/pom.xml	2006-05-14 19:23:51 UTC (rev 7)
@@ -37,6 +37,16 @@
 	    <version>1.0</version>
 	</dependency>
 	<dependency>
+	    <groupId>saxpath</groupId>
+	    <artifactId>saxpath</artifactId>
+	    <version>1.0-FCS</version>
+	</dependency>
+	<dependency>
+	    <groupId>jaxen</groupId>
+	    <artifactId>jaxen</artifactId>
+	    <version>1.0-FCS</version>
+	</dependency>
+	<dependency>
 	    <groupId>org.jvnet.swing-layout</groupId>
 	    <artifactId>core</artifactId>
 	    <version>1.0</version>
@@ -59,6 +69,22 @@
 		<groupId>org.apache.maven.plugins</groupId>
 		<artifactId>maven-pmd-plugin</artifactId>
 		<configuration>
+		    <rulesets>
+			<ruleset>/rulesets/basic.xml</ruleset>
+			<ruleset>/rulesets/codesize.xml</ruleset>
+			<ruleset>/rulesets/coupling.xml</ruleset>
+			<ruleset>/rulesets/design.xml</ruleset>-
+			<ruleset>/rulesets/finalizers.xml</ruleset>
+			<ruleset>/rulesets/imports.xml</ruleset>
+			<ruleset>/rulesets/javabeans.xml</ruleset>
+			<ruleset>/rulesets/logging-java.xml</ruleset>
+			<ruleset>/rulesets/naming.xml</ruleset>
+			<ruleset>/rulesets/optimizations.xml</ruleset>
+			<ruleset>/rulesets/strictexception.xml</ruleset>
+			<ruleset>/rulesets/strings.xml</ruleset>
+			<ruleset>/rulesets/sunsecure.xml</ruleset>
+			<ruleset>/rulesets/unusedcode.xml</ruleset>
+		    </rulesets>
 		    <linkXref>true</linkXref>
 		    <sourceEncoding>utf-8</sourceEncoding>
 		    <minimumTokens>100</minimumTokens>

Modified: trunk/server/pom.xml
===================================================================
--- trunk/server/pom.xml	2006-05-13 20:41:47 UTC (rev 6)
+++ trunk/server/pom.xml	2006-05-14 19:23:51 UTC (rev 7)
@@ -51,6 +51,23 @@
 		<groupId>org.apache.maven.plugins</groupId>
 		<artifactId>maven-pmd-plugin</artifactId>
 		<configuration>
+		    <rulesets>
+			<ruleset>/rulesets/basic.xml</ruleset>
+			<ruleset>/rulesets/braces.xml</ruleset>
+			<ruleset>/rulesets/codesize.xml</ruleset>
+			<ruleset>/rulesets/coupling.xml</ruleset>
+			<ruleset>/rulesets/design.xml</ruleset>
+			<ruleset>/rulesets/finalizers.xml</ruleset>
+			<ruleset>/rulesets/imports.xml</ruleset>
+			<ruleset>/rulesets/javabeans.xml</ruleset>
+			<ruleset>/rulesets/logging-java.xml</ruleset>
+			<ruleset>/rulesets/naming.xml</ruleset>
+			<ruleset>/rulesets/optimizations.xml</ruleset>
+			<ruleset>/rulesets/strictexception.xml</ruleset>
+			<ruleset>/rulesets/strings.xml</ruleset>
+			<ruleset>/rulesets/sunsecure.xml</ruleset>
+			<ruleset>/rulesets/unusedcode.xml</ruleset>
+		    </rulesets>
 		    <linkXref>true</linkXref>
 		    <sourceEncoding>utf-8</sourceEncoding>
 		    <minimumTokens>100</minimumTokens>

Modified: trunk/share/nbproject/project.xml
===================================================================
--- trunk/share/nbproject/project.xml	2006-05-13 20:41:47 UTC (rev 6)
+++ trunk/share/nbproject/project.xml	2006-05-14 19:23:51 UTC (rev 7)
@@ -1,121 +1,134 @@
+<?xml version="1.0" encoding="UTF-8"?>
 <project xmlns="http://www.netbeans.org/ns/project/1">
-  <type>org.netbeans.modules.ant.freeform</type>
-  <configuration>
-    <general-data xmlns="http://www.netbeans.org/ns/freeform-project/1">
-      <name>JLink Share</name>
-      <properties>
-        <property name="ant.script">nbproject/mavencall.xml</property>
-        <property-file>nbproject/project.properties</property-file>
-      </properties>
-      <folders>
-        <source-folder>
-          <label>src/main/java</label>
-          <type>java</type>
-          <location>src/main/java</location>
-        </source-folder>
-        <source-folder>
-          <label>src/test/java</label>
-          <type>java</type>
-          <location>src/test/java</location>
-        </source-folder>
-      </folders>
-      <ide-actions>
-        <action name="build">
-          <script>${ant.script}</script>
-          <target>build</target>
-        </action>
-        <action name="clean">
-          <script>${ant.script}</script>
-          <target>clean</target>
-        </action>
-        <action name="rebuild">
-          <script>${ant.script}</script>
-          <target>clean</target>
-          <target>build</target>
-        </action>
-        <action name="javadoc">
-          <script>${ant.script}</script>
-          <target>javadoc</target>
-        </action>
-        <action name="run">
-          <script>${ant.script}</script>
-          <target>run</target>
-        </action>
-        <action name="test">
-          <script>${ant.script}</script>
-          <target>test</target>
-        </action>
-      </ide-actions>
-      <view>
-        <items>
-          <source-file>
-            <label>pom</label>
-            <location>pom.xml</location>
-          </source-file>
-          <source-file>
-            <label>mavencall</label>
-            <location>nbproject/mavencall.xml</location>
-          </source-file>
-          <source-folder style="packages">
-            <label>src/main/java</label>
-            <location>src/main/java</location>
-          </source-folder>
-          <source-folder style="packages">
-            <label>src/test/java</label>
-            <location>src/test/java</location>
-          </source-folder>
-          <source-folder style="tree">
-            <label>src/main/resources</label>
-            <location>src/main/resources</location>
-          </source-folder>
-          <source-folder style="tree">
-            <label>src/test/resources</label>
-            <location>src/test/resources</location>
-          </source-folder>
-          <source-folder style="tree">
-            <label>src/site</label>
-            <location>src/site</location>
-          </source-folder>
-          <source-folder style="tree">
-            <label>target</label>
-            <location>target</location>
-          </source-folder>
-        </items>
-        <context-menu>
-          <action>
-            <script>${ant.script}</script>
-            <label>Refresh Project</label>
-            <target>refresh-project</target>
-          </action>
-          <ide-action name="build"/>
-          <ide-action name="clean"/>
-          <ide-action name="rebuild"/>
-          <ide-action name="javadoc"/>
-          <ide-action name="run"/>
-          <ide-action name="test"/>
-          <action>
-            <script>${ant.script}</script>
-            <label>Format Code</label>
-            <target>jalopy</target>
-          </action>
-        </context-menu>
-      </view>
-      <subprojects/>
-    </general-data>
-    <java-data xmlns="http://www.netbeans.org/ns/freeform-project-java/2">
-      <compilation-unit>
-        <package-root>src/main/java</package-root>
-        <classpath mode="compile">${local.repository}/log4j/log4j/1.2.13/log4j-1.2.13.jar</classpath>
-        <built-to>target/classes</built-to>
-        <source-level>1.4</source-level>
-      </compilation-unit>
-      <compilation-unit>
-        <package-root>src/test/java</package-root>
-        <unit-tests/>
-        <classpath mode="compile">target/classes:${local.repository}/junit/junit/3.8.1/junit-3.8.1.jar:${local.repository}/log4j/log4j/1.2.13/log4j-1.2.13.jar</classpath>
-        <built-to>target/test-classes</built-to>
-        <source-level>1.4</source-level>
-      </compilation-unit>
-    </java-data>
-  </configuration>
-</project>
\ No newline at end of file
+    <type>org.netbeans.modules.ant.freeform</type>
+    <configuration>
+        <general-data xmlns="http://www.netbeans.org/ns/freeform-project/1">
+            <name>JLink Share</name>
+            <properties>
+                <property name="ant.script">nbproject/mavencall.xml</property>
+                <property-file>nbproject/project.properties</property-file>
+            </properties>
+            <folders>
+                <source-folder>
+                    <label>src/main/java</label>
+                    <type>java</type>
+                    <location>src/main/java</location>
+                </source-folder>
+                <source-folder>
+                    <label>src/test/java</label>
+                    <type>java</type>
+                    <location>src/test/java</location>
+                </source-folder>
+            </folders>
+            <ide-actions>
+                <action name="build">
+                    <script>${ant.script}</script>
+                    <target>build</target>
+                </action>
+                <action name="clean">
+                    <script>${ant.script}</script>
+                    <target>clean</target>
+                </action>
+                <action name="rebuild">
+                    <script>${ant.script}</script>
+                    <target>clean</target>
+                    <target>build</target>
+                </action>
+                <action name="javadoc">
+                    <script>${ant.script}</script>
+                    <target>javadoc</target>
+                </action>
+                <action name="run">
+                    <script>${ant.script}</script>
+                    <target>run</target>
+                </action>
+                <action name="test">
+                    <script>${ant.script}</script>
+                    <target>test</target>
+                </action>
+            </ide-actions>
+            <export>
+                <type>folder</type>
+                <location>target/classes</location>
+                <script>${ant.script}</script>
+                <build-target>build</build-target>
+            </export>
+            <export>
+                <type>folder</type>
+                <location>target/test-classes</location>
+                <script>${ant.script}</script>
+                <build-target>build</build-target>
+            </export>
+            <view>
+                <items>
+                    <source-folder style="packages">
+                        <label>src/main/java</label>
+                        <location>src/main/java</location>
+                    </source-folder>
+                    <source-folder style="packages">
+                        <label>src/test/java</label>
+                        <location>src/test/java</location>
+                    </source-folder>
+                    <source-file>
+                        <label>pom</label>
+                        <location>pom.xml</location>
+                    </source-file>
+                    <source-file>
+                        <label>mavencall</label>
+                        <location>nbproject/mavencall.xml</location>
+                    </source-file>
+                    <source-folder style="tree">
+                        <label>src/main/resources</label>
+                        <location>src/main/resources</location>
+                    </source-folder>
+                    <source-folder style="tree">
+                        <label>src/test/resources</label>
+                        <location>src/test/resources</location>
+                    </source-folder>
+                    <source-folder style="tree">
+                        <label>src/site</label>
+                        <location>src/site</location>
+                    </source-folder>
+                    <source-folder style="tree">
+                        <label>target</label>
+                        <location>target</location>
+                    </source-folder>
+                </items>
+                <context-menu>
+                    <action>
+                        <script>${ant.script}</script>
+                        <label>Refresh Project</label>
+                        <target>refresh-project</target>
+                    </action>
+                    <ide-action name="build"/>
+                    <ide-action name="clean"/>
+                    <ide-action name="rebuild"/>
+                    <ide-action name="javadoc"/>
+                    <ide-action name="run"/>
+                    <ide-action name="test"/>
+                    <action>
+                        <script>${ant.script}</script>
+                        <label>Format Code</label>
+                        <target>jalopy</target>
+                    </action>
+                </context-menu>
+            </view>
+            <subprojects/>
+        </general-data>
+        <java-data xmlns="http://www.netbeans.org/ns/freeform-project-java/2">
+            <compilation-unit>
+                <package-root>src/main/java</package-root>
+                <classpath mode="compile">${local.repository}/log4j/log4j/1.2.13/log4j-1.2.13.jar</classpath>
+                <built-to>target/classes</built-to>
+                <source-level>1.5</source-level>
+            </compilation-unit>
+            <compilation-unit>
+                <package-root>src/test/java</package-root>
+                <unit-tests/>
+                <classpath mode="compile">target/classes:${local.repository}/junit/junit/3.8.1/junit-3.8.1.jar:${local.repository}/log4j/log4j/1.2.13/log4j-1.2.13.jar</classpath>
+                <built-to>target/test-classes</built-to>
+                <source-level>1.5</source-level>
+            </compilation-unit>
+        </java-data>
+    </configuration>
+</project>

Modified: trunk/share/pom.xml
===================================================================
--- trunk/share/pom.xml	2006-05-13 20:41:47 UTC (rev 6)
+++ trunk/share/pom.xml	2006-05-14 19:23:51 UTC (rev 7)
@@ -45,6 +45,23 @@
 		<groupId>org.apache.maven.plugins</groupId>
 		<artifactId>maven-pmd-plugin</artifactId>
 		<configuration>
+		    <rulesets>
+			<ruleset>/rulesets/basic.xml</ruleset>
+			<ruleset>/rulesets/braces.xml</ruleset>
+			<ruleset>/rulesets/codesize.xml</ruleset>
+			<ruleset>/rulesets/coupling.xml</ruleset>
+			<ruleset>/rulesets/design.xml</ruleset>
+			<ruleset>/rulesets/finalizers.xml</ruleset>
+			<ruleset>/rulesets/imports.xml</ruleset>
+			<ruleset>/rulesets/javabeans.xml</ruleset>
+			<ruleset>/rulesets/logging-java.xml</ruleset>
+			<ruleset>/rulesets/naming.xml</ruleset>
+			<ruleset>/rulesets/optimizations.xml</ruleset>
+			<ruleset>/rulesets/strictexception.xml</ruleset>
+			<ruleset>/rulesets/strings.xml</ruleset>
+			<ruleset>/rulesets/sunsecure.xml</ruleset>
+			<ruleset>/rulesets/unusedcode.xml</ruleset>
+		    </rulesets>
 		    <linkXref>true</linkXref>
 		    <sourceEncoding>utf-8</sourceEncoding>
 		    <minimumTokens>100</minimumTokens>

Added: trunk/share/src/main/java/org/jlink/net/ll/LLConfiguration.java
===================================================================
--- trunk/share/src/main/java/org/jlink/net/ll/LLConfiguration.java	                        (rev 0)
+++ trunk/share/src/main/java/org/jlink/net/ll/LLConfiguration.java	2006-05-14 19:23:51 UTC (rev 7)
@@ -0,0 +1,40 @@
+/*
+ * LLConfiguration.java
+ *
+ * Created on 14. Mai 2006, 15:52
+ *
+ * JLink: An Introversion Uplink Clone with multiplayer support.
+ * Copyright (C) 2006 Tassilo Schweyer
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
+ */
+
+package org.jlink.net.ll;
+
+import java.util.Locale;
+
+/**
+ *
+ * @author tassilo
+ */
+public interface LLConfiguration {
+    public String[] getNames();
+    public String getDefault(int id);
+    public String getValue(int id);
+    public String getDescription(int id, Locale l);
+    public String getDescription(int id);
+    
+    public void setValue(int id, String val);
+}

Added: trunk/share/src/main/java/org/jlink/net/ll/LLConfigurationException.java
===================================================================
--- trunk/share/src/main/java/org/jlink/net/ll/LLConfigurationException.java	                        (rev 0)
+++ trunk/share/src/main/java/org/jlink/net/ll/LLConfigurationException.java	2006-05-14 19:23:51 UTC (rev 7)
@@ -0,0 +1,46 @@
+/*
+ * LLConfigurationException.java
+ *
+ * Created on 14. Mai 2006, 16:04
+ *
+ * JLink: An Introversion Uplink Clone with multiplayer support.
+ * Copyright (C) 2006 Tassilo Schweyer
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
+ */
+
+package org.jlink.net.ll;
+
+/**
+ *
+ * @author tassilo
+ */
+public class LLConfigurationException extends java.lang.Exception {
+    
+    /**
+     * Creates a new instance of <code>LLConfigurationException</code> without detail message.
+     */
+    public LLConfigurationException() {
+    }
+    
+    
+    /**
+     * Constructs an instance of <code>LLConfigurationException</code> with the specified detail message.
+     * @param msg the detail message.
+     */
+    public LLConfigurationException(String msg) {
+        super(msg);
+    }
+}

Modified: trunk/share/src/main/java/org/jlink/net/ll/LLEvent.java
===================================================================
--- trunk/share/src/main/java/org/jlink/net/ll/LLEvent.java	2006-05-13 20:41:47 UTC (rev 6)
+++ trunk/share/src/main/java/org/jlink/net/ll/LLEvent.java	2006-05-14 19:23:51 UTC (rev 7)
@@ -23,17 +23,83 @@
 
 package org.jlink.net.ll;
 
+import java.util.Map;
+import java.util.HashMap;
+
 /**
  *
  * @author tassilo
  */
 public class LLEvent {
     
+    
+    
     /** Creates a new instance of LLEvent */
     public LLEvent() {
+        super();
+        reset();
     }
     
+    //infos
+    public int getMsgClass() {
+        return this.msg_class;
+    }
+    public void setMsgClass(int c) {
+        this.msg_class = c;
+    }
+    public long getMsgID() {
+        return this.msg_id;
+    }
+    public void setMsgID(long id) {
+        this.msg_id = id;
+    }
+    public long getMsgReply() {
+        return this.msg_reply;
+    }
+    public void setMsgReply(long reply) {
+        this.msg_reply = reply;
+    }
     
+    //Payload
+    public int getInt() {
+        return this.pay_int;
+    }
+    public void setInt(int val) {
+        this.pay_int = val;
+    }
+    public Map getMap() {
+        if(this.pay_map == null)
+            this.pay_map = new HashMap<String, Object>();
+        return this.pay_map;
+    }
+    public void setMap(Map m) {
+        this.pay_map = m;
+    }
     
-    private byte msg_class = 0;
+    //System
+    public void reset() {
+        this.msg_class = -1;
+        this.msg_id = -1;
+        this.msg_reply = -1;
+        if(this.pay_map != null) {
+            this.pay_map.clear();
+        }
+        this.pay_int = -1;
+    }
+    public boolean validate() {
+        if(msg_class == -1)
+            return false;
+        if(msg_id == -1)
+            return false;
+        return true;
+    }
+    
+    //infos
+    private int  msg_class = -1;
+    private long msg_id    = -1;
+    private long msg_reply = -1;
+    
+    //Payload
+    private Map<String, Object> pay_map = null;
+    private int pay_int = -1;
 }

Added: trunk/share/src/main/java/org/jlink/net/ll/LLFactory.java
===================================================================
--- trunk/share/src/main/java/org/jlink/net/ll/LLFactory.java	                        (rev 0)
+++ trunk/share/src/main/java/org/jlink/net/ll/LLFactory.java	2006-05-14 19:23:51 UTC (rev 7)
@@ -0,0 +1,36 @@
+/*
+ * LLFactory.java
+ *
+ * Created on 14. Mai 2006, 15:50
+ *
+ * JLink: An Introversion Uplink Clone with multiplayer support.
+ * Copyright (C) 2006 Tassilo Schweyer
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
+ */
+
+package org.jlink.net.ll;
+
+/**
+ *
+ * @author tassilo
+ */
+public interface LLFactory {
+    public LLConfiguration getConfig();
+    public void setConfig(LLConfiguration conf) throws LLConfigurationException;
+    public void resetConfig();
+    
+    public LLConnector create() throws LLConnectionException, LLConfigurationException;
+}

Deleted: trunk/share/src/main/java/org/jlink/net/ll/LLNetworkInterface.java
===================================================================
--- trunk/share/src/main/java/org/jlink/net/ll/LLNetworkInterface.java	2006-05-13 20:41:47 UTC (rev 6)
+++ trunk/share/src/main/java/org/jlink/net/ll/LLNetworkInterface.java	2006-05-14 19:23:51 UTC (rev 7)
@@ -1,32 +0,0 @@
-/*
- * LLNetworkInterface.java
- *
- * Created on 21. März 2006, 21:55
- *
- * JLink: An Introversion Uplink Clone with multiplayer support.
- * Copyright (C) 2006 Tassilo Schweyer
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License
- * as published by the Free Software Foundation; either version 2
- * of the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
- */
-
-package org.jlink.net.ll;
-
-/**
- *
- * @author tassilo
- */
-public interface LLNetworkInterface {
-    
-}

Added: trunk/share/src/main/java/org/jlink/net/ll/LLServerConfiguration.java
===================================================================
--- trunk/share/src/main/java/org/jlink/net/ll/LLServerConfiguration.java	                        (rev 0)
+++ trunk/share/src/main/java/org/jlink/net/ll/LLServerConfiguration.java	2006-05-14 19:23:51 UTC (rev 7)
@@ -0,0 +1,33 @@
+/*
+ * LLServerConfiguration.java
+ *
+ * Created on 14. Mai 2006, 16:09
+ *
+ * JLink: An Introversion Uplink Clone with multiplayer support.
+ * Copyright (C) 2006 Tassilo Schweyer
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
+ */
+
+package org.jlink.net.ll;
+
+/**
+ *
+ * @author tassilo
+ */
+public interface LLServerConfiguration {
+    public String get(String key);
+    public void set(String key, String val);
+}

Added: trunk/share/src/main/java/org/jlink/net/ll/LLServerConfigurationException.java
===================================================================
--- trunk/share/src/main/java/org/jlink/net/ll/LLServerConfigurationException.java	                        (rev 0)
+++ trunk/share/src/main/java/org/jlink/net/ll/LLServerConfigurationException.java	2006-05-14 19:23:51 UTC (rev 7)
@@ -0,0 +1,46 @@
+/*
+ * LLServerConfigurationException.java
+ *
+ * Created on 14. Mai 2006, 16:07
+ *
+ * JLink: An Introversion Uplink Clone with multiplayer support.
+ * Copyright (C) 2006 Tassilo Schweyer
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
+ */
+
+package org.jlink.net.ll;
+
+/**
+ *
+ * @author tassilo
+ */
+public class LLServerConfigurationException extends java.lang.Exception {
+    
+    /**
+     * Creates a new instance of <code>LLServerConfigurationException</code> without detail message.
+     */
+    public LLServerConfigurationException() {
+    }
+    
+    
+    /**
+     * Constructs an instance of <code>LLServerConfigurationException</code> with the specified detail message.
+     * @param msg the detail message.
+     */
+    public LLServerConfigurationException(String msg) {
+        super(msg);
+    }
+}

Added: trunk/share/src/main/java/org/jlink/net/ll/LLServerFactory.java
===================================================================
--- trunk/share/src/main/java/org/jlink/net/ll/LLServerFactory.java	                        (rev 0)
+++ trunk/share/src/main/java/org/jlink/net/ll/LLServerFactory.java	2006-05-14 19:23:51 UTC (rev 7)
@@ -0,0 +1,32 @@
+/*
+ * LLServerFactory.java
+ *
+ * Created on 14. Mai 2006, 16:02
+ *
+ * JLink: An Introversion Uplink Clone with multiplayer support.
+ * Copyright (C) 2006 Tassilo Schweyer
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
+ */
+
+package org.jlink.net.ll;
+
+/**
+ *
+ * @author tassilo
+ */
+public interface LLServerFactory {
+    public LLServerConnector create(LLServerConfiguration conf) throws LLConnectionException, LLServerConfigurationException;
+}

Modified: trunk/templates/maven2/pom.xml
===================================================================
--- trunk/templates/maven2/pom.xml	2006-05-13 20:41:47 UTC (rev 6)
+++ trunk/templates/maven2/pom.xml	2006-05-14 19:23:51 UTC (rev 7)
@@ -35,16 +35,29 @@
 		<groupId>org.apache.maven.plugins</groupId>
 		<artifactId>maven-javadoc-plugin</artifactId>
 	    </plugin>
-	    <plugin>
-		<groupId>org.apache.maven.plugins</groupId>
-		<artifactId>maven-pmd-plugin</artifactId>
-		<configuration>
+	    <configuration>
+		    <rulesets>
+			<ruleset>/rulesets/basic.xml</ruleset>
+			<ruleset>/rulesets/braces.xml</ruleset>
+			<ruleset>/rulesets/codesize.xml</ruleset>
+			<ruleset>/rulesets/coupling.xml</ruleset>
+			<ruleset>/rulesets/design.xml</ruleset>
+			<ruleset>/rulesets/finalizers.xml</ruleset>
+			<ruleset>/rulesets/imports.xml</ruleset>
+			<ruleset>/rulesets/javabeans.xml</ruleset>
+			<ruleset>/rulesets/logging-java.xml</ruleset>
+			<ruleset>/rulesets/naming.xml</ruleset>
+			<ruleset>/rulesets/optimizations.xml</ruleset>
+			<ruleset>/rulesets/strictexception.xml</ruleset>
+			<ruleset>/rulesets/strings.xml</ruleset>
+			<ruleset>/rulesets/sunsecure.xml</ruleset>
+			<ruleset>/rulesets/unusedcode.xml</ruleset>
+		    </rulesets>
 		    <linkXref>true</linkXref>
 		    <sourceEncoding>utf-8</sourceEncoding>
 		    <minimumTokens>100</minimumTokens>
                     <targetJdk>1.5</targetJdk>
 		</configuration>
-	    </plugin>
 	    <plugin>
 		<groupId>org.apache.maven.plugins</groupId>
 		<artifactId>maven-surefire-report-plugin</artifactId>


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




View entire thread

SourceForge
  • Create a Project
  • Open Source Software
  • Business Software
  • Top Downloaded Projects
Company
  • About
  • Team
  • SourceForge Headquarters
    1320 Columbia Street Suite 310
    San Diego, CA 92101
    +1 (858) 422-6466
Resources
  • Support
  • Site Documentation
  • Site Status
  • SourceForge Reviews
SourceForge logo
© 2025 Slashdot Media. All Rights Reserved.
Terms Privacy Opt Out Advertise
×
Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
✔
✘
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL: