How can I display in my ExtJS web-app the sencha app build timestamp

James Nurse

I am currently building my sencha application using sencha app build inside of gradle.

When the build occurs I want to set information such as the timestamp of the build so that it can be referenced and outputted in the built web application. I presumed that sencha cmd would store some details about the state of the build however can not find where to reference that information in any documentation.

If build information is not saved by Sencha Cmd, I presume that this information should be passed in from the Gradle build process?

Thank you for any help.

James

Gabriel Kohen

Have a look at the deeper dive into Sencha cmd here In your build.xml add an -after-page task to append it to the generated javascript file Try the following which will put the timestamp string and then you can use it:

<target name="-after-page">
    <tstamp>
        <format property="APP_TIMESTAMP" pattern="MM/dd/yyyy hh:mm aa"
    </tstamp>

    <!--
    The build.classes.file property holds the full path to the "all-classes.js"
    file so we use that variable rather than hard-code the name.
    -->
    <move file="${build.classes.file}" tofile="${build.classes.file}.tmp"/>

    <concat destfile="${build.classes.file}">
        <header filtering="no" trimleading="yes">
            var applicationTimestamp = "${THISYEAR}";
        </header>
        <fileset file="${build.classes.file}.tmp"/>
    </concat>

    <delete file="${build.classes.file}.tmp" />
</target>

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

sencha extjs 5.0 app not working in production build

From Dev

How can I configure the sencha app build command to use a custom named app folder?

From Dev

How can I change the app display name build with Flutter?

From Dev

How do I build a sencha app to target production in a specific folder?

From Dev

Integrating extjs 5 app build with sencha cmd and WebAPI in Visual Studio

From Dev

How can I host my API and web app on the same domain?

From Java

How can I detect if my Flutter app is running in the web?

From Dev

How can I decrease zoom level in my web app?

From Dev

How can I disable Web Inspector for my BlackBerry App?

From Dev

How can I retrieve a list of changes for my Java web app?

From Dev

How do I build in images to my app

From Dev

ExtJS 6 - Unable to create Native app using command 'sencha app build native'

From Dev

Build app with ExtJS and Spring

From Dev

how can i override the text of datepicker's button in extjs(sencha)?

From Dev

How can I code my web app so that it knows what web server it's on?

From Dev

how can I run my android app?

From Dev

how I can choose name of my app

From Dev

How can I access to my app with WildFly

From Dev

How can I hash the password in my app

From Dev

Can I Build my app within a week with Supersonic UI ( AppGyver )

From Dev

My R in library is red but I can build and run app normally

From Java

How can I determine if my React Native app is a debug or release build from JavaScript code?

From Dev

How come I can install an app store distribution build directly on my device?

From Dev

How can I check the build command for my JavafX app in IntelliJ IDEA

From Dev

How to build web interface for my Swift App/Firebase

From Dev

How can I display the user's live wallpaper as background in my app?

From Dev

How can I join data like this in SQL Server, then display in my app?

From Dev

How can I join data like this in SQL Server, then display in my app?

From Dev

How can I force the iPhone X to display my app with black bars?

Related Related

  1. 1

    sencha extjs 5.0 app not working in production build

  2. 2

    How can I configure the sencha app build command to use a custom named app folder?

  3. 3

    How can I change the app display name build with Flutter?

  4. 4

    How do I build a sencha app to target production in a specific folder?

  5. 5

    Integrating extjs 5 app build with sencha cmd and WebAPI in Visual Studio

  6. 6

    How can I host my API and web app on the same domain?

  7. 7

    How can I detect if my Flutter app is running in the web?

  8. 8

    How can I decrease zoom level in my web app?

  9. 9

    How can I disable Web Inspector for my BlackBerry App?

  10. 10

    How can I retrieve a list of changes for my Java web app?

  11. 11

    How do I build in images to my app

  12. 12

    ExtJS 6 - Unable to create Native app using command 'sencha app build native'

  13. 13

    Build app with ExtJS and Spring

  14. 14

    how can i override the text of datepicker's button in extjs(sencha)?

  15. 15

    How can I code my web app so that it knows what web server it's on?

  16. 16

    how can I run my android app?

  17. 17

    how I can choose name of my app

  18. 18

    How can I access to my app with WildFly

  19. 19

    How can I hash the password in my app

  20. 20

    Can I Build my app within a week with Supersonic UI ( AppGyver )

  21. 21

    My R in library is red but I can build and run app normally

  22. 22

    How can I determine if my React Native app is a debug or release build from JavaScript code?

  23. 23

    How come I can install an app store distribution build directly on my device?

  24. 24

    How can I check the build command for my JavafX app in IntelliJ IDEA

  25. 25

    How to build web interface for my Swift App/Firebase

  26. 26

    How can I display the user's live wallpaper as background in my app?

  27. 27

    How can I join data like this in SQL Server, then display in my app?

  28. 28

    How can I join data like this in SQL Server, then display in my app?

  29. 29

    How can I force the iPhone X to display my app with black bars?

HotTag

Archive