Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Delete files deployed in myproj\myproj\sc\system\development?

    Hi Isomorphic,

    I have many JS-files (total 5 MB) in my compiled project dir, war file and deployed dir:
    Code:
    \webapps\myproj\myproj\sc\development\ISC_RealtimeMessaging.js
    \webapps\myproj\myproj\sc\system\development\ISC_Calendar.js
    \webapps\myproj\myproj\sc\system\development\ISC_Charts.js
    \webapps\myproj\myproj\sc\system\development\ISC_ClassBrowser.js
    \webapps\myproj\myproj\sc\system\development\ISC_Containers.js
    \webapps\myproj\myproj\sc\system\development\ISC_Core.js
    \webapps\myproj\myproj\sc\system\development\ISC_DataBinding.js
    \webapps\myproj\myproj\sc\system\development\ISC_DBConsole.js
    \webapps\myproj\myproj\sc\system\development\ISC_DeveloperConsole.js
    \webapps\myproj\myproj\sc\system\development\ISC_DocViewer.js
    \webapps\myproj\myproj\sc\system\development\ISC_Drawing.js
    \webapps\myproj\myproj\sc\system\development\ISC_DSBrowser.js
    \webapps\myproj\myproj\sc\system\development\ISC_EBay.js
    \webapps\myproj\myproj\sc\system\development\ISC_ExampleViewer.js
    \webapps\myproj\myproj\sc\system\development\ISC_FileBrowser.js
    \webapps\myproj\myproj\sc\system\development\ISC_FileLoader.js
    \webapps\myproj\myproj\sc\system\development\ISC_Forms.js
    \webapps\myproj\myproj\sc\system\development\ISC_Foundation.js
    \webapps\myproj\myproj\sc\system\development\ISC_Grids.js
    \webapps\myproj\myproj\sc\system\development\ISC_History.js
    \webapps\myproj\myproj\sc\system\development\ISC_Kapow.js
    \webapps\myproj\myproj\sc\system\development\ISC_PluginBridges.js
    \webapps\myproj\myproj\sc\system\development\ISC_RichTextEditor.js
    \webapps\myproj\myproj\sc\system\development\ISC_SalesForce.js
    \webapps\myproj\myproj\sc\system\development\ISC_Scheduler.js
    \webapps\myproj\myproj\sc\system\development\ISC_ServerLogViewer.js
    \webapps\myproj\myproj\sc\system\development\ISC_Solr.js
    \webapps\myproj\myproj\sc\system\development\ISC_SQLBrowser.js
    \webapps\myproj\myproj\sc\system\development\ISC_SyntaxHiliter.js
    \webapps\myproj\myproj\sc\system\development\ISC_Tools.js
    \webapps\myproj\myproj\sc\system\development\ISC_VisualBuilder.js
    \webapps\myproj\myproj\sc\system\development\ISC_Workflow.js
    I'm pretty sure that I can just delete them after compiling, prior war'ing (I found this old related SmartClient thread). I can also see a "myproj\myproj\sc\modules-debug" folder (15 MB), but I'm pretty sure I can delete that one if I'm not interested in those files.

    Can you answer the following questions under the premise that I still want to be able to use the DSConsole (if access not blocked on webserver-level):
    • Can I delete the files listed above by name with my ant script?
    • Is there some possibility to prevent their generation in the 1st place?
    • Can I delete the modules-debug directory with my ant script?
    • Can I prevent the creation of the modules-debug directory?


    Thank you & Best regards,
    Blama

    #2
    1 & 2: no, not unless you want to break the Developer Console

    3 & 4: if you do not include Debug modules, these will not be generated. If you see them around and you're not longer using Debug modules, delete them and you should see that they are not re-generated.

    Comment


      #3
      Hi Isomorphic,

      thank for the fast answer.

      Regarding 1&2: But I don't need all for DSConsole, do I?

      Regarding 3&4: You are referring to inherit-tags in .gwt.xml, correct? For me, even for the standard BuiltInDS sample's file BuiltInDS.gwt.xml, the debug files are generated.

      Code:
      <?xml version="1.0" encoding="UTF-8"?>
      <!DOCTYPE module PUBLIC "-//Google Inc.//DTD Google Web Toolkit 2.5.1//EN"
         "http://google-web-toolkit.googlecode.com/svn/tags/2.5.1/distro-source/core/src/gwt-module.dtd">
      <module rename-to="builtinds">
          <inherits name='com.google.gwt.user.User'/>
          <inherits name="com.smartgwt.tools.SmartGwtTools"/>
          <inherits name="com.smartgwtee.tools.Tools"/>
          <inherits name="com.smartgwtee.SmartGwtEE"/>
          <entry-point class='com.smartgwt.sample.client.BuiltInDS'/>
      </module>
      Best regards,
      Blama

      Comment


        #4
        1&2: we're not sure why you keep saying DSConsole. These files are for the Developer Console. No, you don't need them all for basic functions of the Developer Console to work. We don't currently document, or plan to document, precisely which files are needed for what functions, as that changes rapidly over time and it would be misplaced effort to maintain such docs (trivial gains in deployment size are not worth it).

        3&4: yes. Please try with a clean project.

        Comment


          #5
          Hi Isomorphic,

          sorry, I meant Developer Console all the time.

          What do you mean by clean project?
          My app's gwt.xml looks like this (many comments included for currently disabled SuperDev mode and currently disabled less permutations):

          Code:
          <?xml version="1.0" encoding="UTF-8"?>
          <!DOCTYPE module PUBLIC "-//Google Inc.//DTD Google Web Toolkit 2.5.1//EN" 
              "http://google-web-toolkit.googlecode.com/svn/tags/2.5.1/distro-source/core/src/gwt-module.dtd">
          <module rename-to="lms">
          	<source path="client" />
          	<source path="shared" />
          	<inherits name='com.google.gwt.user.User' />
          	<inherits name="com.smartgwt.tools.SmartGwtTools" />
          	<inherits name="com.smartgwtee.tools.Tools" />
          <!--
          -->	
          	<!-- Changed for SuperDev Mode, 
          	http://forums.smartclient.com/showthread.php?t=20246
          	http://forums.smartclient.com/showthread.php?t=4395
          	http://forums.smartclient.com/showthread.php?t=24791&page=2
          	Old:
          	<inherits name="com.smartgwtee.SmartGwtEE" />
          	-->
          	<inherits name="com.smartgwt.SmartGwtNoScript" />
          <!--  <inherits name="com.smartclient.theme.enterprise.EnterpriseResources" /> --> 
          	
          	<!-- http://code.google.com/p/google-web-toolkit/source/detail?spec=svn10204&r=10204 -->
          	<set-configuration-property name="document.compatMode" value="CSS1Compat" />
          	<set-configuration-property name="document.compatMode.severity" value="ERROR" />
          
          <!-- Different languages
          -->
          	<extend-property name="locale" values="de" />
          <!-- Different user agents
          	<set-property name="user.agent" value="gecko1_8" />
          	<extend-property name="user.agent" values="safari" />
            <extend-property name="user.agent" values="ie9" />
          -->
          	<entry-point class='com.lmscompany.lms.client.Lms' />
          	
          	<!-- Super Dev Mode:
          	http://stackoverflow.com/questions/11356714/getting-started-with-the-superdevmode
          	-->
          	<add-linker name="xsiframe" />
          	<set-configuration-property name="devModeRedirectEnabled" value="true" />
          	<!-- Super Dev Mode: enable source maps -->
          	<set-property name="compiler.useSourceMaps" value="true" />
          </module>
          I called the clean task and also deleted by hand everything that was generated, especially \war\lms (lms is my project name).

          For BuiltInDS, the folder samples\built-in-ds\war\builtinds does not even exist in the download, so it must be generated during compile.

          Best regards,
          Blama
          Last edited by Blama; 20 Aug 2014, 13:24.

          Comment


            #6
            We'll check on whether Debug modules are copied unconditionally, but yes, if you are trying to trim your deployment for some reason, you can delete these files by hand.

            Comment

            Working...
            X