[SCM] Lisaac compiler branch, master, updated. lisaac-0.12-487-g1cb33ad

Damien Bouvarel dams.bouvarel at wanadoo.fr
Sun Sep 13 09:18:25 UTC 2009


The following commit has been merged in the master branch:
commit 1cb33ad04614208f21dd093c18563d6c072d93ed
Merge: ea370a004de027f6d2313c9b85cfae890d7100fe 9881ef6df8501850e15cba6e39029e5ac98845ec
Author: Damien Bouvarel <dams.bouvarel at wanadoo.fr>
Date:   Sun Sep 13 11:14:17 2009 +0200

    Merge commit 'origin/eclipse-command-line'

diff --combined install_lisaac.li
index 5a3ecd6,f9c2a4c..cff7761
--- a/install_lisaac.li
+++ b/install_lisaac.li
@@@ -378,6 -378,24 +378,6 @@@ Section Privat
        new_text.append path_current;
        new_text.append path_next;
        update file idf comment with new_text confirmation TRUE;
 -      /*
 -      (system = system_windows).if {
 -        string_tmp.copy file;
 -      } else {
 -        string_tmp.copy "source ";
 -        string_tmp.append file;
 -      };
 -      "  Execute :`".print;
 -      string_tmp.print;
 -      "'\t".print;
 -      (ENVIRONMENT.execute_command string_tmp = 0).if {
 -        "OK.\n".print;
 -      } else {
 -        "Fail!\n\n\
 -        \  Note: You'll have to reboot or reloaded environnement   \n\
 -        \        to acknowledge the changes.                       \n".print;
 -      };
 -      */
      };
      
      //
@@@ -540,13 -558,50 +540,50 @@@
        "  Sorry, Hippoedit editor is only for Windows.".print;
      };
    );
-   
+    
    - install_eclipse <-
-   (
-     // TODO: BSBS->Damien 
-     "  Sorry, Not yet implemented.\n\
-     \  Please, read `editor/eclipse/README' file.".print;
+   ( + eclipse_dir,script:STRING;
+     + build_filename:STRING_CONSTANT;
+     + build_file:POINTER;
+     
+     " Prerequisite: you need the Eclipse SDK package installed.\n\
+     \ Give the full path of your Eclipse SDK installation :\n>".print;
+     IO.read_line;
+     eclipse_dir := IO.last_string;
+     
+     // 1. generate build script
+     script := STRING.create 100;
+     script.copy "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n";
+     script.append "<project default=\"plugin_export\" name=\"build\">\n";
+     script.append "  <target name=\"plugin_export\">\n";
+     script.append "    <pde.exportPlugins destination=\"";
+     script.append eclipse_dir;
+     script.append "\" exportSource=\"false\" exportType=\"directory\" plugins=\"org.lisaac.ldt\" useJARFormat=\"true\"/>\n";
+     script.append "  </target>\n";
+     script.append "</project>\n";
+     
+     build_filename := "editor/eclipse/export.xml";	
+     build_file := open_write build_filename;
+     write build_file with script size (script.count);
+     close build_file;
+     
+     // 2. build and export the plugin
+     string_tmp.copy "java -cp ";
+     string_tmp.append eclipse_dir;
+     string_tmp.append "/plugins/org.eclipse.equinox.launcher_*.jar org.eclipse.core.launcher.Main -application org.eclipse.ant.core.antRunner -data editor/eclipse -buildfile ";
+     string_tmp.append build_filename;
+    
+     (ENVIRONMENT.execute_command string_tmp != 0).if {
+       "\nrun `".print;  
+       string_tmp.print; // can fail because the last command process is out of memory. Copying the command by hand should work...
+       "\'\n".print;
+       
+       "\n  Sorry auto-install fail!\n Please, read `editor/eclipse/README' file.\n".print;  
+     } else {
+       "OK.\n".print;
+     };
    );
+  
    
    //
    // Install Compiler
@@@ -639,10 -694,7 +676,10 @@@ Section Publi
          \  Run `lisaac' to compile.                              ".print;
          "\n\
          \  Note: You'll have to reboot or reloaded environnement   \n\
 -        \        to acknowledge the changes.                       \n".print;
 +        \        to acknowledge the changes.                       \n\
 +        \     OR for bash users, doing a `source ~/.bashrc' should \n\
 +        \        do the job.                                       \n".print;
 +
        }
        .when 2 then {
          {

-- 
Lisaac compiler



More information about the Lisaac-commits mailing list