• 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: [30] branches/private_welterde0/client/src/main/java /org/jl

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: [30] branches/private_welterde0/client/src/main/java /org/jlink/client

[Java-link-svn] SF.net SVN: java-link: [30] branches/private_welterde0/client/src/main/java /org/jlink/client
From: <wel...@us...> - 2006-11-25 17:25:51
Revision: 30
          http://svn.sourceforge.net/java-link/?rev=30&view=rev
Author:   welterde0
Date:     2006-11-25 09:25:49 -0800 (Sat, 25 Nov 2006)

Log Message:
-----------
updated client codebase

Modified Paths:
--------------
    branches/private_welterde0/client/src/main/java/org/jlink/client/Core.java
    branches/private_welterde0/client/src/main/java/org/jlink/client/Main.java

Modified: branches/private_welterde0/client/src/main/java/org/jlink/client/Core.java
===================================================================
--- branches/private_welterde0/client/src/main/java/org/jlink/client/Core.java	2006-11-25 17:24:45 UTC (rev 29)
+++ branches/private_welterde0/client/src/main/java/org/jlink/client/Core.java	2006-11-25 17:25:49 UTC (rev 30)
@@ -23,14 +23,16 @@
 
 package org.jlink.client;
 
-import org.jlink.Controller;
-import org.jlink.ControllerSupport;
+//import
+//import::own
+//import::sys
+import org.apache.log4j.Logger;
 
 /**
  *
  * @author tassilo
  */
-public class Core implements Controller {
+public class Core {
     
     /** Creates a new instance of Core */
     public Core() {
@@ -90,4 +92,6 @@
     private boolean statRun  = false;
     
     private Object callStop = new Object();//lock
+    
+    private Logger log = Logger.getLogger(Core.class);
 }

Modified: branches/private_welterde0/client/src/main/java/org/jlink/client/Main.java
===================================================================
--- branches/private_welterde0/client/src/main/java/org/jlink/client/Main.java	2006-11-25 17:24:45 UTC (rev 29)
+++ branches/private_welterde0/client/src/main/java/org/jlink/client/Main.java	2006-11-25 17:25:49 UTC (rev 30)
@@ -23,21 +23,53 @@
 
 package org.jlink.client;
 
+//import
+//import::own
+//import::sys
+import org.apache.log4j.Logger;
+import java.io.File;
+
 /**
  *
  * @author tassilo
  */
 public class Main {
     
-    /** Creates a new instance of Main */
-    public Main() {
+    public static void main(String[] args) {
+        //set the application dir to the local directory
+        File appdir = new File(".");
+        //now check if there is an argument
+        if(args.length > 0) {
+            //ok, that means he wants to specify that manually
+            appdir = new File(args[0]);
+        }
+        
+        //create an Main object
+        Main main = new Main();
+        
+        //init Main
+        main.init(appdir);
+        
+        //run Main
+        main.run();
     }
     
-    /**
-     * @param args the command line arguments
-     */
-    public static void main(String[] args) {
-        // TODO code application logic here
+    
+    
+    public void init(File appdir) {
+        //that could be an internal error
+        assert appdir != null;
+        //this is an user error
+        if(!appdir.exists()) {
+            
+        }
     }
     
+    
+    public void run() {
+        
+    }
+    
+    
+    
 }


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: