build.xml
author Cristian Berner <cristian.berner@openbravo.com>
Fri, 17 Apr 2020 13:43:57 +0200
changeset 129 1c5993cd986c
parent 97 702b56216bd5
permissions -rw-r--r--
Related to ISSUE-41898: Add .gitignore matching .hgignore
martin@0
     1
<?xml version="1.0" encoding="UTF-8" ?>
martin@0
     2
<!--
martin@0
     3
*************************************************************************
martin@0
     4
* The contents of this file are subject to the Openbravo  Public  License
martin@0
     5
* Version  1.1  (the  "License"),  being   the  Mozilla   Public  License
martin@0
     6
* Version 1.1  with a permitted attribution clause; you may not  use this
martin@0
     7
* file except in compliance with the License. You  may  obtain  a copy of
martin@0
     8
* the License at http://www.openbravo.com/legal/license.html
martin@0
     9
* Software distributed under the License  is  distributed  on  an "AS IS"
martin@0
    10
* basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
martin@0
    11
* License for the specific  language  governing  rights  and  limitations
martin@0
    12
* under the License.
martin@0
    13
* The Original Code is Openbravo ERP.
martin@0
    14
* The Initial Developer of the Original Code is Openbravo SLU
asier@97
    15
* All portions are Copyright (C) 2011-2014 Openbravo SLU
martin@0
    16
* All Rights Reserved.
martin@0
    17
* Contributor(s):  ______________________________________.
martin@0
    18
************************************************************************
martin@0
    19
-->
martin@16
    20
<project name="SmartClient" default="buildRuntime" basedir=".">
martin@0
    21
  <description>
martin@0
    22
    Combines all required JavaScript files in one file
martin@0
    23
  </description>
martin@0
    24
  <property name="isc"
martin@15
    25
            location="web/org.openbravo.userinterface.smartclient/isomorphic" />
martin@17
    26
  <property name="webContentOutputDir"
martin@17
    27
            location="../../WebContent/web/org.openbravo.userinterface.smartclient/isomorphic" />
martin@17
    28
  
martin@0
    29
  <target name="combine" description="Concatenates all SmartClient in one file: ISC_Combined.js">
martin@0
    30
    <concat destfile="ISC_Combined.js">
martin@0
    31
      <fileset file="${isc}/system/modules/ISC_Core.js" />
martin@0
    32
      <fileset file="${isc}/system/modules/ISC_Foundation.js" />
martin@0
    33
      <fileset file="${isc}/system/modules/ISC_Containers.js" />
martin@0
    34
      <fileset file="${isc}/system/modules/ISC_Grids.js" />
martin@0
    35
      <fileset file="${isc}/system/modules/ISC_Forms.js" />
martin@0
    36
      <fileset file="${isc}/system/modules/ISC_DataBinding.js" />
martin@19
    37
      <fileset file="${isc}/system/modules/ISC_Calendar.js" />
martin@19
    38
      <fileset file="${isc}/system/modules/ISC_PluginBridges.js" />
martin@19
    39
      <fileset file="${isc}/system/modules/ISC_RichTextEditor.js" />
martin@0
    40
    </concat>
martin@0
    41
  </target>
martin@16
    42
martin@16
    43
  <target name="copy">
martin@16
    44
    <!-- First delete, otherwise sometimes the copy does not work -->
martin@16
    45
    <delete file="../org.openbravo.userinterface.smartclient/web/org.openbravo.userinterface.smartclient/isomorphic/ISC_Combined.js"/>
david@32
    46
    <delete file="../org.openbravo.userinterface.smartclient/web/org.openbravo.userinterface.smartclient/isomorphic/ISC_History.js"/>
asier@97
    47
    <delete file="../org.openbravo.userinterface.smartclient/web/org.openbravo.userinterface.smartclient/isomorphic/system/helpers/printFrame.html"/>
martin@16
    48
martin@16
    49
    <copy file="ISC_Combined.js" todir="../org.openbravo.userinterface.smartclient/web/org.openbravo.userinterface.smartclient/isomorphic"/>
david@32
    50
    <copy file="web/org.openbravo.userinterface.smartclient/isomorphic/system/modules/ISC_History.js" todir="../org.openbravo.userinterface.smartclient/web/org.openbravo.userinterface.smartclient/isomorphic"/>
asier@97
    51
    <copy file="web/org.openbravo.userinterface.smartclient/isomorphic/system/helpers/printFrame.html" todir="../org.openbravo.userinterface.smartclient/web/org.openbravo.userinterface.smartclient/isomorphic/system/helpers/"/>
martin@16
    52
  </target>
martin@16
    53
  
martin@16
    54
  <target name="buildRuntime" depends="combine, copy"/>
martin@16
    55
martin@16
    56
  <target name="copySource">
martin@16
    57
    <!-- First delete, otherwise sometimes the copy does not work -->
martin@17
    58
    <delete file="${webContentOutputDir}/ISC_Combined.js"/>
david@32
    59
    <delete file="${webContentOutputDir}/ISC_History.js"/>
martin@16
    60
martin@17
    61
    <copy file="ISC_Combined.js" todir="${webContentOutputDir}"/>
david@32
    62
    <copy file="web/org.openbravo.userinterface.smartclient/isomorphic/client/modules/ISC_History.js" todir="${webContentOutputDir}"/>
martin@16
    63
  </target>
martin@16
    64
  
martin@16
    65
  <target name="source" depends="combineSource, copySource"/>
martin@16
    66
    
martin@16
    67
  <target name="combineSource" description="Concatenates all SmartClient Source in one file: ISC_Combined.js">
martin@16
    68
    <concat destfile="ISC_Combined.js">
martin@16
    69
      <fileset file="${isc}/client/modules/ISC_Core.js" />
martin@16
    70
      <fileset file="${isc}/client/modules/ISC_Foundation.js" />
martin@16
    71
      <fileset file="${isc}/client/modules/ISC_Containers.js" />
martin@16
    72
      <fileset file="${isc}/client/modules/ISC_Grids.js" />
martin@16
    73
      <fileset file="${isc}/client/modules/ISC_Forms.js" />
martin@16
    74
      <fileset file="${isc}/client/modules/ISC_DataBinding.js" />
martin@19
    75
      <fileset file="${isc}/client/modules/ISC_Calendar.js" />
martin@19
    76
      <fileset file="${isc}/client/modules/ISC_PluginBridges.js" />
martin@16
    77
      <fileset file="${isc}/client/modules/ISC_RichTextEditor.js" />
martin@16
    78
    </concat>
martin@16
    79
  </target>
david@31
    80
</project>