[Java-link-svn] SF.net SVN: java-link: [19] trunk
Status: Pre-Alpha
Brought to you by:
welterde0
From: <wel...@us...> - 2006-10-24 17:23:08
|
Revision: 19 http://svn.sourceforge.net/java-link/?rev=19&view=rev Author: welterde0 Date: 2006-10-24 10:21:13 -0700 (Tue, 24 Oct 2006) Log Message: ----------- pushed some unstable into the trunk; fixed missing jmx classes for libdb ok, this is lots of unstable code, ok? Added Paths: ----------- trunk/client/src/main/java/org/jlink/client/gui/RootFrame.java trunk/client/src/main/java/org/jlink/client/net/NetworkCore.java trunk/env_client/ trunk/env_server/ trunk/env_server/config/ trunk/env_server/config/example.xml trunk/env_server/db/ trunk/env_server/db/config.xml trunk/env_server/logging/ trunk/env_server/logging/sample.xml trunk/env_server/logs/ trunk/libdb/src/main/java/org/jlink/server/libdb/StorageManagerJMX.java trunk/libdb/src/main/java/org/jlink/server/libdb/StorageManagerJMXMBean.java trunk/libgui/ trunk/libgui/nbproject/ trunk/libgui/nbproject/mavencall.xml trunk/libgui/nbproject/private/ trunk/libgui/nbproject/private/private.properties trunk/libgui/nbproject/private/private.xml trunk/libgui/nbproject/project.properties trunk/libgui/nbproject/project.xml trunk/libgui/pom.xml trunk/libgui/src/ trunk/libgui/src/main/ trunk/libgui/src/main/java/ trunk/libgui/src/main/java/org/ trunk/libgui/src/main/java/org/jlink/ trunk/libgui/src/main/java/org/jlink/libgui/ trunk/libgui/src/main/java/org/jlink/libgui/GUIRenderer.java trunk/libgui/src/main/java/org/jlink/libgui/RootFrame.java trunk/libgui/src/main/java/org/jlink/libgui/RootPane.java trunk/libgui/src/main/java/org/jlink/libgui/Window.java trunk/libgui/src/main/java/org/jlink/libgui/WindowListener.java trunk/libgui/src/main/java/org/jlink/libgui/widgets/ trunk/libgui/src/main/resources/ trunk/libgui/src/main/resources/org/ trunk/libgui/src/main/resources/org/jlink/ trunk/libgui/src/main/resources/org/jlink/ref/ trunk/libgui/src/site/ trunk/libgui/src/site/site.xml trunk/libgui/src/test/ trunk/libgui/src/test/java/ trunk/libnet/ trunk/libnet/nbproject/ trunk/libnet/nbproject/mavencall.xml trunk/libnet/nbproject/private/ trunk/libnet/nbproject/private/private.properties trunk/libnet/nbproject/private/private.xml trunk/libnet/nbproject/project.properties trunk/libnet/nbproject/project.xml trunk/libnet/pom.xml trunk/libnet/src/ trunk/libnet/src/main/ trunk/libnet/src/main/java/ trunk/libnet/src/main/java/org/ trunk/libnet/src/main/java/org/jlink/ trunk/libnet/src/main/java/org/jlink/libnet/ trunk/libnet/src/main/java/org/jlink/libnet/hl/ trunk/libnet/src/main/java/org/jlink/libnet/hl/HLManager.java trunk/libnet/src/main/java/org/jlink/libnet/hl/HLMode.java trunk/libnet/src/main/java/org/jlink/libnet/hl/HLModeEnum.java trunk/libnet/src/main/java/org/jlink/libnet/hl/modes/ trunk/libnet/src/main/java/org/jlink/libnet/hl/modes/ftp/ trunk/libnet/src/main/java/org/jlink/libnet/ll/ trunk/libnet/src/main/java/org/jlink/libnet/ll/LLConfiguration.java trunk/libnet/src/main/java/org/jlink/libnet/ll/LLConfigurationException.java trunk/libnet/src/main/java/org/jlink/libnet/ll/LLConnector.java trunk/libnet/src/main/java/org/jlink/libnet/ll/LLEvent.java trunk/libnet/src/main/java/org/jlink/libnet/ll/LLFactory.java trunk/libnet/src/main/java/org/jlink/libnet/ll/LLProtocol.java trunk/libnet/src/main/java/org/jlink/libnet/ll/LLServerFactory.java trunk/libnet/src/main/java/org/jlink/libnet/ll/xml/ trunk/libnet/src/main/java/org/jlink/libnet/ml/ trunk/libnet/src/main/resources/ trunk/libnet/src/main/resources/org/ trunk/libnet/src/main/resources/org/jlink/ trunk/libnet/src/main/resources/org/jlink/libnet/ trunk/libnet/src/main/resources/org/jlink/libnet/ll/ trunk/libnet/src/main/resources/org/jlink/libnet/ll/xml/ trunk/libnet/src/main/resources/org/jlink/libnet/ll/xml/Translation.properties trunk/libnet/src/main/resources/org/jlink/libnet/ll/xml/Translation_de_DE.properties trunk/libnet/src/main/resources/org/jlink/libnet/ll/xml/config.properties trunk/libnet/src/site/ trunk/libnet/src/site/site.xml trunk/libnet/src/test/ trunk/libnet/src/test/java/ trunk/libserver/ trunk/libserver/catalog.xml trunk/libserver/nbproject/ trunk/libserver/nbproject/mavencall.xml trunk/libserver/nbproject/private/ trunk/libserver/nbproject/private/private.properties trunk/libserver/nbproject/private/private.xml trunk/libserver/nbproject/project.properties trunk/libserver/nbproject/project.xml trunk/libserver/pom.xml trunk/libserver/src/ trunk/libserver/src/main/ trunk/libserver/src/main/java/ trunk/libserver/src/main/java/org/ trunk/libserver/src/main/java/org/jlink/ trunk/libserver/src/main/java/org/jlink/server/ trunk/libserver/src/main/java/org/jlink/server/Server.java trunk/libserver/src/main/java/org/jlink/server/ServerController.java trunk/libserver/src/main/java/org/jlink/server/ServerDescriptor.java trunk/libserver/src/main/java/org/jlink/server/ServerException.java trunk/libserver/src/main/resources/ trunk/libserver/src/site/ trunk/libserver/src/site/site.xml trunk/libserver/src/test/ trunk/libserver/src/test/java/ trunk/libworld/ trunk/libworld/nbproject/ trunk/libworld/nbproject/mavencall.xml trunk/libworld/nbproject/private/ trunk/libworld/nbproject/private/private.properties trunk/libworld/nbproject/private/private.xml trunk/libworld/nbproject/project.properties trunk/libworld/nbproject/project.xml trunk/libworld/pom.xml trunk/libworld/src/ trunk/libworld/src/main/ trunk/libworld/src/main/java/ trunk/libworld/src/main/java/org/ trunk/libworld/src/main/java/org/jlink/ trunk/libworld/src/main/java/org/jlink/libworld/ trunk/libworld/src/main/java/org/jlink/libworld/Character.java trunk/libworld/src/main/java/org/jlink/libworld/CharacterController.java trunk/libworld/src/main/java/org/jlink/libworld/CharacterModel.java trunk/libworld/src/main/java/org/jlink/libworld/CompanyModel.java trunk/libworld/src/main/java/org/jlink/libworld/Game.java trunk/libworld/src/main/java/org/jlink/libworld/GameModel.java trunk/libworld/src/main/java/org/jlink/libworld/World.java trunk/libworld/src/main/java/org/jlink/libworld/WorldModel.java trunk/libworld/src/main/resources/ trunk/libworld/src/site/ trunk/libworld/src/site/site.xml trunk/libworld/src/test/ trunk/libworld/src/test/java/ trunk/server/src/test/java/ trunk/server/src/test/java/org/ trunk/server/src/test/java/org/jlink/ trunk/server/src/test/java/org/jlink/server/ trunk/share/src/main/java/org/jlink/logic/ trunk/share/src/main/java/org/jlink/logic/Connection.java trunk/share/src/main/java/org/jlink/logic/World.java trunk/share/src/main/java/org/jlink/logic/WorldManager.java trunk/share/src/main/java/org/jlink/logic/error/ trunk/share/src/main/java/org/jlink/logic/error/ErrorHandler.java trunk/share/src/main/java/org/jlink/logic/error/ErrorManager.java trunk/share/src/main/java/org/jlink/logic/plugin/ trunk/share/src/main/java/org/jlink/logic/plugin/PluginManager.java Added: trunk/client/src/main/java/org/jlink/client/gui/RootFrame.java =================================================================== --- trunk/client/src/main/java/org/jlink/client/gui/RootFrame.java (rev 0) +++ trunk/client/src/main/java/org/jlink/client/gui/RootFrame.java 2006-10-24 17:21:13 UTC (rev 19) @@ -0,0 +1,85 @@ +/* + * RootFrame.java + * + * Created on 5. Oktober 2006, 14:43 + * + * 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.client.gui; + +import javax.swing.JFrame; +import org.apache.commons.configuration.Configuration; + +/** + * + * @author welterde + */ +public class RootFrame { + + /** Creates a new instance of RootFrame */ + public RootFrame(Configuration conf) { + if(conf == null) + throw new NullPointerException("the configuration may not be null"); + this.conf = conf; + String title = "JLink"; + //TODO: add translation support to title + + //create new frame + this.frame = new JFrame(title); + //TODO: add desktop thing to frame + } + + + public void show(boolean fullscreen) { + //performance bypass + if(this.stat_showed) + return; + + if(fullscreen) { + //TODO: write fullscreen code + fullscreen = false; + } + if(!fullscreen) { + //TODO: read windowed size from config + this.frame.setSize(1024, 768); + this.frame.pack(); + this.frame.setVisible(true); + } + } + public void unshow() { + //performence bypass + if(!this.stat_showed) + return; + } + public void dipose() { + this.frame.dispose(); + } + + + + private JFrame frame = null; + + /** + * The global configuration. + */ + private Configuration conf = null; + + private boolean stat_showed = false; + +} Added: trunk/client/src/main/java/org/jlink/client/net/NetworkCore.java =================================================================== --- trunk/client/src/main/java/org/jlink/client/net/NetworkCore.java (rev 0) +++ trunk/client/src/main/java/org/jlink/client/net/NetworkCore.java 2006-10-24 17:21:13 UTC (rev 19) @@ -0,0 +1,36 @@ +/* + * NetworkCore.java + * + * Created on 9. September 2006, 22:49 + * + * 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.client.net; + +/** + * + * @author welterde + */ +public class NetworkCore { + + /** Creates a new instance of NetworkCore */ + public NetworkCore() { + } + +} Added: trunk/env_server/config/example.xml =================================================================== --- trunk/env_server/config/example.xml (rev 0) +++ trunk/env_server/config/example.xml 2006-10-24 17:21:13 UTC (rev 19) @@ -0,0 +1,4 @@ +<?xml version="1.0" encoding="UTF-8"?> +<root> + +</root> Added: trunk/env_server/db/config.xml =================================================================== --- trunk/env_server/db/config.xml (rev 0) +++ trunk/env_server/db/config.xml 2006-10-24 17:21:13 UTC (rev 19) @@ -0,0 +1,4 @@ +<?xml version="1.0" encoding="UTF-8" ?> +<Repository> <FileSystem class="org.apache.jackrabbit.core.fs.local.LocalFileSystem"> + <param name="path" value="${rep.home}/repository"/> + </FileSystem> <Security> <AccessManager class="org.apache.jackrabbit.core.security.SimpleAccessManager"> </AccessManager> <LoginModule class="org.apache.jackrabbit.core.security.SimpleLoginModule"> <!-- anonymous user name ('anonymous' is the default value) --> <param name="anonymousId" value="anonymous"/> </LoginModule> </Security> <Workspaces rootPath="${rep.home}/workspaces" defaultWorkspace="default"/> <Workspace name="${wsp.name}"> <FileSystem class="org.apache.jackrabbit.core.fs.local.LocalFileSystem"> <param name="path" value="${wsp.home}"/> </FileSystem> <PersistenceManager class="org.apache.jackrabbit.core.state.db.DerbyPersistenceManager"> <param name="url" value="jdbc:derby:${wsp.home}/db;create=true"/> <param name="schemaObjectPrefix" value="${wsp.name}_"/> </PersistenceManager> <SearchIndex class="org.apache.jackrabbit.core.query.lucene.SearchIndex"> <param name="path" value="${wsp.home}/index"/> <param name="useCompoundFile" value="true"/> <param name="minMergeDocs" value="100"/> <param name="volatileIdleTime" value="3"/> <param name="maxMergeDocs" value="100000"/> <param name="mergeFactor" value="10"/> <param name="maxFieldLength" value="10000"/> <param name="bufferSize" value="10"/> <param name="cacheSize" value="1000"/> <param name="forceConsistencyCheck" value="false"/> <param name="autoRepair" value="true"/> <param name="analyzer" value="org.apache.lucene.analysis.standard.StandardAnalyzer"/> <param name="queryClass" value="org.apache.jackrabbit.core.query.QueryImpl"/> <param name="idleTime" value="-1"/> <param name="respectDocumentOrder" value="true"/> </SearchIndex> </Workspace> </Repository> \ No newline at end of file Added: trunk/env_server/logging/sample.xml =================================================================== --- trunk/env_server/logging/sample.xml (rev 0) +++ trunk/env_server/logging/sample.xml 2006-10-24 17:21:13 UTC (rev 19) @@ -0,0 +1,37 @@ +<?xml version="1.0" encoding="UTF-8" ?> +<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd"> + +<log4j:configuration> + + <appender name="LIVE-I" class="org.apache.log4j.net.SocketHubAppender"> + <param name="port" value="4445"/> + <param name="Threshold" value="all"/> + </appender> + <appender name="LIVE-II" class="org.apache.log4j.ConsoleAppender"> + <param name="Threshold" value="info"/> + <layout class="org.apache.log4j.PatternLayout"> + <param name="ConversionPattern" value="%d{ISO8601} %-5p %c - %m%n"/> + </layout> + </appender> + <appender name="DEBUG-I" class="org.apache.log4j.FileAppender"> + <param name="Threshold" value="all"/> + <param name="File" value="logs/debug.log.xml"/> + <param name="Append" value="false"/> + <layout class="org.apache.log4j.xml.XMLLayout"/> + </appender> + <appender name="FILE-I" class="org.apache.log4j.DailyRollingFileAppender"> + <param name="datePattern" value="'.'yyyy-MM-dd-HH"/> + <param name="File" value="logs/server.log.xml"/> + <param name="Threshold" value="debug"/> + <layout class="org.apache.log4j.xml.XMLLayout"/> + </appender> + + <root> + <priority value ="all" /> + <appender-ref ref="LIVE-I"/> + <appender-ref ref="LIVE-II"/> + <appender-ref ref="DEBUG-I"/> + <appender-ref ref="FILE-I"/> + </root> + +</log4j:configuration> \ No newline at end of file Added: trunk/libdb/src/main/java/org/jlink/server/libdb/StorageManagerJMX.java =================================================================== --- trunk/libdb/src/main/java/org/jlink/server/libdb/StorageManagerJMX.java (rev 0) +++ trunk/libdb/src/main/java/org/jlink/server/libdb/StorageManagerJMX.java 2006-10-24 17:21:13 UTC (rev 19) @@ -0,0 +1,117 @@ +/* + * StorageManagerJMX.java + * + * Created on 9. Oktober 2006, 19:18 + * + * 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.server.libdb; +import javax.management.*; +import java.util.Arrays; + +/** + * Dynamic MBean based on StandardMBean + * Class StorageManagerJMX + * StorageManager Controller + * @author welterde + */ +public class StorageManagerJMX extends javax.management.StandardMBean implements StorageManagerJMXMBean { + + private org.jlink.server.libdb.StorageManager theRef; + + public StorageManagerJMX(org.jlink.server.libdb.StorageManager theRef) throws NotCompliantMBeanException { + super(StorageManagerJMXMBean.class); + this.theRef = theRef; + } + + /** + * Next are the methods to compute MBeanInfo. + * You shouldn't update these methods. + */ + protected String getDescription(MBeanInfo info) { + return "StorageManager Controller"; + } + + protected String getDescription(MBeanAttributeInfo info) { + String description = null; + return description; + } + + protected String getDescription(MBeanOperationInfo op, + MBeanParameterInfo param, + int sequence) { + if (op.getName().equals("destroy")) { + switch (sequence) { + default : return null; + } + } + return null; + } + + protected String getParameterName(MBeanOperationInfo op, + MBeanParameterInfo param, + int sequence) { + if (op.getName().equals("destroy")) { + switch (sequence) { + default : return null; + } + } + return null; + } + + protected String getDescription(MBeanOperationInfo info) { + String description = null; + MBeanParameterInfo[] params = info.getSignature(); + String[] signature = new String[params.length]; + for (int i = 0; i < params.length; i++) + signature[i] = params[i].getType(); + String[] methodSignature; + + methodSignature = new String[] { + }; + if (info.getName().equals("destroy") && Arrays.equals(signature, methodSignature)) { + description = "Operation exposed for management"; + } + + return description; + } + + public MBeanInfo getMBeanInfo() { + MBeanInfo mbinfo = super.getMBeanInfo(); + return new MBeanInfo(mbinfo.getClassName(), + mbinfo.getDescription(), + mbinfo.getAttributes(), + mbinfo.getConstructors(), + mbinfo.getOperations(), + getNotificationInfo()); + } + + public MBeanNotificationInfo[] getNotificationInfo() { + return new MBeanNotificationInfo[] {}; + } + + /** + * Operation exposed for management + */ + public void destroy() { + theRef.destroy(); + } +} + + Added: trunk/libdb/src/main/java/org/jlink/server/libdb/StorageManagerJMXMBean.java =================================================================== --- trunk/libdb/src/main/java/org/jlink/server/libdb/StorageManagerJMXMBean.java (rev 0) +++ trunk/libdb/src/main/java/org/jlink/server/libdb/StorageManagerJMXMBean.java 2006-10-24 17:21:13 UTC (rev 19) @@ -0,0 +1,40 @@ +/* + * StorageManagerJMXMBean.java + * + * Created on 9. Oktober 2006, 19:18 + * + * 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.server.libdb; + +/** + * Interface StorageManagerJMXMBean + * StorageManager Controller + * @author welterde + */ +public interface StorageManagerJMXMBean +{ + /** + * Operation exposed for management + */ + public void destroy(); + +} + + Added: trunk/libgui/nbproject/mavencall.xml =================================================================== --- trunk/libgui/nbproject/mavencall.xml (rev 0) +++ trunk/libgui/nbproject/mavencall.xml 2006-10-24 17:21:13 UTC (rev 19) @@ -0,0 +1,42 @@ +<project name="client" default="build" basedir=".."> + <property file="nbproject/private/private.properties"/> + <property file="nbproject/project.properties"/> + <target name="build" description="Build"> + <exec dir="${basedir}" executable="${mvn.path}"> + <arg line="package"/> + </exec> + </target> + <target name="clean" description="Clean"> + <exec dir="${basedir}" executable="${mvn.path}"> + <arg line="clean:clean"/> + </exec> + </target> + <target name="javadoc" description="Javadoc"> + <exec dir="${basedir}" executable="${mvn.path}"> + <arg line="site:site"/> + </exec> + </target> + <target name="run" description="Install Locally"> + <exec dir="${basedir}" executable="${mvn.path}"> + <arg line="install"/> + </exec> + </target> + <target name="test" description="Test Project"> + <exec dir="${basedir}" executable="${mvn.path}"> + <arg line="test"/> + </exec> + </target> + <target name="jalopy" description="Format Code"> + <exec dir="${basedir}" executable="${mvn.path}"> + <arg line="jalopy:format"/> + </exec> + </target> + <target name="refresh-project" description="Refresh Project"> + <copy file="nbproject/mavencall.xml" tofile="nbproject/mavencall.xml.bak"/> + <exec dir="${basedir}" executable="${mvn.path}"> + <arg line="netbeans-freeform:generate-netbeans-project"/> + </exec> + <delete file="nbproject.xml"/> + <move file="nbproject/mavencall.xml.bak" tofile="nbproject/mavencall.xml"/> + </target> +</project> \ No newline at end of file Added: trunk/libgui/nbproject/private/private.properties =================================================================== --- trunk/libgui/nbproject/private/private.properties (rev 0) +++ trunk/libgui/nbproject/private/private.properties 2006-10-24 17:21:13 UTC (rev 19) @@ -0,0 +1,3 @@ +# Own settings for... +#... maven +mvn.path=/opt/local/bin/mvn Added: trunk/libgui/nbproject/private/private.xml =================================================================== --- trunk/libgui/nbproject/private/private.xml (rev 0) +++ trunk/libgui/nbproject/private/private.xml 2006-10-24 17:21:13 UTC (rev 19) @@ -0,0 +1,4 @@ +<?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/1"/> +</project-private> Added: trunk/libgui/nbproject/project.properties =================================================================== --- trunk/libgui/nbproject/project.properties (rev 0) +++ trunk/libgui/nbproject/project.properties 2006-10-24 17:21:13 UTC (rev 19) @@ -0,0 +1,5 @@ +#The netbeans freeform property file +#Wed Sep 13 22:31:11 CEST 2006 +local.repository=/Users/welterde/.m2/repository +mvn.path=mvn +project.directory=/Users/welterde/Documents/dev/jlink/current_trunk/libgui Added: trunk/libgui/nbproject/project.xml =================================================================== --- trunk/libgui/nbproject/project.xml (rev 0) +++ trunk/libgui/nbproject/project.xml 2006-10-24 17:21:13 UTC (rev 19) @@ -0,0 +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 libgui</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}/commons-logging/commons-logging/1.0/commons-logging-1.0.jar:${local.repository}/groovy/groovy/1.0-jsr-06/groovy-1.0-jsr-06.jar:${local.repository}/commons-codec/commons-codec/1.3/commons-codec-1.3.jar:${local.repository}/relaxngDatatype/relaxngDatatype/20020414/relaxngDatatype-20020414.jar:${local.repository}/xerces/xercesImpl/2.2.1/xercesImpl-2.2.1.jar:${local.repository}/isorelax/isorelax/20020414/isorelax-20020414.jar:${local.repository}/javax/servlet/servlet-api/2.3/servlet-api-2.3.jar:${local.repository}/xalan/xalan/2.7.0/xalan-2.7.0.jar:${local.repository}/commons-lang/commons-lang/2.1/commons-lang-2.1.jar:${local.repository}/commons-configuration/commons-configuration/1.2/commons-configuration-1.2.jar:${local.repository}/commons-collections/commons-collections/3.1/commons-collections-3.1.jar:${local.repository}/jaxen/jaxen/1.0-FCS/jaxen-1.0-FCS.jar:${local.repository}/commons-digester/commons-digester/1.6/commons-digester-1.6.jar:${local.repository}/antlr/antlr/2.7.5/antlr-2.7.5.jar:${local.repository}/commons-beanutils/commons-beanutils/1.6/commons-beanutils-1.6.jar:${local.repository}/xml-apis/xml-apis/1.0.b2/xml-apis-1.0.b2.jar:${local.repository}/asm/asm/2.2/asm-2.2.jar:${local.repository}/commons-beanutils/commons-beanutils-core/1.7.0/commons-beanutils-core-1.7.0.jar:${local.repository}/commons-logging/commons-logging-api/1.0.4/commons-logging-api-1.0.4.jar:${local.repository}/dom4j/dom4j/1.4/dom4j-1.4.jar:${local.repository}/saxpath/saxpath/1.0-FCS/saxpath-1.0-FCS.jar:${local.repository}/msv/msv/20020414/msv-20020414.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}/commons-logging/commons-logging/1.0/commons-logging-1.0.jar:${local.repository}/groovy/groovy/1.0-jsr-06/groovy-1.0-jsr-06.jar:${local.repository}/commons-codec/commons-codec/1.3/commons-codec-1.3.jar:${local.repository}/relaxngDatatype/relaxngDatatype/20020414/relaxngDatatype-20020414.jar:${local.repository}/xerces/xercesImpl/2.2.1/xercesImpl-2.2.1.jar:${local.repository}/junit/junit/3.8.1/junit-3.8.1.jar:${local.repository}/isorelax/isorelax/20020414/isorelax-20020414.jar:${local.repository}/javax/servlet/servlet-api/2.3/servlet-api-2.3.jar:${local.repository}/xalan/xalan/2.7.0/xalan-2.7.0.jar:${local.repository}/commons-lang/commons-lang/2.1/commons-lang-2.1.jar:${local.repository}/commons-configuration/commons-configuration/1.2/commons-configuration-1.2.jar:${local.repository}/commons-collections/commons-collections/3.1/commons-collections-3.1.jar:${local.repository}/jaxen/jaxen/1.0-FCS/jaxen-1.0-FCS.jar:${local.repository}/commons-digester/commons-digester/1.6/commons-digester-1.6.jar:${local.repository}/antlr/antlr/2.7.5/antlr-2.7.5.jar:${local.repository}/commons-beanutils/commons-beanutils/1.6/commons-beanutils-1.6.jar:${local.repository}/xml-apis/xml-apis/1.0.b2/xml-apis-1.0.b2.jar:${local.repository}/asm/asm/2.2/asm-2.2.jar:${local.repository}/commons-beanutils/commons-beanutils-core/1.7.0/commons-beanutils-core-1.7.0.jar:${local.repository}/commons-logging/commons-logging-api/1.0.4/commons-logging-api-1.0.4.jar:${local.repository}/dom4j/dom4j/1.4/dom4j-1.4.jar:${local.repository}/saxpath/saxpath/1.0-FCS/saxpath-1.0-FCS.jar:${local.repository}/msv/msv/20020414/msv-20020414.jar</classpath> + <built-to>target/test-classes</built-to> + <source-level>1.5</source-level> + </compilation-unit> + </java-data> + </configuration> +</project> Added: trunk/libgui/pom.xml =================================================================== --- trunk/libgui/pom.xml (rev 0) +++ trunk/libgui/pom.xml 2006-10-24 17:21:13 UTC (rev 19) @@ -0,0 +1,123 @@ +<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/maven-v4_0_0.xsd"> +<!--//////////////////////////////////////// + /////////////General//////////////////// + /////////////////////////////////////--> + <modelVersion>4.0.0</modelVersion> + <groupId>org.jlink</groupId> + <artifactId>libgui</artifactId> + <packaging>jar</packaging> + <version>0.0.1-SNAPSHOT</version> + <name>JLink libgui</name> + <url>http://java-link.sf.net/</url> + <dependencies> + <dependency> + <groupId>groovy</groupId> + <artifactId>groovy</artifactId> + <version>1.0-jsr-06</version> + <scope>compile</scope> + </dependency> + <dependency> + <groupId>commons-configuration</groupId> + <artifactId>commons-configuration</artifactId> + <version>1.2</version> + <scope>compile</scope> + </dependency> + <dependency> + <groupId>junit</groupId> + <artifactId>junit</artifactId> + <version>3.8.1</version> + <scope>test</scope> + </dependency> + </dependencies> +<!--//////////////////////////////////////// + /////////////Reporting////////////////// + /////////////////////////////////////--> + <reporting> + <plugins> + <plugin> + <groupId>org.codehaus.mojo</groupId> + <artifactId>jxr-maven-plugin</artifactId> + </plugin> + <plugin> + <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> + <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> + </plugin> + </plugins> + </reporting> +<!--//////////////////////////////////////// + /////////////Building/////////////////// + /////////////////////////////////////--> + <build> + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-compiler-plugin</artifactId> + <configuration> + <source>1.5</source> + <target>1.5</target> + </configuration> + </plugin> + </plugins> + </build> +<!--//////////////////////////////////////// + /////////////Deploying////////////////// + /////////////////////////////////////--> + <distributionManagement> + <site> + <id>jlink-sf</id> + <url>scp://shell.sf.net/home/groups/j/ja/java-link/htdocs/maven2/libgui</url> + </site> + </distributionManagement> +<!--//////////////////////////////////////// + /////////////Include from root////////// + /////////////////////////////////////--> + <ciManagement> + <system>cruisecontrol</system> + <url>http://welterde.i2p/cruisecontrol/</url> + </ciManagement> + <issueManagement> + <system>sourceforge</system> + <url>http://sourceforge.net/tracker/?group_id=162264</url> + </issueManagement> + <developers> + <developer> + <id>welterde</id> + <email>wel...@ar...</email> + </developer> + </developers> + <scm> + <connection>scm:svn:https://svn.sourceforge.net/svnroot/javalink</connection> + <url>http://svn.sourceforge.net/viewcvs.cgi/java-link/</url> + </scm> +</project> Added: trunk/libgui/src/main/java/org/jlink/libgui/GUIRenderer.java =================================================================== --- trunk/libgui/src/main/java/org/jlink/libgui/GUIRenderer.java (rev 0) +++ trunk/libgui/src/main/java/org/jlink/libgui/GUIRenderer.java 2006-10-24 17:21:13 UTC (rev 19) @@ -0,0 +1,36 @@ +/* + * GUIRenderer.java + * + * Created on 5. Oktober 2006, 14:39 + * + * 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.libgui; + +/** + * + * @author welterde + */ +public class GUIRenderer { + + /** Creates a new instance of GUIRenderer */ + public GUIRenderer() { + } + +} Added: trunk/libgui/src/main/java/org/jlink/libgui/RootFrame.java =================================================================== --- trunk/libgui/src/main/java/org/jlink/libgui/RootFrame.java (rev 0) +++ trunk/libgui/src/main/java/org/jlink/libgui/RootFrame.java 2006-10-24 17:21:13 UTC (rev 19) @@ -0,0 +1,86 @@ +/* + * RootFrame.java + * + * Created on 14. September 2006, 19:15 + * + * 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.libgui; + +import java.awt.GraphicsEnvironment; +import java.awt.GraphicsDevice; + +import javax.swing.JFrame; +import javax.swing.JPanel; + +/** + * + * @author welterde + */ +public class RootFrame { + + /** Creates a new instance of RootFrame */ + public RootFrame(JPanel panel) { + if(panel == null) + throw new NullPointerException(); + this.comp_panel = panel; + this.comp_frame = new JFrame("JLink"); + this.comp_frame.add(this.comp_panel); + this.comp_frame.pack(); + } + + + public void show(boolean fullscreen) { + //try to do fullscreen + if(fullscreen) { + GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment(); + GraphicsDevice gs = ge.getDefaultScreenDevice(); + //check if we can switch to fullscreen + if (gs.isFullScreenSupported()) { + //TODO: write fullscreen code + fullscreen = false; + } else { + //if not, force fall over to windowed mode + fullscreen = false; + } + } + if(!fullscreen) { + this.comp_frame.setSize(1024, 768); + this.comp_frame.pack(); + this.comp_frame.setVisible(true); + } + } + public void unshow() { + this.comp_frame.setVisible(false); + } + public void dispose() { + this.comp_frame.dispose(); + } + + + + + + + + + + private JPanel comp_panel = null; + private JFrame comp_frame = null; +} Added: trunk/libgui/src/main/java/org/jlink/libgui/RootPane.java =================================================================== --- trunk/libgui/src/main/java/org/jlink/libgui/RootPane.java (rev 0) +++ trunk/libgui/src/main/java/org/jlink/libgui/RootPane.java 2006-10-24 17:21:13 UTC (rev 19) @@ -0,0 +1,67 @@ +/* + * RootPane.java + * + * Created on 13. September 2006, 21:28 + * + * 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.libgui; + +import javax.swing.JPanel; +import javax.swing.JPopupMenu; +import javax.swing.JMenuItem; + +import org.apache.commons.configuration.Configuration; +import org.apache.commons.configuration.ConversionException; + +/** + * + * @author welterde + */ +public class RootPane extends JPanel { + + /** Creates a new instance of RootPane */ + public RootPane(Configuration conf) { + //try to get an default value for X + try { + this.win_default_x = conf.getInt("win_x", 768); + } catch(ConversionException exc) { + //TODO: log it + } + //set X for panel + //try to get an default value for Y + try { + this.win_default_y = conf.getInt("win_y", 768); + } catch(ConversionException exc) { + //TODO: log it + } + + } + + + + + + //Base configuration + private int win_default_x = 200; + private int win_default_y = 200; + + + +} Added: trunk/libgui/src/main/java/org/jlink/libgui/Window.java =================================================================== --- trunk/libgui/src/main/java/org/jlink/libgui/Window.java (rev 0) +++ trunk/libgui/src/main/java/org/jlink/libgui/Window.java 2006-10-24 17:21:13 UTC (rev 19) @@ -0,0 +1,57 @@ +/* + * Window.java + * + * Created on 14. September 2006, 15:16 + * + * 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.libgui; + +import javax.swing.JInternalFrame; +import javax.swing.JPanel; +import javax.swing.JPopupMenu; + +/** + * TODO: add Popupmenu in titlebar + * TODO: add transparency + * @author welterde + */ +public abstract class Window extends JInternalFrame { + + /** + * Creates a new instance of Window + */ + public Window(String title, boolean resizable, boolean closeable, boolean maximizable, boolean iconifiable) { + super(title, resizable, closeable, maximizable, iconifiable); + this.pay_panel = this.getPanel(); + } + + + + //abstract methods + protected abstract JPanel getPanel(); + + protected void setModifiedState(boolean modified) { + //TODO: write modified code thingy + } + + + + private JPanel pay_panel = null; +} Added: trunk/libgui/src/main/java/org/jlink/libgui/WindowListener.java =================================================================== --- trunk/libgui/src/main/java/org/jlink/libgui/WindowListener.java (rev 0) +++ trunk/libgui/src/main/java/org/jlink/libgui/WindowListener.java 2006-10-24 17:21:13 UTC (rev 19) @@ -0,0 +1,41 @@ +/* + * WindowListener.java + * + * Created on 14. September 2006, 22:17 + * + * 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.libgui; + +/** + * + * @author welterde + */ +public interface WindowListener { + //modified state change + public void modified(); + public void discarded();//spelled right? + public void saved(); + + //window itself + public void maximized(); + public void minimized(); + public void resized(int x, int y); + public void moved(int abs_x, int abs_y); +} Added: trunk/libgui/src/site/site.xml =================================================================== --- trunk/libgui/src/site/site.xml (rev 0) +++ trunk/libgui/src/site/site.xml 2006-10-24 17:21:13 UTC (rev 19) @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="ISO-8859-1"?> +<project name="JLink libgui"> + <bannerRight> + <src>http://sflogo.sourceforge.net/sflogo.php?group_id=162264&type=3</src> + </bannerRight> + <body> + ${reports} + </body> +</project> Added: trunk/libnet/nbproject/mavencall.xml =================================================================== --- trunk/libnet/nbproject/mavencall.xml (rev 0) +++ trunk/libnet/nbproject/mavencall.xml 2006-10-24 17:21:13 UTC (rev 19) @@ -0,0 +1,42 @@ +<project name="client" default="build" basedir=".."> + <property file="nbproject/private/private.properties"/> + <property file="nbproject/project.properties"/> + <target name="build" description="Build"> + <exec dir="${basedir}" executable="${mvn.path}"> + <arg line="package"/> + </exec> + </target> + <target name="clean" description="Clean"> + <exec dir="${basedir}" executable="${mvn.path}"> + <arg line="clean:clean"/> + </exec> + </target> + <target name="javadoc" description="Javadoc"> + <exec dir="${basedir}" executable="${mvn.path}"> + <arg line="site:site"/> + </exec> + </target> + <target name="run" description="Install Locally"> + <exec dir="${basedir}" executable="${mvn.path}"> + <arg line="install"/> + </exec> + </target> + <target name="test" description="Test Project"> + <exec dir="${basedir}" executable="${mvn.path}"> + <arg line="test"/> + </exec> + </target> + <target name="jalopy" description="Format Code"> + <exec dir="${basedir}" executable="${mvn.path}"> + <arg line="jalopy:format"/> + </exec> + </target> + <target name="refresh-project" description="Refresh Project"> + <copy file="nbproject/mavencall.xml" tofile="nbproject/mavencall.xml.bak"/> + <exec dir="${basedir}" executable="${mvn.path}"> + <arg line="netbeans-freeform:generate-netbeans-project"/> + </exec> + <delete file="nbproject.xml"/> + <move file="nbproject/mavencall.xml.bak" tofile="nbproject/mavencall.xml"/> + </target> +</project> \ No newline at end of file Added: trunk/libnet/nbproject/private/private.properties =================================================================== --- trunk/libnet/nbproject/private/private.properties (rev 0) +++ trunk/libnet/nbproject/private/private.properties 2006-10-24 17:21:13 UTC (rev 19) @@ -0,0 +1,3 @@ +# Own settings for... +#... maven +mvn.path=/opt/local/bin/mvn Added: trunk/libnet/nbproject/private/private.xml =================================================================== --- trunk/libnet/nbproject/private/private.xml (rev 0) +++ trunk/libnet/nbproject/private/private.xml 2006-10-24 17:21:13 UTC (rev 19) @@ -0,0 +1,4 @@ +<?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/1"/> +</project-private> Added: trunk/libnet/nbproject/project.properties =================================================================== --- trunk/libnet/nbproject/project.properties (rev 0) +++ trunk/libnet/nbproject/project.properties 2006-10-24 17:21:13 UTC (rev 19) @@ -0,0 +1,2 @@ +#The netbeans freeform property file +#Sun Sep 03 13:57:42 CEST 2006 Added: trunk/libnet/nbproject/project.xml =================================================================== --- trunk/libnet/nbproject/project.xml (rev 0) +++ trunk/libnet/nbproject/project.xml 2006-10-24 17:21:13 UTC (rev 19) @@ -0,0 +1,133 @@ +<?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 libnet</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> + <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</classpath> + <built-to>target/test-classes</built-to> + <source-level>1.5</source-level> + </compilation-unit> + </java-data> + </configuration> +</project> Added: trunk/libnet/pom.xml =================================================================== --- trunk/libnet/pom.xml (rev 0) +++ trunk/libnet/pom.xml 2006-10-24 17:21:13 UTC (rev 19) @@ -0,0 +1,111 @@ +<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/maven-v4_0_0.xsd"> +<!--//////////////////////////////////////// + /////////////General//////////////////// + /////////////////////////////////////--> + <modelVersion>4.0.0</modelVersion> + <groupId>org.jlink</groupId> + <artifactId>libnet</artifactId> + <packaging>jar</packaging> + <version>0.0.1-SNAPSHOT</version> + <name>JLink libnet</name> + <url>http://java-link.sf.net/</url> + <dependencies> + <dependency> + <groupId>junit</groupId> + <artifactId>junit</artifactId> + <version>3.8.1</version> + <scope>test</scope> + </dependency> + </dependencies> +<!--//////////////////////////////////////// + /////////////Reporting////////////////// + /////////////////////////////////////--> + <reporting> + <plugins> + <plugin> + <groupId>org.codehaus.mojo</groupId> + <artifactId>jxr-maven-plugin</artifactId> + </plugin> + <plugin> + <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> + <rulesets> + <ruleset>/rulesets/basic.xml</ruleset> + <ruleset>/rulesets/braces.xml</ruleset> + <ruleset>/rulesets/codesize.xml</ruleset> + <ruleset>/rulesets/coupling.xml</ruleset> + <ruleset>... [truncated message content] |