Announcement

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

    Pretty formatted JS sources are missing from the smartgwt jar

    Hello,

    We have reported this one several months ago already after which they where added again as far as I remember correctly. But for a while now it seems that the 'stripped down' version is again included in the jars.

    We typically extract the contents of the smartgwt(pro).jar and use the contents of 'com/smartclient/public/sc/system/development' to learn about the framework when we encounter issues. Having the documented and pretty formatted js sources is of great value when it comes to dealing with complicated sgwt/app issues.

    Could they be added in the jar again please?

    (this seems to be the case for both 3.1 and 4.0 nightly builds)

    thanks

    #2
    I think I just found them here: com/smartclient/public/sc/modules-debug.

    What we are noticing is that several files which where available separately before are now merged into several single files - this makes it hard to check for differences with diff tools due to the cheer size of the contents of these merged files.
    For example, we had separate files for FormItem (and other Item variants) which now seem to be gone (an incorporated in another file).

    I know that this is 'internal sgwt deployment stuff' but it would be very cool to have them separately and nicely formatted again!
    Last edited by hin3x; 28 Feb 2013, 01:37.

    Comment


      #3
      Not really sure what you mean here.

      That "development" folder never contained unobfuscated source.

      FormItem.js is still a separate file, as it has been for 10 years or so..

      Comment


        #4
        Hi,

        Indeed I was not making much sense, sorry for that. Let me try again.

        When I look at an older build, back when these js files where contained in the smartgwt.jar we had for example this folder in the jar 'com/smartclient/debug/public/sc/client/widgets/form' which contained 'ButtonItem.js, FormItem.js, TextItem.js...'. This is in 'SC_SNAPSHOT-2012-02-01_v8.3d (2012-02-01)' (I opened up an old version of our app to find an example).

        When I look at more recent jars (everything is contained in the smartgwtpro.jar) I find nothing of JS sources in the '/com/smartclient/debug/' folder indeed.

        Maybe the files which where available in 'com/smartclient/debug/public/sc/client/widgets/form' are located somewhere else?

        Hope this makes things clearer.

        Comment


          #5
          There are now *Debug modules for LGPL/Pro/Power/Enterprise that load unobfuscated sources. We're not clear on why you'd use the files directly, but if you need them, just follow the declarations in the *Debug modules to find the files.

          Comment


            #6
            Nice, I'll have a look at that! We use it to read and learn about your code, there's no better documentation than the code right :-). We also run diff's on them to see what changed in between builds.
            Last edited by hin3x; 2 Mar 2013, 04:22.

            Comment

            Working...
            X